i have a UIViewController set to viewWillAppear
BOOL)animation as it will be need to refresh each time it appears on screen. the view is without a nib file, completely programatically set.
i can't see to get the initializer correct. the documentation tells me to use - (id)initWithNibName
NSString *)nibNameOrNil bundle
NSBundle *)nibBundleOrNil, but it's the code inside this init method doesn't get called.
for testing purposes, i though maybe viewWillAppear could not substitute loadView, as is used for programatically created UIViewControllers, but changing it to loadView doesn't help either.
so my questions:
1. what initializer method do i use for programatically created UIViewControllers
2. will loadView cause the view to update each time the view appears?
i can't see to get the initializer correct. the documentation tells me to use - (id)initWithNibName
for testing purposes, i though maybe viewWillAppear could not substitute loadView, as is used for programatically created UIViewControllers, but changing it to loadView doesn't help either.
so my questions:
1. what initializer method do i use for programatically created UIViewControllers
2. will loadView cause the view to update each time the view appears?