UIPopOverController - Open a second PopOverController over first UIPopOverController

Ads
 

UIPopOverController - Open a second PopOverController over first UIPopOverController

How can i open a second UIPopoverController over my first UIPopoverController in my iPad application? Right now my first UIPopoverController is called on UIBarButtonItem click that is placed in the UIToolBarItem.

View Answers

February 8, 2011 at 4:40 PM

You can open a second UIPopoverController in the same way as you called the first popoverController. But this time you nee little changes like..

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];

February 8, 2011 at 4:45 PM

myViewController *photoViewC = [[myViewController alloc] initWithNibName:@"myViewController" bundle:[NSBundle mainBundle]]; 

UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:photoViewC]; 

popover.delegate = self;
[photoViewC release];
self.popoverController = popover;
[popover release];

popover.popoverContentSize = CGSizeMake(450, 680);
[popover presentPopoverFromRect:CGRectMake(260, 0, 120, 120)
inView:self.view permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];

Ads









Related Tutorials/Questions & Answers:
-[UIPopoverController dealloc] reached while popover is still visible.
-[UIPopoverController dealloc] reached while popover is still visible.  Hi, I am getting following error in my application: -[UIPopoverController dealloc] reached while popover is still visible. How to solver this? Thanks
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
Advertisements
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
Second tab should only show selected products from first tab
Second tab should only show selected products from first tab  ...? on. The first tabâ??s form has been built manually. It is in the â?... users selected on the first tab. I started a function, but it currently only
how to output text from comboBox from first frame to textField on the second frame? please help me.. thank you in advance..
how to output text from comboBox from first frame to textField on the second frame? please help me.. thank you in advance..  how to output text from comboBox from first frame to textField on the second frame? please help me
Second Section
 Second SectionPrev Appendix A. First Appendix Next     Second Section The Sun Certified Business Component Developer (SCBCD) for the Java 2 Platform, Enterprise
how to select second combobox value .
how to select second combobox value .  I requirement is , i have two combo box, i am selected first combo box value then automatically second combo box value show ,But this both combo box value i retrieves in database. please
ModuleNotFoundError: No module named 'second'
ModuleNotFoundError: No module named 'second'  Hi, My Python... 'second' How to remove the ModuleNotFoundError: No module named 'second'... to install padas library. You can install second python with following command
One-Millionth of a second is referred as
One-Millionth of a second is referred as  One-Millionth of a second is referred as -? 1. Microsecond 2. Millisecond 3. Hour 4. Minute 5. All of the above   Answer: 1. Microsecond
One-thousand of a second is called
One-thousand of a second is called  One-thousand of a second is called- 1. Microsecond 2. Millisecond 3. Hour 4. Minute 5. All of the above   Answer: 1. Microsecond
Second level cache
Second level cache  Hi, I have been asked one question which I have no idea about. It's like I have enabled second level caching and the data has... and how do I refresh( reload) my second level cache. Please advise, and ignore my
second selectbox of dynamic
second selectbox of dynamic  hello friends i hava a code like this and could any body help me with editing code and send me code. i am getting city...;/td> </tr> <tr> <td><label>First Name<
method over riding
method over riding  write a java program to compute volume of sphere and volume of cylinder using method over riding
Second Normal Form (2NF)
Second Normal Form (2NF)       Second Normal Form (2NF) The concept of remove the delicacy of data comes in the Second Normal Form (2NF). A.  It should meet all
mouse over effects in css
mouse over effects in css  I have written a mouse over effect in CSS. But it is not working in HTML. Can any one suggest me? Thanks
Call UIViewController over RootViewController
Call UIViewController over RootViewController   Hi, i have created the window based application.. but not sure how to call the UIView over RootViewController. Thanks
Data over Voice Communication
Data over Voice Communication  I just Want to know that Data Over Voice communication is possible in India or Not, If not then Why. and If Yes then Why Please anyone give the answer
ModuleNotFoundError: No module named 'second_open.py'
ModuleNotFoundError: No module named 'second_open.py'  Hi, My... named 'second_open.py' How to remove the ModuleNotFoundError: No module named 'second_open.py' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'second-repo'
ModuleNotFoundError: No module named 'second-repo'  Hi, My Python... 'second-repo' How to remove the ModuleNotFoundError: No module named 'second-repo' error? Thanks   Hi, In your python environment
application over https
application over https   Hi. This questions might be very simple but I would like to create a simple servlet program and want to access using https... while accessing https over http
Installing programs over a network
Installing programs over a network  Hi, i want to write a java program that will allow me to install programs from a server to a client machine. Any help will be appreciated. Thanks
Installing programs over a network
Installing programs over a network  Hi, i want to write a java program that will allow me to install programs from a server to a client machine. Any help will be appreciated. Thanks
Installing programs over a network
Installing programs over a network  Hi, i want to write a java program that will allow me to install programs from a server to a client machine. Any help will be appreciated. Thanks
Installing programs over a network
Installing programs over a network  Hi, i want to write a java program that will allow me to install programs from a server to a client machine. Any help will be appreciated. Thanks
Installing programs over a network
Installing programs over a network  Hi, i want to write a java program that will allow me to install programs from a server to a client machine. Any help will be appreciated. Thanks
Installing programs over a network
Installing programs over a network  Hi, i want to write a java program that will allow me to install programs from a server to a client machine. Any help will be appreciated. Thanks
why should we over ride hashCode(), when equals was over ride()?
why should we over ride hashCode(), when equals was over ride()?  why should we over ride hashCode(), when equals was over ride
Is AI taking over the world?
Is AI taking over the world?  Hi, I am beginner in Data Science... taking over the world? Try to provide me good examples or tutorials links so that I can learn the topic "Is AI taking over the world?". Also tell me

Ads