What is the difference between UIModalTransitionStyle and UIModalPresentationStyle?

For UIViewController, we have UIModalTransitionStyle and UIModalPresentationStyle

The question is what is their difference?

+8
uiviewcontroller uimodaltransitionstyle
source share
1 answer

UIModalTransitionStyle is used to indicate how the modal form is brought into view. For example, it can be in an upright position, flip horizontally or make a partial curl.

UIModalPresentationStyle is used to indicate whether you want the modal form to be full-screen (mainly for the iPhone) or otherwise (therefore only meaningful for the iPad) as a page sheet (full height, width is the size of the portrait mode screen width), a form sheet (partial width and partial height) or the current context (that is, what the parent container uses).

+13
source share

All Articles