UIViewController相关

//当第一次加载view的时候调用,如果要自定义原本的view,可以重写此方法
//不能在这里调用self.view,因为这个时候self.view还没有创建,否则会造成死循环
- (void)loadView{

}

//当控制器加载完毕时调用
- (void)viewDidLoad {
    [super viewDidLoad];
}

//当控制器即将显示时调用
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
}

//当控制器完成显示时调用
- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
}

//当控制器即将消失时调用
- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
}

//当控制器已经消失时调用
- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidDisappear:animated];
}

//当控制器即将布局子控件时调用
- (void)viewWillLayoutSubviews
{
    [super viewWillLayoutSubviews];
}

//当控制器完成子控件布局时调用
- (void)viewDidLayoutSubviews
{
    [super viewDidLayoutSubviews];
}

//当控制器出现内存警告
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

results matching ""

    No results matching ""