From 368d668e7b89d96bd55ad20edd5bd6f9ccfa0e8e Mon Sep 17 00:00:00 2001 From: LinWenhai Date: Fri, 13 Sep 2013 09:42:26 +0800 Subject: [PATCH] Update RootViewController.mm fix not hide status on ios7 --- template/multi-platform-cpp/proj.ios/RootViewController.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/template/multi-platform-cpp/proj.ios/RootViewController.mm b/template/multi-platform-cpp/proj.ios/RootViewController.mm index a42e6cfacd..906aeaf082 100644 --- a/template/multi-platform-cpp/proj.ios/RootViewController.mm +++ b/template/multi-platform-cpp/proj.ios/RootViewController.mm @@ -43,6 +43,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];