How to use multiple nibs on one view controller?
My problem is this, i read recently that its not good programming practice to have one view controller for everyview in my application. So now im going back and seeing where ill really need another view controller and where i would just need to display another nib in the same view controller. For instance, i have a tableview that when the user clicks edit it turns into another table view where there are disclosure arrows on each cell. Now when the user taps the cell, it loads another viewController that just has a label and a textfield. Now how i did this before was create another viewcontroller and load it on the current views navigation controller. Id rather have it where i can just place 2 more IBoutlets in my header file and add another xib to the same view controller linking the 2 new objects. So how would i go about doing this?
heres where im at
1)i have the new nib created.
2)i have the 2 objects linked to the same viewcontroller i am pushing the view upon.
now all i need is a way to push the new nib on the current viewControllers navigation controller but idont know how to do it...any ideas?
Last edited by Esko2300; 03-11-2011 at 08:50 AM.
|