Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 31, 2011, 09:26 PM   #1
pinsrw
Banned
 
Join Date: May 2010
Split view UIBarButtonItem button is jumping rightward

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 is offline   0 Reply With Quote
Old Feb 1, 2011, 11:01 AM   #2
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Can we see the code where you are adding and removing the barButtonItem?
__________________
dejo is offline   0 Reply With Quote
Old Feb 1, 2011, 06:26 PM   #3
pinsrw
Thread Starter
Banned
 
Join Date: May 2010
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 by pinsrw; Feb 2, 2011 at 07:55 PM.
pinsrw is offline   0 Reply With Quote
Old Feb 1, 2011, 07:15 PM   #4
pinsrw
Thread Starter
Banned
 
Join Date: May 2010
.

Last edited by pinsrw; Feb 2, 2011 at 07:55 PM.
pinsrw is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Calendar split/agenda view back on 7.1? chestvrg iOS 7 18 Mar 21, 2014 06:46 PM
New to XCode - Question [How do you go from one view to the next via a button] eebean2 iPhone/iPad Programming 4 Aug 23, 2013 08:29 AM
Split View App RagingGoat iPhone/iPad Programming 6 Jun 6, 2013 08:59 PM
How to dismiss popover view on button click in iPad Narendar Singh iPhone/iPad Programming 3 Feb 7, 2013 10:59 PM
Animating split view divider position Starfox Mac Programming 0 Dec 18, 2012 09:12 PM

Forum Jump

All times are GMT -5. The time now is 05:46 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC