美文网首页
自定义UIImagePickerController的Navig

自定义UIImagePickerController的Navig

作者: TomatosX | 来源:发表于2016-04-14 18:45 被阅读1371次

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:

IbVdi.png

参考

相关文章

网友评论

      本文标题:自定义UIImagePickerController的Navig

      本文链接:https://www.haomeiwen.com/subject/bjgglttx.html