I am using storyboards, and I have one UIViewController
that is being opened modally.
When the UIViewController
is being loaded, it never hits any of the init methods init
, initwithcoder
, or initwithnib
.
Why not? I need to initialize some variables there!!
答案是awakeFromNib,@ Fogmiester知道了,尽管不知道如何使其成为答案!!
you can use viewDidLoad function and it also call once for each control object.
Thanks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.