私はiosアプリケーションを開発しています。私はメインビューを持っており、このビューでは ぼんやりした背景(不透明な黒色)のモーダルビューコントローラを表示しようとしています。 問題は、ステータスバーがこの色の影響を受けず、同じままであることです。モーダルビューコントローラはステータスバーをカバーしません
これは私がビューコントローラを提示する方法である:ここでは
let shareViewController = self.storyboard?.instantiateViewControllerWithIdentifier("ShareViewController") as! ShareViewController
shareViewController.battle = battle
shareViewController.delegate = self
let animation = CATransition()
animation.duration = 1
animation.type = kCATransitionFade
self.view.window?.layer.addAnimation(animation, forKey: kCATransition)
presentViewController(shareViewController, animated: false) {
() in
// nothing here
}
は、問題を示すためにいくつかのスクリーンショットです:
これが問題(ステータスバーの色)である: Problem illustration これがモーダルストーリーボードのビュー: storyboard
ヘルプユーザー –
ShareViewControllerのコードを共有してください。もしあれば –