问题
Hi i want to implement ModalPopup view in iPad. How can i implement ? I do not know anything about that. Can anybody give me some guidelines? A small screen like facebook screen using sharekit. Thanks.
回答1:
Go through the below blog tutorial,sure will help you.
Using the PopoverView in iPad App Development
回答2:
Note: Accepted answer about popovers is correct if you want a popover. But you may want just modal window, not the window with an arrow! Then this is solution.
To implement popup in your own ViewController, create a ViewController in your Storyboard then use a segue with the following properties:
This causes showing your View Controller modally. To change run-time size of your View Controller, check the following setting of the View Controller:
Another way to implement custom dialog is to use UIAlertController. This is pretty flexible nowadays, but it's still pretty limited. if you want to use custom design and multiple elements, better to use custom UIViewController.
Hope it helps.
来源:https://stackoverflow.com/questions/5769035/how-to-implement-modal-popup-view-in-ipad-like-facebook-screen-using-sharekit