2013-12-11 5 views
-4

다음 제안 된 해결 방법을 시도했지만 화면이 아래로 이동했지만 상태 표시 줄이 보이지 않습니다 (검은 색). 또한 AppDelegate에에 다음의 Info.plist 및 setStatusBarStyle에 뷰 컨트롤러를 기반으로 상태 표시 줄 스타일을 해제했지만, 운, 나는 표시하는 상태 표시 줄을 얻을 수있는 방법 ..iOS 7 상태 표시 줄 겹침 문제

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { 
    [[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleLightContent]; 
    self.window.clipsToBounds =YES; 
    self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20); 
    self.window.bounds = CGRectMake(0,0, self.window.frame.size.width,  self.window.frame.size.height); 
} 
+0

http://stackoverflow.com/questions/19428712/ios7-status-bar-issue – Sport

답변

1
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { 
     [[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleLightContent]; 
     self.window.clipsToBounds =YES; 
     self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20); 
} 
else{ 
     self.window.frame = CGRectMake(0,0, self.window.frame.size.width, self.window.frame.size.height); 
} 

제발 도와주세요 이것을 사용해보십시오.

+0

코드와 내 코드의 차이를 볼 수 없습니다. 작동하지 않는다고 했으므로 – user3090948