UIPopOverController - Open a second PopOverController over first UIPopOverController

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









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
How map the first_servlet to second_servlet - JSP-Servlet
How map the first_servlet to second_servlet  Hello, I have two questions. 1.How I want map the second_servlet by first_servlet. My Html page map with first_servlet.and first_servlet forward the response to Jsp file. In Jsp
How Map the First_Servlet to Second_Servlet - JSP-Servlet
How Map the First_Servlet to Second_Servlet  My Query: Hello Sir, I have two questions. 1.How I want map the second_servlet by first_servlet. My... of second_servlet in first_servlet. Please Help me.. -Vijay. Answers Hi
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
base the value of first combo box, how i display the second combox - JSP-Servlet
base the value of first combo box, how i display the second combox    i have a combo box for classes. my requirement is when i select the class, if class is 11 or 12 the second combo box of subject should be appear. please
Re: base the value of first combo box, how i display the second combox - JSP-Servlet
Re: base the value of first combo box, how i display the second combox    thanks for your reply. i want to know suppose the second combo box appear only when i select the class 11th or 12th. please review. your answer
Re: base the value of first combo box, how i display the second combox - JSP-Servlet
Re: base the value of first combo box, how i display the second combox   Dear Sir, in this program when i click on submit button, the corrosponding value of combo box should be sent. but when i clicked to submit button, it do
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
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
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
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
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
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
Second Normal Form (2NF)
of First Normal Form then move towards the Second Normal Form. Let's introduce... Second Normal Form (2NF)       Second Normal Form (2NF) The concept of remove the delicacy
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
hibernate over Jdbc
hibernate over Jdbc  Why use hibernate over Jdbc?   Hibernate provides lots of advantages over JDBC. Some of them are as below: 1) Hibernate is data base independent 2) Hibernate provides its own query language called
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
RMI over Internet - RMI
RMI over Internet  Hello I've made a project which utilizes rmi for communication. Problem: I am unable to communicate using rmi over internet 1)the clients cannot connect to me 2)I am using client side callbacks 
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
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
Transmitting messages over net
Transmitting messages over net  A method whereby messages to be transmitted between computers are all sent to a central computer, which gathers them and routes them to the appropriate destinations is known as - 1. Message
What is the advantage of hibernate over JDBC?
What is the advantage of hibernate over JDBC?  HI, What is the advantage of hibernate over JDBC? thanks
What is the advantage of hibernate over JDBC?
What is the advantage of hibernate over JDBC?  HI, What is the advantage of hibernate over JDBC? thanks
Image writing over URLConnection
Image writing over URLConnection  Hello, I am trying to write an image over an HttpURLConnection. I know how to write text but I am having real problems trying to write an image I have succeeded in writing to the local HD using
ModuleNotFoundError: No module named 'over-stats'
ModuleNotFoundError: No module named 'over-stats'  Hi, My Python... 'over-stats' How to remove the ModuleNotFoundError: No module named 'over... have to install padas library. You can install over-stats python
ModuleNotFoundError: No module named 'aio-throttle-to-next-second'
ModuleNotFoundError: No module named 'aio-throttle-to-next-second'  ...: No module named 'aio-throttle-to-next-second' How to remove the ModuleNotFoundError: No module named 'aio-throttle-to-next-second' error? Thanks
ModuleNotFoundError: No module named 'aio-throttle-to-next-second'
ModuleNotFoundError: No module named 'aio-throttle-to-next-second'  ...: No module named 'aio-throttle-to-next-second' How to remove the ModuleNotFoundError: No module named 'aio-throttle-to-next-second' error? Thanks
ModuleNotFoundError: No module named 'aio-throttle-to-next-second'
ModuleNotFoundError: No module named 'aio-throttle-to-next-second'  ...: No module named 'aio-throttle-to-next-second' How to remove the ModuleNotFoundError: No module named 'aio-throttle-to-next-second' error? Thanks
ModuleNotFoundError: No module named 'aio-throttle-to-next-second'
ModuleNotFoundError: No module named 'aio-throttle-to-next-second'  ...: No module named 'aio-throttle-to-next-second' How to remove the ModuleNotFoundError: No module named 'aio-throttle-to-next-second' error? Thanks
ModuleNotFoundError: No module named 'leap-second-client'
ModuleNotFoundError: No module named 'leap-second-client'  Hi, My... named 'leap-second-client' How to remove the ModuleNotFoundError: No module named 'leap-second-client' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'my_second_module'
ModuleNotFoundError: No module named 'my_second_module'  Hi, My... named 'my_second_module' How to remove the ModuleNotFoundError: No module named 'my_second_module' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'odoo10-addon-partner-second-lastname'
ModuleNotFoundError: No module named 'odoo10-addon-partner-second-lastname...: ModuleNotFoundError: No module named 'odoo10-addon-partner-second-lastname' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-partner-second

Ads