Ios 更改照片库按钮的颜色
我想更改“取消”按钮的颜色,以及从照片库中选择图像时显示的其他按钮的颜色。我怎样才能做到这一点Ios 更改照片库按钮的颜色,ios,swift,alassetslibrary,Ios,Swift,Alassetslibrary,我想更改“取消”按钮的颜色,以及从照片库中选择图像时显示的其他按钮的颜色。我怎样才能做到这一点 var imagePicker = UIImagePickerController() imagePicker.delegate = sender as? protocol<UIImagePickerControllerDelegate, UINavigationControllerDelegate> imagePicker.sourceType = UIImagePickerContro
var imagePicker = UIImagePickerController()
imagePicker.delegate = sender as? protocol<UIImagePickerControllerDelegate, UINavigationControllerDelegate>
imagePicker.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
imagePicker.allowsEditing = true
sender.navigationController?.presentViewController(imagePicker, animated: true, completion: nil)
var-imagePicker=UIImagePickerController()
imagePicker.delegate=发件人身份?协议
imagePicker.sourceType=UIImagePickerControllerSourceType.PhotoLibrary
imagePicker.allowsEditing=true
sender.navigationController?.presentViewController(imagePicker,动画:true,完成:nil)
目标-C
在AppDelegate.m
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
敏捷的
在AppDelegate.swift
中,在应用程序中(u:didfishlaunchingwithoptions:)
我放置了以下内容:
UINavigationBar.appearance().tintColor = UIColor.whiteColor()
如果要更改导航栏的文本颜色,请使用以下代码:
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName : UIColor.whiteColor()]
如何在imagepicker中使用此选项?