I’ve been trying to verify in my tests (GTM) that when a nib file is loaded, its IBOutlets were properly connected in InterfaceBuilder.
However I keep getting nil references, despite calling [myViewController viewDidLoad] before asserting that the reference should exist.
Are there any gotchas here, or should this be mocked somehow ?
cheers
calling
[myViewContoller viewDidLoad]does not load the view. You want[myViewController loadView], which loads up the .nib and the references.