The objects do not yet exist when initWithCoder
is called, and they do when viewDidLoad
is called. Check your initWithCoder
method by logging out the value of worldView
using something like:
NSLog(@"World View: %@", worldView);
and it will be nil
. They will be initialized before the call to viewDidLoad
, so you can set a property of that IBOutlet
there.