I got some issue working with UINavigationalControllers for iPad.
Issue :
UINavigationController1
UINavigationController2
Placed in UIViewController.
When the event happened in UINavigationController1….the action should be taken in UINavigationController2
Something like this….. When Click happened on UITableViewCell in UINavigationController1, the transition between view should be done in UINavigationController2
Need some suggestion how to handle this …
Thanks in advance
You should use delegation to do this
add this in the .h of ViewController1 above the @implementation
and then this below the @end
then declare a property of type ViewController1Delegate in the controller
then add this to the .m of ViewController1
and on the action call the delegate method
Now when on ViewController2 .h impot ViewController1.h
Now when on ViewController2 .h listen for the delegate like this
and then in the .m implement the method
when the view controllers are instantiated one needs to set the delegate for viewController1 to viewController2 like this