UIImagePickerController top bar came as white.Buttons not visible iOS swift
Solution:
You can use the extension method for the imagePickerController to show the top bar as your needed color.
You can use the extension method for the imagePickerController to show the top bar as your needed color.
extension UIImagePickerController {
open override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
self.navigationBar.topItem?.rightBarButtonItem?.tintColor =
UIColor(red:121/255, green:85/255 ,blue:72/255 , alpha:1.00)
self.navigationBar.topItem?.rightBarButtonItem?.isEnabled = true
}
}
Comments
Post a Comment