cocos2dx 和Oc 页面跳转

yaoguaige
Thu, 28 Aug 2014 07:42:58 +0000

UIViewController* result2 = nil;

UIWindow* window = keyWindow];

if (window.windowLevel != UIWindowLevelNormal) {

    NSArray* windows = windows];
    for (UIWindow* tmpWin in windows) {
        if (tmpWin.windowLevel == UIWindowLevelNormal) {
            window = tmpWin;
            break;
        }
    }
}
UIView* frontView = objectAtIndex:0];
id nextResponder  = ;
if (]) {
    result2 = nextResponder;

}else{
    result2 = window.rootViewController;
}
return result2;

阅读整个主题