Right I figured this out. I had renamed the xib file. But there was a reference to the old xib in code:
Code:
mySecondViewController = [[GetLightsVC alloc] initWithNibName:@"mySecondViewController"
bundle:nil];
The reason this didn't crash was that the emulator had an old version of the nib on the phone.
So I guess the question now is, is there a automatic way to I refactor a .xib?
Ian