Controller switching mode in IOS development modal

Source: Internet
Author: User

Brief introduction

    • In the development of the iphone
    • Modal is a common way to switch controllers
    • The default is to eject from the bottom of the screen until the contents of the back are completely covered
    • In the development of ipad
    • The frequency of modal is also very high.
    • In contrast to iphone development, modal has a number of uses in ipad development

Rendering style

    • What do you mean, rendering style
    • Modal out of the controller, and the final display looks like
    • Modal there are 4 types of rendering styles common
    • Uimodalpresentationfullscreen: Full screen display (default)
    • Uimodalpresentationpagesheet
    • Width: Width of vertical screen (768)
    • Height: The height of the current screen (fills the entire height)
    • Uimodalpresentationformsheet: Occupy a small piece of the middle of the screen
    • Uimodalpresentationcurrentcontext: Follow the rendering style of the parent controller

Transition style

    • What do you mean transition style
    • Modal out of the controller, is how the animation rendered out
    • Modal Altogether 4 transition styles
    • Uimodaltransitionstylecoververtical: Drill up from bottom (default)
    • Uimodaltransitionstylefliphorizontal: three-dimensional flip
    • Uimodaltransitionstylecrossdissolve: Fade in and fade out
    • Uimodaltransitionstylepartialcurl: Page Turn (show only part, use premise: Render style must be Uimodalpresentationfullscreen)

Controller switching mode in IOS development modal

Related Article

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