Hi
I am a newbie in IOS.I am trying to design a Splitview app which consists of a master and detailsview controller.My master is a table view .My master view controller is called Rootviewcontroller.I create a UINavigationcontroller object and embed the Rootviewcontroller inside it.
Now I have a navigation controller with my master view controller(Rootviewcontroller) as its rootviewcontroller.
What I want is that on a row click on the masterview controller an appropriate VC should get launched.For that I have read the Apple documentation(Managing Selections in Tableview programming) and have implemented it the way it is given:
I override the didSelectRowAtIndexPath method.Inside it I deselect the earlier selected row,create a VC and then push it onto the navigation stack using the Push API.But it does not work..
Do we need to first create our own VC and then push that VC on the navigation stack? Or is it that only the detailviewcontroller can be pushed.
And if thats the case,then how do we display different views for different rows??..Logically speaking shouldnt there be more than one detailVCs with different ones getting launched on different row clicks..??
I have detailed the steps above ,have I missed out anything??Do I need to pop some VC or something like that..
Any help would be highly appreciated....
I am a newbie in IOS.I am trying to design a Splitview app which consists of a master and detailsview controller.My master is a table view .My master view controller is called Rootviewcontroller.I create a UINavigationcontroller object and embed the Rootviewcontroller inside it.
Now I have a navigation controller with my master view controller(Rootviewcontroller) as its rootviewcontroller.
What I want is that on a row click on the masterview controller an appropriate VC should get launched.For that I have read the Apple documentation(Managing Selections in Tableview programming) and have implemented it the way it is given:
I override the didSelectRowAtIndexPath method.Inside it I deselect the earlier selected row,create a VC and then push it onto the navigation stack using the Push API.But it does not work..
Do we need to first create our own VC and then push that VC on the navigation stack? Or is it that only the detailviewcontroller can be pushed.
And if thats the case,then how do we display different views for different rows??..Logically speaking shouldnt there be more than one detailVCs with different ones getting launched on different row clicks..??
I have detailed the steps above ,have I missed out anything??Do I need to pop some VC or something like that..
Any help would be highly appreciated....