I have an application that uses a controller with a split view, and I install the controllers of the main and detailed views in the application’s split. However, depending on the user interaction (they relate to UIButton), I change the main view by accessing the viewcontrollers array of the shared view controller.
The problem is when I do this, and then change the orientation of the iPad to the portrait and access the main view through popover, it shows the previous main view, and not the new one that I installed. This is confusing because the landscape displays the correct main view (the new one that was installed). Not sure why the popover in the portrait is not updated to the new main view set in the viewcontrollers property in split mode.
Any ideas on how to fix this would be needed. Thanks.
ios ipad uisplitviewcontroller
SMSidat
source share