zoukankan      html  css  js  c++  java
  • UIViewController

    模式对话窗体跳转

    1、

    //模式对话窗体跳转

    - (void)presentViewController:(UIViewController *)viewControllerToPresent  animated:(BOOL)flag  completion:(void (^)(void))completion;
    
    如:
    
    SubViewController *svc = [[SubViewController alloc]init];
    
        svc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    
        [self presentViewController:svc animated:YES completion:^{
    
        }];

    svc.modalTransitionStyle 指切换模式

    2、

    //关闭模式对话窗体

    - (void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion;

    如:

    [self dismissViewControllerAnimated:YES completion:^{
    
        }];

     

    生命周期

    1、loadView

    2、viewDidLoad

    //3、viewDidUnload

    //4、didReceiveMemoryWarning

    5、viewWillAppear

    6、viewDidAppear

    7、viewWillDisappear

    8、viewDidDisappear

    一般生命周期是:loadView  ->  viewDidLoad  ->  viewWillAppear  ->  viewDidAppear  ->viewWillDisappear  ->viewDidDisappear

  • 相关阅读:
    js 鸭式辨型法
    javascript performence
    js继承实现
    js深入理解构造函数和原型对象
    js 变量类型
    JS 严格模式
    鼠标滚动事件
    css3-transform
    js.map error
    canvas(一) 基本线条绘制
  • 原文地址:https://www.cnblogs.com/durwards/p/4525122.html
Copyright © 2011-2022 走看看