) Learning notes-viewcontroller (welcome to the error)

Source: Internet
Author: User

Popularity118 times

|Personal classification: Notes|System category: IOS|
Present, dismissing, modal, viewcontroller

By attribute, viewcontroller can be divided into presenting and presented. Suppose A presentmodalviewcontroller B, then a is presenting, and B is presentedviewcontroller, which can almost present any view (or even itself) use dismissingmodalviewcontroller to dismiss the rendered view so that the screen returns to the parent view.
Viewcontroller will not be immediately released when the method of dismissingmodalviewcontroller is used to terminate an attempt.
When the memory is not enough, it will be automatically released (I tested it, if an nstimer is added in this view, if the view nstimer is fired, it will continue to be executed) I made some attempts to render the view 1: A --> B --> C --> A does not crash, but the screen is black when a is displayed. 2: A --> B --> C, in the C view, if you want to skip B and directly return to A, you can only use dismissing for One-Step dismissal.

 

Http://www.devdiv.com/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8% AE %B0-viewController%EF%BC%88%E6%AC%A2%E8%BF%8E%E6%8C%87%E9%94%99%EF%BC%89-weblog-123-43018.html

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.