IOS ipad Development modal

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.