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
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?
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?