For UIViewController, we have UIModalTransitionStyle and UIModalPresentationStyle enter link description here
Question is what is the difference of them ?
本文解析了UIKit中模态视图的两种样式:UIModalTransitionStyle和UIModalPresentationStyle的区别。前者定义了模态视图的过渡动画效果,如垂直进入、水平翻转等;后者则指定了模态视图的展示方式,例如全屏显示或作为页面的一部分。
|
For UIViewController, we have UIModalTransitionStyle and UIModalPresentationStyle enter link description here Question is what is the difference of them ? |
|
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). |

被折叠的 条评论
为什么被折叠?