Trick to getting initWithNibFile to be invoked?
Posted
by PhazeZero
on Stack Overflow
See other posts from Stack Overflow
or by PhazeZero
Published on 2009-04-26T01:35:00Z
Indexed on
2010/03/15
1:09 UTC
Read the original article
Hit count: 226
iphone
I've implemented a View Controller, and I'm trying to do some very basic initialization in initWithNibFile...which I understand to be the designated initializer for View Controller objects.
I've tried to put breakpoints on the code, and have put very simple NSLog statements into it as well. Regardless...I'm not seeing it be executed (and the object i'm attempting to alloc/init inside the function is also not being allocated - so I'm about 99% sure I'm not hitting the code.
Is there something I need to do elsewhere to cause this method to be invoked?
I'm getting a clean build, no warnings or errors. And the app successfully loads up the View, and I can invoke a ButtonClick method I've coded and connected to this same View Controller.
Any suggestions would be appreciated.
TC
© Stack Overflow or respective owner