How to overlay view over navigation controller bar?

Posted by 0SX on Stack Overflow See other posts from Stack Overflow or by 0SX
Published on 2011-01-02T02:43:26Z Indexed on 2011/01/02 2:54 UTC
Read the original article Hit count: 481

I've sorta got a little problem. I'm trying to add a popoverview to my app but part of the popoverview get's hidden by my navigation controller bar. How can I make my popoverview overlay over top of the navcontrollerbar? Here's an image of the problem: http://img593.imageshack.us/img593/4056/viewn.jpg

Here's my code I'm working with:

- (IBAction)onButtonClick:(UIButton *)button {

if (self.popoverController) {
    [self.popoverController dismissPopoverAnimated:YES];
    self.popoverController = nil;
    [button setTitle:@"Show Popover" forState:UIControlStateNormal];
} else {
    UIViewController *contentViewController = [[WEPopoverContentViewController alloc] initWithStyle:UITableViewStylePlain];

    self.popoverController = [[[WEPopoverController alloc] initWithContentViewController:contentViewController] autorelease];
    [self.popoverController presentPopoverFromRect:button.frame 
                                            inView:self.view 
                          permittedArrowDirections:UIPopoverArrowDirectionDown
                                          animated:YES];
    [contentViewController release];
    [button setTitle:@"Hide Popover" forState:UIControlStateNormal];
}
}

Is there anyway to make this popover above the navigation controller bar? Here is the full source code what I'm working with https://github.com/werner77/WEPopover

Hopefully someone knows how to fix this problem, Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c