Thanks for your answer, but the problem was that the second ViewController was not in memory, using singleton class i achieved!!
Topic:
Programming Languages
SubTopic:
Swift
Tags: