saman01
saman01

Reputation: 1004

init and initWithNibName are not called but viewDidLoad is called

init and initWithNibName are not called at all but viewDidLoad is called. Any thought?

Upvotes: 0

Views: 720

Answers (2)

Tim Specht
Tim Specht

Reputation: 3218

You are loading the controller from a nib, this surely cannot call initWithNibName:... as you hopefully will understand. Just put all the code which would have gone there in viewDidLoad or stick with the solution mentioned by Vince

Upvotes: -1

user756245
user756245

Reputation:

Maybe initWithCoder: is called. Is your controller instanciated via Nib ?

Upvotes: 9

Related Questions