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

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift