ios 调用相机相册后状态栏消失

解决办法,在VC的viewwillappear中加入两行代码,如下:

override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        UIApplication.sharedApplication().statusBarHidden = false
        self.navigationController?.setNavigationBarHidden(false, animated: true)
    }


你可能感兴趣的:(ios 调用相机相册后状态栏消失)