Hi, somebody can help me implementing popover?
Here's my code:
I have button under UIScrollView. So when I push the button, popover should come up. BUT THIS DONT WORK!!!
Popover comes up but in the top of the screen not behind the button.
What's wrong?
Here's my code:
PHP:
-(IBAction)popOver{
SecondViewController *secondView = [[SecondViewController alloc] init];
UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:secondView];
[popover setDelegate:self];
[popover presentPopoverFromRect:CGRectMake(0, 0, 330, 225) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionLeft animated:NO];
[popover setPopoverContentSize:CGSizeMake(330, 225)];
[secondView release];
}
I have button under UIScrollView. So when I push the button, popover should come up. BUT THIS DONT WORK!!!
What's wrong?