What is difference between UIModalTransitionStyle and UIModalPresentationStyle?
Asked Answered
M

1

9

For UIViewController, we have UIModalTransitionStyle and UIModalPresentationStyle

Question is what is the difference of them ?

Mcmasters answered 11/3, 2011 at 8:19 Comment(0)
S
14

UIModalTransitionStyle is used to specify how the modal form transitions into view. For example, it can come in vertically, flip horizontal, or do a partial curl.

UIModalPresentationStyle is used to specified whether you want the modal form to be full screen (basically what iPhone uses) or otherwise (therefore only makes sense for 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 current context (i.e. what the parent container uses).

Stand answered 17/3, 2011 at 20:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.