Search code examples
iphoneuisplitviewcontrolleruipopover

UISplitViewController portrait - popover problem in toolbar


I've take Apple's tutorial as example, and inserted in my iPhone app, to make it universal. The popover shows a menu with 4 options, each a UIViewController. If I select the 2nd, and then return to the first, the popover button, instead of staying in position 0 of the toolbar buttons, it goes a little more to the right. If I go to the 2nd and back again, it goes more to the right.

What's wrong?

RL


Solution

  • Because all my ViewControllers are initialized in AppDelegate, i need to remove de barbutton each time i select a row in popover menu. That way, when a VC is shown, the button goes in index 0, and does not go to the right in toolBar.

    Thanks.

    RL