One UIViewController or Two for portrait / landscape views?

You can also try to change your views and subviews sizes etc. Take a look here Madhup expained It before stackoverflow.com/questions/2734569/chan....

You can also try to change your views and subviews sizes etc. Take a look here Madhup expained It before. stackoverflow.com/questions/2734569/chan....

I do not think that the above one answered the question of joec. Joec want to know, if it is bad or good to have 2 nibs (i.e. Landscape.

Nib and portrait. Nib) and manage the views in that 2 nibs with 1 uiviewcontroller. My understanding of the mvc design pattern is, that a ViewController really SHOULD manage different views.

But when I look at the internet, in cause of cocoa touch, often people says that it is BAD (whatever this means) when a UIViewController switches his view-property at runtime. Thats confusing to me. Why should a viewcontroller not be able to switch views?

Why should I build some strange "master"-viewcontroller, which manages 2 other viewcontrollers, and everyone of this manages his own view. In case of landscape and portrait abstraction (or i.e. Iphone-gui and ipad-gui abstraction) the code in the gui-business-layer (the event-code etc.In the viewcontroller) is exactly the same for different views.

The style of the views is not. So that should one of the benefits of a mvc-implementation. Sorry, but that seems not logical for me, apple.

Any thoughts? Edit says: it seems that apple provides some strange sort of workaround to solve this problem (hate me, but for me it is nothing more than that, because I see no really straight-forward design implementation for managing and handling views in the UIViewController class): http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/BasicViewControllers/BasicViewControllers.html%23//apple_ref/doc/uid/TP40007457-CH101-SW26 I found this link in the following stack overflow thread: Want to use muliple nibs for different iphone interface orientations thanks to Michal for that one.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions