开发者

How to achieve this in my iPhone/iPad application?

开发者 https://www.devze.com 2023-02-07 12:01 出处:网络
How to get above thing in my application? 开发者_如何学Go What 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?

How to achieve this in my iPhone/iPad application?

How to get above thing in my application?

开发者_如何学Go

What 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消