Link to home
Start Free TrialLog in
Avatar of CBueche
CBuecheFlag for United States of America

asked on

Why doesn't breakpoint at local init() trigger in my UIViewController?

I have an iPhone app up and running on a physical phone.

I have my own subclassed implementation of a UIViewController, with init() and viewDidLoad() overridden and declared like this:

- (id)init;
- (void)viewDidLoad;

When I set breakpoints at init() and viewDidLoad() and run the app, gdb breaks at viewDidLoad(), but not init().  init() appears not to be called at all.  In fact, farther down in the execution, variables that are supposed to be assigned in init() are still unassigned.

Any thoughts?  Explanations?

- Thanks
ASKER CERTIFIED SOLUTION
Avatar of mad_mac
mad_mac

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CBueche

ASKER

That sounds like the problem.  No time to verify right now, but I am in fact calling it up from a XIB.

Thanks!