1. The most common modal
Qksecondviewcontroller *second = [[Qksecondviewcontroller alloc]init];
[Self Presentviewcontroller:second animated:yes completion:nil];
2. The modal process can be set by 2 properties:Modaltransitionstyle andModalpresentationstyle
The former determines how the animation comes out, the latter determines the area to be displayed after the animation ends
/*
uimodaltransitionstylecoververtical = 0, climb up vertically
Uimodaltransitionstylefliphorizontal, Horizontal Flip
Uimodaltransitionstylecrossdissolve, Fading
Uimodaltransitionstylepartialcurl, book-Flipping effect
*/
Second.modaltransitionstyle = Uimodaltransitionstylepartialcurl;
PS: When the effect of the book, the animation after the execution, IOS7/8 difference, left for iOS7, right for iOS8
/*
Uimodalpresentationfullscreen = 0, fullscreen
Uimodalpresentationpagesheet, the width of the screen is 768, height is the screen height
Uimodalpresentationformsheet, the most used in the development of the ipad, the middle of a small piece of display
*/
Second.modalpresentationstyle = Uimodalpresentationpagesheet;
3. Add: IOS8, Apple to the iphone and ipad modal way, do a unified treatment, how to unify can review: IOS iOS8 new features--uipopoverpresentationcontrollerios IOS8 new Features--uipresentationcontroller
IOS ipad Development modal