diff --git a/template/xcode4/cocos2dx.xctemplate/ios/AppController.h b/template/xcode4/cocos2dx.xctemplate/ios/AppController.h index 4bd3952824..4f51fc6229 100644 --- a/template/xcode4/cocos2dx.xctemplate/ios/AppController.h +++ b/template/xcode4/cocos2dx.xctemplate/ios/AppController.h @@ -13,5 +13,8 @@ RootViewController *viewController; } +@property (nonatomic, retain) UIWindow *window; +@property (nonatomic, retain) RootViewController *viewController; + @end diff --git a/template/xcode4/cocos2dx.xctemplate/ios/AppController.mm b/template/xcode4/cocos2dx.xctemplate/ios/AppController.mm index a1f7a904c2..bf7505012c 100644 --- a/template/xcode4/cocos2dx.xctemplate/ios/AppController.mm +++ b/template/xcode4/cocos2dx.xctemplate/ios/AppController.mm @@ -15,6 +15,9 @@ @implementation AppController +@synthesize window; +@synthesize viewController; + #pragma mark - #pragma mark Application lifecycle diff --git a/template/xcode4/cocos2dx_box2d.xctemplate/ios/AppController.h b/template/xcode4/cocos2dx_box2d.xctemplate/ios/AppController.h index 4bd3952824..4f51fc6229 100644 --- a/template/xcode4/cocos2dx_box2d.xctemplate/ios/AppController.h +++ b/template/xcode4/cocos2dx_box2d.xctemplate/ios/AppController.h @@ -13,5 +13,8 @@ RootViewController *viewController; } +@property (nonatomic, retain) UIWindow *window; +@property (nonatomic, retain) RootViewController *viewController; + @end diff --git a/template/xcode4/cocos2dx_box2d.xctemplate/ios/AppController.mm b/template/xcode4/cocos2dx_box2d.xctemplate/ios/AppController.mm index 520b117ea2..a9bf46f84a 100644 --- a/template/xcode4/cocos2dx_box2d.xctemplate/ios/AppController.mm +++ b/template/xcode4/cocos2dx_box2d.xctemplate/ios/AppController.mm @@ -15,6 +15,9 @@ @implementation AppController +@synthesize window; +@synthesize viewController; + #pragma mark - #pragma mark Application lifecycle diff --git a/template/xcode4/cocos2dx_chipmunk.xctemplate/ios/AppController.h b/template/xcode4/cocos2dx_chipmunk.xctemplate/ios/AppController.h index 4bd3952824..4f51fc6229 100644 --- a/template/xcode4/cocos2dx_chipmunk.xctemplate/ios/AppController.h +++ b/template/xcode4/cocos2dx_chipmunk.xctemplate/ios/AppController.h @@ -13,5 +13,8 @@ RootViewController *viewController; } +@property (nonatomic, retain) UIWindow *window; +@property (nonatomic, retain) RootViewController *viewController; + @end diff --git a/template/xcode4/cocos2dx_chipmunk.xctemplate/ios/AppController.mm b/template/xcode4/cocos2dx_chipmunk.xctemplate/ios/AppController.mm index 833f59255d..da90ebfae0 100644 --- a/template/xcode4/cocos2dx_chipmunk.xctemplate/ios/AppController.mm +++ b/template/xcode4/cocos2dx_chipmunk.xctemplate/ios/AppController.mm @@ -15,6 +15,9 @@ @implementation AppController +@synthesize window; +@synthesize viewController; + #pragma mark - #pragma mark Application lifecycle diff --git a/template/xcode4/cocos2dx_js.xctemplate/ios/AppController.h b/template/xcode4/cocos2dx_js.xctemplate/ios/AppController.h index 3d51064ca0..b05d7bf9f7 100644 --- a/template/xcode4/cocos2dx_js.xctemplate/ios/AppController.h +++ b/template/xcode4/cocos2dx_js.xctemplate/ios/AppController.h @@ -29,5 +29,8 @@ RootViewController *viewController; } +@property (nonatomic, retain) UIWindow *window; +@property (nonatomic, retain) RootViewController *viewController; + @end diff --git a/template/xcode4/cocos2dx_js.xctemplate/ios/AppController.mm b/template/xcode4/cocos2dx_js.xctemplate/ios/AppController.mm index 96281719a6..82acce0269 100644 --- a/template/xcode4/cocos2dx_js.xctemplate/ios/AppController.mm +++ b/template/xcode4/cocos2dx_js.xctemplate/ios/AppController.mm @@ -15,6 +15,9 @@ @implementation AppController +@synthesize window; +@synthesize viewController; + #pragma mark - #pragma mark Application lifecycle diff --git a/template/xcode4/cocos2dx_lua.xctemplate/ios/AppController.h b/template/xcode4/cocos2dx_lua.xctemplate/ios/AppController.h index 3d51064ca0..b05d7bf9f7 100644 --- a/template/xcode4/cocos2dx_lua.xctemplate/ios/AppController.h +++ b/template/xcode4/cocos2dx_lua.xctemplate/ios/AppController.h @@ -29,5 +29,8 @@ RootViewController *viewController; } +@property (nonatomic, retain) UIWindow *window; +@property (nonatomic, retain) RootViewController *viewController; + @end diff --git a/template/xcode4/cocos2dx_lua.xctemplate/ios/AppController.mm b/template/xcode4/cocos2dx_lua.xctemplate/ios/AppController.mm index 6b27e1dcc9..a9cd27a2fe 100644 --- a/template/xcode4/cocos2dx_lua.xctemplate/ios/AppController.mm +++ b/template/xcode4/cocos2dx_lua.xctemplate/ios/AppController.mm @@ -31,6 +31,9 @@ @implementation AppController +@synthesize window; +@synthesize viewController; + #pragma mark - #pragma mark Application lifecycle