Can't show popover controller with UIBarButtonItem?

Up vote 1 down vote favorite share g+ share fb share tw.

I use storyboard for developing UI for my project. There are many issues were solved, but this problem killing me. I have added action for UIBarButtonItem : - (IBAction)pressAddActionButton:(UIBarButtonItem *)sender { if (_mode == itemSelect) { LookUpTableViewController *vc = self.

Storyboard instantiateViewControllerWithIdentifier:@"lookupTable"; vc. Key = @"title"; vc. Data = Linesheet MR_findAllSortedBy:@"title" ascending:YES; vc.

LookUpDelegate = self; self. MyPopoverController = UIPopoverController alloc initWithContentViewController:vc; self. MyPopoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES; } else { self.

Mode = itemSelect; } } If I using storyBoard segue for showing popover - all good, but if I do it in runtime a popover does not show. I should manually create UIBarButtonItem. Thanks for help!

Ios storyboard uipopovercontroller link|improve this question asked 2 days agoNeverBe1,09829.

This question has an open bounty worth +100 reputation from NeverBe ending in 6 days. Looking for an answer drawing from credible and/or official sources. I have solved this problem using fake button with segue in storeboard, but I need more correct solution.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions