0

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

4

2 に答える 2

0

UISplitViewControllerデリゲートメソッドのtoolbar.itemsに複数のものをプッシュしているように聞こえます。つまり、「表示される」デリゲートメソッドのtoolbar.itemsにさらに追加しているようですが、すべてを削除しているわけではありません。 「非表示にする」メソッド。UISplitViewControllerデリゲートメソッドにコードを投稿すると、さらに役立つ可能性があります。

于 2011-03-19T23:32:55.253 に答える
0

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

于 2011-03-20T21:54:53.823 に答える