From 5350b1ad06557b5e180e45950527af5cbc02e884 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Fri, 13 Sep 2013 15:54:58 +0800 Subject: [PATCH 1/3] issue #2800:Can not hide status bar on iOS 7 fixed #2800:User prefersStatusBarHidden in RootViewController on IOS 7 to hide status. --- .../Cpp/AssetsManagerTest/proj.ios/RootViewController.h | 2 +- .../Cpp/AssetsManagerTest/proj.ios/RootViewController.mm | 6 ++++++ samples/Cpp/HelloCpp/proj.ios/RootViewController.h | 2 +- samples/Cpp/HelloCpp/proj.ios/RootViewController.mm | 7 +++++-- samples/Cpp/SimpleGame/proj.ios/RootViewController.h | 2 +- samples/Cpp/SimpleGame/proj.ios/RootViewController.mm | 6 ++++++ samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.h | 2 +- samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.mm | 6 ++++++ 8 files changed, 27 insertions(+), 6 deletions(-) diff --git a/samples/Cpp/AssetsManagerTest/proj.ios/RootViewController.h b/samples/Cpp/AssetsManagerTest/proj.ios/RootViewController.h index 6748a700b5..17d8b1ca23 100644 --- a/samples/Cpp/AssetsManagerTest/proj.ios/RootViewController.h +++ b/samples/Cpp/AssetsManagerTest/proj.ios/RootViewController.h @@ -12,5 +12,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Cpp/AssetsManagerTest/proj.ios/RootViewController.mm b/samples/Cpp/AssetsManagerTest/proj.ios/RootViewController.mm index a6809cf53f..779facc5b7 100644 --- a/samples/Cpp/AssetsManagerTest/proj.ios/RootViewController.mm +++ b/samples/Cpp/AssetsManagerTest/proj.ios/RootViewController.mm @@ -51,6 +51,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/samples/Cpp/HelloCpp/proj.ios/RootViewController.h b/samples/Cpp/HelloCpp/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Cpp/HelloCpp/proj.ios/RootViewController.h +++ b/samples/Cpp/HelloCpp/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Cpp/HelloCpp/proj.ios/RootViewController.mm b/samples/Cpp/HelloCpp/proj.ios/RootViewController.mm index 7376e21c9a..4984955c8a 100644 --- a/samples/Cpp/HelloCpp/proj.ios/RootViewController.mm +++ b/samples/Cpp/HelloCpp/proj.ios/RootViewController.mm @@ -69,8 +69,11 @@ return YES; } - - +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. diff --git a/samples/Cpp/SimpleGame/proj.ios/RootViewController.h b/samples/Cpp/SimpleGame/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Cpp/SimpleGame/proj.ios/RootViewController.h +++ b/samples/Cpp/SimpleGame/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Cpp/SimpleGame/proj.ios/RootViewController.mm b/samples/Cpp/SimpleGame/proj.ios/RootViewController.mm index cccdbab91e..a00da00584 100644 --- a/samples/Cpp/SimpleGame/proj.ios/RootViewController.mm +++ b/samples/Cpp/SimpleGame/proj.ios/RootViewController.mm @@ -68,6 +68,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.h b/samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.h index ab4f9cf49f..1401055c5c 100644 --- a/samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.h +++ b/samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.h @@ -12,5 +12,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.mm b/samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.mm index db521bb0ce..137ff450a6 100644 --- a/samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.mm +++ b/samples/Cpp/TestCpp/proj.ios/Classes/RootViewController.mm @@ -51,6 +51,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; From 18f2f831b463f9cf13b79b9dc0987dffcd3fb0c3 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Fri, 13 Sep 2013 16:07:02 +0800 Subject: [PATCH 2/3] issue #2800:Can not hide status bar on iOS 7 fixed #2800:User prefersStatusBarHidden in RootViewController on IOS 7 to hide status. --- .../Javascript/CocosDragonJS/proj.ios/RootViewController.h | 2 +- .../Javascript/CocosDragonJS/proj.ios/RootViewController.mm | 6 ++++++ .../Javascript/CrystalCraze/proj.ios/RootViewController.h | 2 +- .../Javascript/CrystalCraze/proj.ios/RootViewController.mm | 6 ++++++ .../Javascript/MoonWarriors/proj.ios/RootViewController.h | 2 +- .../Javascript/MoonWarriors/proj.ios/RootViewController.mm | 6 ++++++ .../Javascript/TestJavascript/proj.ios/RootViewController.h | 2 +- .../TestJavascript/proj.ios/RootViewController.mm | 6 ++++++ .../WatermelonWithMe/proj.ios/RootViewController.h | 2 +- .../WatermelonWithMe/proj.ios/RootViewController.mm | 6 ++++++ samples/Lua/HelloLua/proj.ios/RootViewController.h | 2 +- samples/Lua/HelloLua/proj.ios/RootViewController.mm | 6 ++++++ samples/Lua/TestLua/proj.ios/RootViewController.h | 2 +- samples/Lua/TestLua/proj.ios/RootViewController.mm | 6 ++++++ 14 files changed, 49 insertions(+), 7 deletions(-) diff --git a/samples/Javascript/CocosDragonJS/proj.ios/RootViewController.h b/samples/Javascript/CocosDragonJS/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Javascript/CocosDragonJS/proj.ios/RootViewController.h +++ b/samples/Javascript/CocosDragonJS/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Javascript/CocosDragonJS/proj.ios/RootViewController.mm b/samples/Javascript/CocosDragonJS/proj.ios/RootViewController.mm index 7a0d59ccc9..8438d7a420 100644 --- a/samples/Javascript/CocosDragonJS/proj.ios/RootViewController.mm +++ b/samples/Javascript/CocosDragonJS/proj.ios/RootViewController.mm @@ -51,6 +51,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/samples/Javascript/CrystalCraze/proj.ios/RootViewController.h b/samples/Javascript/CrystalCraze/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Javascript/CrystalCraze/proj.ios/RootViewController.h +++ b/samples/Javascript/CrystalCraze/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Javascript/CrystalCraze/proj.ios/RootViewController.mm b/samples/Javascript/CrystalCraze/proj.ios/RootViewController.mm index 7a0d59ccc9..8438d7a420 100644 --- a/samples/Javascript/CrystalCraze/proj.ios/RootViewController.mm +++ b/samples/Javascript/CrystalCraze/proj.ios/RootViewController.mm @@ -51,6 +51,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/samples/Javascript/MoonWarriors/proj.ios/RootViewController.h b/samples/Javascript/MoonWarriors/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Javascript/MoonWarriors/proj.ios/RootViewController.h +++ b/samples/Javascript/MoonWarriors/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Javascript/MoonWarriors/proj.ios/RootViewController.mm b/samples/Javascript/MoonWarriors/proj.ios/RootViewController.mm index dfe7608c8d..3a37088ebd 100644 --- a/samples/Javascript/MoonWarriors/proj.ios/RootViewController.mm +++ b/samples/Javascript/MoonWarriors/proj.ios/RootViewController.mm @@ -51,6 +51,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/samples/Javascript/TestJavascript/proj.ios/RootViewController.h b/samples/Javascript/TestJavascript/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Javascript/TestJavascript/proj.ios/RootViewController.h +++ b/samples/Javascript/TestJavascript/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Javascript/TestJavascript/proj.ios/RootViewController.mm b/samples/Javascript/TestJavascript/proj.ios/RootViewController.mm index 7a0d59ccc9..8438d7a420 100644 --- a/samples/Javascript/TestJavascript/proj.ios/RootViewController.mm +++ b/samples/Javascript/TestJavascript/proj.ios/RootViewController.mm @@ -51,6 +51,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/samples/Javascript/WatermelonWithMe/proj.ios/RootViewController.h b/samples/Javascript/WatermelonWithMe/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Javascript/WatermelonWithMe/proj.ios/RootViewController.h +++ b/samples/Javascript/WatermelonWithMe/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Javascript/WatermelonWithMe/proj.ios/RootViewController.mm b/samples/Javascript/WatermelonWithMe/proj.ios/RootViewController.mm index 7a0d59ccc9..8438d7a420 100644 --- a/samples/Javascript/WatermelonWithMe/proj.ios/RootViewController.mm +++ b/samples/Javascript/WatermelonWithMe/proj.ios/RootViewController.mm @@ -51,6 +51,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/samples/Lua/HelloLua/proj.ios/RootViewController.h b/samples/Lua/HelloLua/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Lua/HelloLua/proj.ios/RootViewController.h +++ b/samples/Lua/HelloLua/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Lua/HelloLua/proj.ios/RootViewController.mm b/samples/Lua/HelloLua/proj.ios/RootViewController.mm index cccdbab91e..a00da00584 100644 --- a/samples/Lua/HelloLua/proj.ios/RootViewController.mm +++ b/samples/Lua/HelloLua/proj.ios/RootViewController.mm @@ -68,6 +68,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/samples/Lua/TestLua/proj.ios/RootViewController.h b/samples/Lua/TestLua/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/samples/Lua/TestLua/proj.ios/RootViewController.h +++ b/samples/Lua/TestLua/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/samples/Lua/TestLua/proj.ios/RootViewController.mm b/samples/Lua/TestLua/proj.ios/RootViewController.mm index cccdbab91e..a00da00584 100644 --- a/samples/Lua/TestLua/proj.ios/RootViewController.mm +++ b/samples/Lua/TestLua/proj.ios/RootViewController.mm @@ -68,6 +68,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; From b827162113493afbebf8adeeaf1ae3a0d0e94353 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Fri, 13 Sep 2013 16:18:58 +0800 Subject: [PATCH 3/3] issue #2800:Can not hide status bar on iOS 7 fixed #2800:User prefersStatusBarHidden in RootViewController on IOS 7 to hide status. --- template/multi-platform-js/proj.ios/RootViewController.h | 2 +- template/multi-platform-js/proj.ios/RootViewController.mm | 6 ++++++ template/multi-platform-lua/proj.ios/RootViewController.h | 2 +- template/multi-platform-lua/proj.ios/RootViewController.mm | 6 ++++++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/template/multi-platform-js/proj.ios/RootViewController.h b/template/multi-platform-js/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/template/multi-platform-js/proj.ios/RootViewController.h +++ b/template/multi-platform-js/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/template/multi-platform-js/proj.ios/RootViewController.mm b/template/multi-platform-js/proj.ios/RootViewController.mm index c6978fb6e4..a0f626dcd6 100644 --- a/template/multi-platform-js/proj.ios/RootViewController.mm +++ b/template/multi-platform-js/proj.ios/RootViewController.mm @@ -44,6 +44,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; diff --git a/template/multi-platform-lua/proj.ios/RootViewController.h b/template/multi-platform-lua/proj.ios/RootViewController.h index a40c2edd28..11dfc4bf88 100644 --- a/template/multi-platform-lua/proj.ios/RootViewController.h +++ b/template/multi-platform-lua/proj.ios/RootViewController.h @@ -29,5 +29,5 @@ @interface RootViewController : UIViewController { } - +- (BOOL)prefersStatusBarHidden; @end diff --git a/template/multi-platform-lua/proj.ios/RootViewController.mm b/template/multi-platform-lua/proj.ios/RootViewController.mm index cccdbab91e..a00da00584 100644 --- a/template/multi-platform-lua/proj.ios/RootViewController.mm +++ b/template/multi-platform-lua/proj.ios/RootViewController.mm @@ -68,6 +68,12 @@ return YES; } +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning];