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

ryosaeb4

macrumors newbie
Original poster
Jul 23, 2008
3
0
Hi to everybody

I've a little problem on my iPad App for the popupControl.


I've define in DetailView.h

UINavigationBar *navigationBar;
@property (nonatomic, retain) IBOutlet UINavigationBar *navigationBar;


and in DetailView.m

Code:
...

- (void)showRootPopoverButtonItem:(UIBarButtonItem *)barButtonItem {
    // Add the popover button to the left navigation item.
    [navigationBar.topItem setLeftBarButtonItem:barButtonItem animated:NO];
    NSLog(@"You are in DetailView Portrait");
}


- (void)invalidateRootPopoverButtonItem:(UIBarButtonItem *)barButtonItem {
    // Remove the popover button.
    [navigationBar.topItem setLeftBarButtonItem:nil animated:NO];
    NSLog(@"You are in DetailView Landscape");
}
...


I've do it for show a navigation button in my view only when the iPad is in Portrait mode, but sometime the button disappears...


Are there other method to show a button only when the iPad is Portrait?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.