objective c - Presenting UIViewController in IOS using cocos2d-JS -
i want present view controller on top of current view controller , using cocos2d-js. after reading while came know there 1 view controller inside cocos-2d , happens through 1 controller only. i trying present view controller using command [[ccdirector shareddirector] presentviewcontroller:mailcont animated:yes completion:nil]; but apparently xcode not able locate ccdirector class. when try incude ccdirector.h header file start getting error "stack file not found" . i think not able include ccdirector properly.. right way ? use [[rootviewcontroller sharedrootviewcontroller] presentviewcontroller:] or window class appcontroller, add [window addsubview] just @ appcontroller.cpp, cocos2d viewcontroller constructed , added there