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];