Closed pcompassion closed 11 years ago
This is from a stackoverflow answer I can't find right now, it should work with a navigation button
UIBarButtonItem *buttonItem = sender;
UIView* btnView = [buttonItem valueForKey:@"view"];
fotakis thats right. Thanks for this.
this is my code :
MypopOverViewController = [[UIViewController alloc] init];
FPPopoverController *popover = [[FPPopoverController alloc] initWithViewController:MypopOverViewController];
UIView* btnView = [sender valueForKey:@"view"];
//sender is the UIButton view
[popover presentPopoverFromView:btnView];
... and works fine!
Yes, doing the same thing.
Thanks @jradi3 .
Closing the issue
I glanced over the code and it looks like adding popover from navigationBar/toolBar/tabBar isn't readily available. (since they are not Views)
I'm not sure if "new issue" is the right place to ask this.