Happy New Year!
I want to hide status bar after calling UIImagePickerController on iOS 10.2. You know there are already several questions about it with some answers,
The status bar can be hidden and show when presenting view controller UIImagePickerController swift 4+
picker.dismiss(animated: true, completion: {
if let statusBar = UIApplication.shared.value(forKey: "statusBar") as? UIView {
statusBar.isHidden = true
}
})
picker.dismiss(animated: true, completion: {
if let statusBar = UIApplication.shared.value(forKey: "statusBar") as? UIView {
statusBar.isHidden = false
}
})