다음 단계를 시도해도 iOS 8 이상에서 작동해야합니다.
1) 등록 정보 컨트롤러 기반 상태 표시 줄보기 =>아니오 Info.plist에 추가하십시오.
2) ViewController
에 AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
[self.window setBackgroundColor:[UIColor redColor]]; // Change color as per need.
return YES;
}
3) 재정의 메서드의 코드 조각 다음 추가 또는 당신은 상속 계층 구조가있는 경우 모든 ViewController
의 ParentViewController
에서 무시 고려할 수 있습니다. 그렇지 않으면 ViewController
마다이 메소드를 대체해야합니다.
- (UIStatusBarStyle) preferredStatusBarStyle {
return UIStatusBarStyleLightContent;
}
아니요,이 문제는 iPhone 5 (기기)에서도 발생합니다. – Raptor
@Raptor 내 앱이 아닙니다.) – Daniel