How to open a second UIPopOverController over first popover button click?

You can open a second popover from any control in a popover; the mechanism is exactly the same as opening the first one. You need a reference to the content view controller, you create a new UIPopoverController using UIPopoverController alloc initWithContentViewController:content you set whatever properties you want and then you present it.

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

Right now I am using the given code to open a popover from UIBarButtonItem optionsViewController = OptionsViewController alloc init; popOverController = UIPopoverController alloc initWithContentViewController:optionsViewController; popOverController. PopoverContentSize = CGSizeMake(250, 300); popOverController presentPopoverFromBarButtonItem:bbiOpenPopOver permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES; ipad uipopovercontroller link|improve this question asked Feb 7 '11 at 18:08Meeya134 88% accept rate.

You can open a second popover from any control in a popover; the mechanism is exactly the same as opening the first one. You need a reference to the content view controller, you create a new UIPopoverController using UIPopoverController alloc initWithContentViewController:content;, you set whatever properties you want and then you present it. To present it from a UIButton or other control that isn't a UIBarButtonItem use popoverController presentPopoverFromRect:control bounds inView:control permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES.

Thanks phil! But in my application I am opening an UIPopoverController that has a tableView to show the list of array. But now I want to open another UIPopoverController on the click of table cell view.

I also tried the code that you have given but it adds the view on table cell. – Meeya Feb 8 '11 at 8:49 You are working with the wrong control object if that is happening. – Phil Willoughby Feb 8 '11 at 9:22 Thanks it worked.

– Meeya Feb 8 '11 at 9:56 in my project I opened the popovercontroller successfully..but noe I have to load a new UIView on UIButton click placed on popover view. My application is very simple and I am not using any splitview. Can you please tell me how can I do it?

Sorry to bother you again. – Meeya Feb 9 '11 at 15:07 That's a new question; use the big Ask Question button in the top-right – Phil Willoughby Feb 9 '11 at 17:12.

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