开发者

init and initWithNibName are not called but viewDidLoad is called

开发者 https://www.devze.com 2023-03-22 21:39 出处:网络
init a开发者_开发问答nd initWithNibName are not called at all but viewDidLoad is called. Any thought?Maybe initWithCoder: is called. Is your controller instanciated via Nib ?You are loading the contro

init a开发者_开发问答nd initWithNibName are not called at all but viewDidLoad is called. Any thought?


Maybe initWithCoder: is called. Is your controller instanciated via Nib ?


You are loading the controller from a nib, this surely cannot call initWithNibName:... as you hopefully will understand. Just put all the code which would have gone there in viewDidLoad or stick with the solution mentioned by Vince

0

精彩评论

暂无评论...
验证码 换一张
取 消