您的位置:首页 > 其它

initWithNibName 和 init 关系

2014-05-11 17:42 501 查看
Actually, init is just initWithNibName with the arguments are set nil.

if you redfine init, then you have to call :

self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

Then you can do your view hiercary in loadview method.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  init initWithNibName