I have a UIViewController (say A). On the click of a button in the UIViewController(A), I load a UIWebView. On click of a component in the UIWebView, I need to push the UIViewController(A) once again. I know, that conceptually its not the right thing to do. What are the alternatives here?
I have a UIViewController (say A). On the click of a button in the
Share
The question is, do you want a new instance of the UIViewController, or you just want to update the first UIViewController?
For the first option, you have to create a new instance of UIViewController and push it.
For the second option, you have to pop the UIWebView controller and send a message to the first UIViewController to update itself, or generate a notification that the UIViewController listens to in order to update itself.