How to achieve this in my iPhone/iPad application?
How to get above thing in my application?
开发者_如何学GoWhat is this? I don't know what we call this type of thing can any one guide me for this and the technical term of this?
Thanks in advance..
You can use one view controller to present another view controller modally on top of it.
[currentViewController presentModalViewController:viewControllerToPresentInModalWindow
animated:YES];
By default, the modal view controller will be full-screen, but you can change the size to one of two other presets.
[viewControllerToPresentInModalWindow setModalPresentationStyle:UIModalPresentationPageSheet];
[viewControllerToPresentInModalWindow setModalPresentationStyle:UIModalPresentationFormSheet];
Additionally, you can set the transition used to display the modal window on screen by using setModalTransitionStyle:
.
The screenshot posted above is not using any of these presets; as the other commenters mentioned, it is a custom modal window that doesn't leverage UIKit's built-in modal functionality.
精彩评论