|Nov 9, 2008, 04:01 PM||#1|
Landscape View and NIB files
How can you load a NIB within an already loaded UIViewController without reloading the whole ViewController again with the new NIB?
The way i have my app set up right now is that when it launches a RootViewController loads my MainViewController by calling this method
MainViewController *viewController = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];
Now I have created a MainView2.nib file which is for landscape orientations, but to load this new NIB during an autorotation call I would need to reload the whole MainViewController. I havent read anything in the API where I can simply "refresh" a viewcontroller with a new NIB, without needing to actually create a whole new instance of that controller.
If I have to reload the whole controller(which would require me to save the state of all the variables and objects in the portrait controller) then my time is better spent simply programmaticly resizing the current view so it looks fine in landscape mode.
Any insight to this?
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|View inside NIB file is not loading. Why?||tutiplain||iPhone/iPad Programming||8||Apr 19, 2011 05:29 PM|
|How to push different detail views using SearchBar||Nekbeth||iPhone/iPad Programming||8||Mar 16, 2011 07:55 PM|
|View Based Application Template - Xcode - View in Root Controller and .nib ? ?||Flamehearted||iPhone/iPad Programming||1||Aug 21, 2010 06:15 PM|
|Steve Job: Where Is Our Landscape View And Vertical Springboard?||evilgreg||iPhone||25||May 6, 2010 10:41 PM|
|Finder and .nib files||Benjamindaines||Mac Applications and Mac App Store||4||Apr 26, 2006 04:20 PM|
All times are GMT -5. The time now is 10:22 PM.