Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pinsrw

macrumors regular
Original poster
May 30, 2010
194
0
Hi all,

I'm using the sample split-view app code from Apple that implements multiple different detail views, each stored in its own xib.
I have discovered a big problem:
When I switch between views in portrait mode, the UIBarButtonItem that brings up the popover window keeps jumping to the right.
I looked at how many items are in the toolbar items array, that in the detail view is created to insert the UIBarButtonItem into the toolbar and later remove it. That number keeps growing...
In fact, invalidateRootPopoverButtonItem:barButtonItem is not getting called.

My detail views are declared like this:

@interface DetailView2: UIViewController
<UIPopoverControllerDelegate,
UISplitViewControllerDelegate,
SubstitutableDetailViewController>

Thanks for any help.
 

pinsrw

macrumors regular
Original poster
May 30, 2010
194
0
I've discovered that the reason for my troubles is that I was trying to cache the detail views, whereas Apple's sample code wanted to reload the xib's every time they were to be displayed.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.