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

popover from UIButton within UIScrollview scrolls to top. #102

Open
jtoronto opened this issue May 17, 2014 · 0 comments
Open

popover from UIButton within UIScrollview scrolls to top. #102

jtoronto opened this issue May 17, 2014 · 0 comments

Comments

@jtoronto
Copy link

I have a UIScrollview within a UIView that has a button roughly halfway down. I have a FPPopover being presented from the button, but the problem is that when the button is tapped, the scrollview scrolls all the way to the top as the popover is presented. The button is now no longer visible and the popover is hanging in the middle of the screen where the button previously was. Has anyone else had this issue?

Here's how I'm presenting the popover.

  • (IBAction)audioLanguageButton:(UIButton*)sender {
    NSArray *languagesArray = [[NSArray alloc]initWithObjects:@"English",@"Japanese",@"French", nil];
    NSInteger currentselection = [languagesArray indexOfObject:sender.titleLabel.text];

    PopoverTableViewViewController *pop = [[PopoverTableViewViewController alloc]initWithStyle:UITableViewStylePlain forArray:languagesArray andCurrentSelection:currentselection ofType:@"Language"];

    pop.delegate = self;
    pop.tableColor = [UIColor whiteColor];
    pop.textColor = [UIColor colorWithRed:0.039 green:0.380 blue:0.980 alpha:1.000];

FPPopoverController *popover = [[FPPopoverController alloc]initWithViewController:pop];
[popover setArrowDirection:FPPopoverArrowDirectionRight];
popover.contentSize = CGSizeMake (150,150);
popover.alpha = 1.0;

[popover presentPopoverFromView:sender];

];

}

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