• UIViewController函数调用顺序


    /*********** 0 执行1次而已 ******************/
    + (void)load {
        NSLog(@" 0:%s", __func__);
    }
     
    /*********** 1 执行1次而已 ******************/
    + (void)initialize {
        NSLog(@" 1:%s", __func__);
    }
    
    /*********** 常规的对象函数 ******************/
    /// 2
    - (instancetype)init {
        self = [super init];
        if (self) {
            NSLog(@" 2:%s", __func__);
        }
        return self;
    }
     
    /// 3
    - (void)loadView {
        [super loadView];
        NSLog(@" 3:%s", __func__);
    }
     
    /// 4
    - (void)viewDidLoad {
        [super viewDidLoad];
        NSLog(@" 4:%s", __func__);
    }
     
    /// 5
    - (void)viewWillAppear:(BOOL)animated {
        [super viewWillAppear:animated];
        NSLog(@" 5:%s", __func__);
    }
     
    /// 6
    - (void)updateViewConstraints {
        [super updateViewConstraints];
        NSLog(@" 6:%s", __func__);
    }
     
    /// 7
    - (void)viewWillLayoutSubviews {
        [super viewWillLayoutSubviews];
        NSLog(@" 7:%s", __func__);
    }
     
    /// 8
    - (void)viewDidLayoutSubviews {
        [super viewDidLayoutSubviews];
        NSLog(@" 8:%s", __func__);
    }
     
    /// 9
    - (void)viewDidAppear:(BOOL)animated {
        [super viewDidAppear:animated];
        NSLog(@" 9:%s", __func__);
    }
     
    /// 10
    - (void)viewWillDisappear:(BOOL)animated {
        [super viewWillDisappear:animated];
        NSLog(@"10:%s", __func__);
    }
     
    /// 11
    - (void)viewDidDisappear:(BOOL)animated {
        [super viewDidDisappear:animated];
        NSLog(@"11:%s", __func__);
    }
    
  • 相关阅读:
    audiojs 音频插件使用教程
    JavaScrip 原生多文件上传及预览 兼容多浏览器
    node操作mongdb的常用函数示例
    D3基础---比例尺
    D3基础---简介和数据
    前端性能优化和规范
    CSS代码优化(转载)
    CSS基础知识---浮动,定位和盒模型
    CSS基础知识
    用户样式,作者样式和浏览器默认样式
  • 原文地址:https://www.cnblogs.com/CH520/p/9551143.html
Copyright © 2020-2023  润新知