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