alvises / FPPopover

FPPopover provides an alternative to the native iOS UIPopoverController, adding support for iPhone and additional opportunities to customize the look and feel of the popovers.
http://www.poeticoding.com/fppopover-a-customizable-uipopovercontroller-for-iphone-and-ipad/
Other
903 stars 250 forks source link

Please add this sample code to Readme.md #64

Open yougot opened 11 years ago

yougot commented 11 years ago

This code might be helpful.

- (IBAction)didTapBarButton:(UIBarButtonItem *)sender
{
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
    UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"xxxViewController"];
    FPPopoverController *popover = [[FPPopoverController alloc] initWithViewController:vc];
    UIView *view = [sender valueForKey:@"view"];
    [popover presentPopoverFromView:view];
}
jbatgithub commented 11 years ago

This is a very useful addition to add to the documentation for anyone using storyboards in their projects. I agree with yougot, please add! It was the exact issue I was struggling with.

neridavide commented 10 years ago

amazing, thanks for writing this.. i was basically giving up with ffpopover cause i couldn't find a way to make it work on iOS7 and now finally works :) please copy-paste this sample on read me!