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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Master view of split view contain tab bar and table view? newtoiphonesdk iPhone/iPad Programming 0 Nov 16, 2011 10:47 AM
Conditionally display views on button press johnmerlino Mac Programming 4 Nov 13, 2011 09:11 AM
iPhone 3GS Splitting Apart, power button difficult to press-REALLY annoying-HELP salilsundresh iPhone Tips, Help and Troubleshooting 3 Sep 26, 2011 09:37 PM
Enabling an uibarbuttonitem when at least one char is written in a uitextfield franium iPhone/iPad Programming 5 Feb 25, 2011 12:09 PM
Scroll View not working in the bottom view of Split View in Cocoa binDev Mac Programming 1 Apr 15, 2010 02:42 PM


All times are GMT -5. The time now is 09:44 PM.

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

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