(void)viewDidLoad not getting called

(void)viewDidLoad not getting called
0.0 0


My (void)viewDidLoad is not getting called when the app is loaded on iOS. This is odd and I’m not sure why. In my sample iOS app it does get called, but they create the view differently because the sample app is not a cocos2d app. Is viewDidLoad supposed to be ran on a cocos2d-x project running on iOS?

Even if I make a new hello world project and uncomment viewDidLoad it will not get called. Is this a mistake in cocos2d or do I need to do additional steps?


Facing same problem with cocos2dx 2.0.4
Does anybody know how to call viewDidLoad in rootViewController