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.


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

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift