Provide some tips to get rid of the following scenario.
Description:
I have two viewControllers namely ViewController1 and ViewController2, so
You can use a model object that contains the two strings and that is known by both controllers.
If you want each controller to be notified whenever the other update the value of the strings, you can use notification mechanism. This allows your model to let other objects know about its changes and stay independant from these objects.