viewDidLoad, viewWillDisappear, viewWillAppear等区别

转载 2012年03月25日 22:45:14
viewWillAppear: 
Called when the view is about to made visible. Default does nothing
视图即将可见时调用。默认情况下不执行任何操作
viewDidAppear: 
Called when the view has been fully transitioned onto the screen. Default does nothing
视图已完全过渡到屏幕上时调用
viewWillDisappear:
Called when the view is dismissed, covered or otherwise hidden. Default does nothing
视图被驳回时调用,覆盖或以其他方式隐藏。默认情况下不执行任何操作
viewDidDisappear:
Called after the view was dismissed, covered or otherwise hidden. Default does nothing
视图被驳回后调用,覆盖或以其他方式隐藏。默认情况下不执行任何操作

loadView; 
This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.
这是当他们没有正在使用nib视图页面,子类将会创建自己的自定义视图层。绝不能直接调用。
viewDidLoad;
Called after the view has been loaded. For view controllers created in code, this is after -loadView. For view controllers unarchived from a nib, this is after the view is set.
在视图加载后被调用,如果是在代码中创建的视图加载器,他将会在loadView方法后被调用,如果是从nib视图页面输出,他将会在视图设置好后后被调用。

相关文章推荐

(转)viewDidLoad, viewWillDisappear, viewWillAppear等区别及各自的加载顺序

来自:http://blog.csdn.net/silva_831/article/details/10511923 viewWillAppear:  Called when ...

随笔- viewDidLoad, viewWillDisappear, viewWillAppear等区别及各自的加载顺序

viewWillAppear:  Called when the view is about to made visible. Default does nothing视图即将可见时调用。默认情...

viewDidLoad, viewWillDisappear, viewWillAppear等区别

viewWillAppear:  Called when the view is about to made visible. Default does nothing 视图即将可见时调用。默认情...

视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear等的区别及用途

iOS视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear、viewDidDisappear的区别及用途...

iOS视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear、viewDidDisappear的区别及用途

iOS视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear、viewDidDisappear的区别及用途...

iOS视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear、viewDidDisappear的区别及用

iOS视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear、viewDidDisappear的区别及用途...

_视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear等的区别及用途

iOS视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear、viewDidDisappear的区别及用途...

viewDidLoad, viewWillDisappear, viewWillAppear等区别及各自的加载顺序

viewWillAppear:  Called when the view is about to made visible. Default does nothing视图即将可见时调用。默认情...

viewDidUnload,viewDidLoad,viewWillAppear,viewWillDisappear的作用以及区别

viewDidLoad:在视图加载后被调用 viewWillAppear:视图即将可见时调用。默认情况下不执行任何操作 viewDidAppear: 视图已完全过渡到屏幕上时调用 viewWillDi...

UIView的一些基本方法理解:loadView、viewDidLoad、viewDidUnload、viewWillAppear、viewWillDisappear

经常使用UIView以及它的子类,一般对于init:,viewDidLoad:,dealloc:等方法应该是比较熟悉和了解的。 对于其它几个基本方法就不那么常用了,为了更好地编程使用这些方法,在此集...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:viewDidLoad, viewWillDisappear, viewWillAppear等区别
举报原因:
原因补充:

(最多只允许输入30个字)