UIPopover Not Showing, Causing Crash?

The showBookmarksMenu: method is being called on DetailViewControlleriPad whereas it should be called on the class which implements it.

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

I'm using this code to show a popover from the toolbar of the detail view of a split view controller. - (IBAction)showBookmarksMenu:(id)sender { BookmarksViewController* content = BookmarksViewController alloc init;//UITableViewController UIPopoverController* aPopover = UIPopoverController alloc initWithContentViewController:content; aPopover. Delegate = self; content release; // Store the popover in a custom property for later use.

Self. PopoverController = aPopover; aPopover release; self. PopoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES; } Getting this crash: 2011-08-16 23:59:55.730 Codes3646:707 -DetailViewControlleriPad showBookmarksMenu: unrecognized selector sent to instance 0x191220 2011-08-16 23:59:55.757 Codes3646:707 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-DetailViewControlleriPad showBookmarksMenu: unrecognized selector sent to instance 0x191220' iphone objective-c ipad uitableview uipopovercontroller link|improve this question asked Aug 17 '11 at 7:03ProgramGuy1,073419 92% accept rate.

– Praveen S Aug 17 '11 at 7:10 That method is linked in IB with a UIBarButtonItem – ProgramGuy Aug 17 '11 at 7:17.

The showBookmarksMenu: method is being called on DetailViewControlleriPad, whereas it should be called on the class which implements it. Ensure that the method is properly hooked in IB.

Bookmarks view controller is just a static table view. – ProgramGuy Aug 17 '11 at 7:14 The problem is not with BookmarksViewController. In which class do you have showBookMarksMenu?

– Akshay Aug 17 '11 at 7:20 In detailviewcontrolleripad – ProgramGuy Aug 17 '11 at 7:25 Is it present in DetailViewControlleriPad. H? – Akshay Aug 17 '11 at 7:27 No, it's in the .m.

It's hooked up with a UIBarButtonItem in IB that I want to show the bookmarks popover when clicked. – ProgramGuy Aug 17 '11 at 7:30.

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