Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get popover to show on a view (iOS SDK 6.1) #83

Open
hatembr opened this issue Sep 8, 2013 · 1 comment
Open

Can't get popover to show on a view (iOS SDK 6.1) #83

hatembr opened this issue Sep 8, 2013 · 1 comment

Comments

@hatembr
Copy link

hatembr commented Sep 8, 2013

Hi,

I have a view with AutoLayout ON, a nav bar and a tab bar. I am trying to get a popover to show when I click a help button on my nav bar.
The help view controller works and seems to be displayed (I have placed a NSlog in the viewDidAppear) but the popover doesn't and nothing is visible.

Here is my code :

-(IBAction)helpButtonTouched:(id)sender {
    HelpViewController* helpViewController = [[HelpViewController alloc] initWithNibName:@"HelpViewController" bundle:[NSBundle mainBundle]];
    helpViewController.contentSizeForViewInPopover = CGSizeMake(300, 400);
    helpViewController.title = @"Aide";

    //SAFE_ARC_RELEASE(popover); popover=nil;

    FPPopoverController *popover = [[FPPopoverController alloc] initWithViewController:helpViewController];
    popover.arrowDirection = FPPopoverArrowDirectionAny;
    popover.tint = FPPopoverDefaultTint;
    popover.contentSize = CGSizeMake(300, 400);
    popover.delegate = self;
    //popover.arrowDirection = FPPopoverArrowDirectionRight;

    [popover presentPopoverFromView:sender];

}

Any help is appreciated.
Thanks.

@ghost
Copy link

ghost commented Jan 4, 2014

This seems to work for me: #87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant