自定义UIImagePickerController的Navigation Bar颜色和字体颜色


For completeness, I'll add full color customization setup:

let imagePicker = UIImagePickerController()
imagePicker.navigationBar.translucent = false
imagePicker.navigationBar.barTintColor = .blueColor() // Background color
imagePicker.navigationBar.tintColor = .whiteColor() // Cancel button ~ any UITabBarButton items
imagePicker.navigationBar.titleTextAttributes = [
        NSForegroundColorAttributeName : UIColor.whiteColor()
] // Title color

which results in:

自定义UIImagePickerController的Navigation Bar颜色和字体颜色_第1张图片
IbVdi.png

参考

  • How do you color/customize the UIImagePickerController's Navigation Bar?

你可能感兴趣的:(自定义UIImagePickerController的Navigation Bar颜色和字体颜色)