Problem with rotating views
I am working on an application with a number of full screen views on the iPad. They are all subview of a primary view. The views have all been designed in IB. To conserve resources, the views are not initialized until they are needed. Now the problem is, that all the views have been designed in IB as portrait views. When started in a portrait orientation everything works fine, but when started in a landscape orientation, they do not rotate properly. Also, please note, that my initial code had the subviews all initialized in the viewDidLoad method of the primary views viewcontroller and everything performed as I expected it should.
So why the difference in behavior, of initializing the subviews in the viewDidLoad method vs initializing them at some other point in time. What do I need to do to make them appear correctly in landscape mode?
Thanks Jim
|