`
renzhelife
  • 浏览: 668752 次
文章分类
社区版块
存档分类
最新评论

What is difference between UIModalTransitionStyle and UIModalPresentationStyle ?

 
阅读更多


For UIViewController, we have UIModalTransitionStyle and UIModalPresentationStyle enter link description here

Question is what is the difference of them ?

up vote1down voteaccepted

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics