playerken

博客园 首页 新随笔 联系 订阅 管理

On the iPhone or iPod touch, a modal view controller takes over the entire screen. This is the default
behavior and the only possibility on these devices. On the iPad, you have two additional options: a
form sheet style and a page sheet style. You can change the presentation of the modal view controller
by setting its modalPresentationStyle property to a pre-defined constant –
UIModalPresentationFormSheet or UIModalPresentationPageSheet.

 

The form sheet style shows the modal view controller’s view in a rectangle in the center of the iPad’s
screen and dims out the presenting view controller’s view. 

The page sheet style is the same as the default full-screen style in portrait mode. In landscape mode, it
keeps its width the same as in portrait mode and dims the left and right edges of the presenting view
controller’s view that stick out behind it.

 

posted on 2014-12-16 14:28  playerken  阅读(109)  评论(0编辑  收藏  举报