如何更改CNContactPickerViewController searchBar的颜色
我从viewcontroller启动CNContactPickerViewController,但是如何更改其中的搜索栏的textcolor。 导航栏为深蓝色,在iOS11中,默认的searchbartext为黑色。
我更新了修复swift的方法在你呈现CNContactPickerViewController之前,你应该设置UISearchBar的背景颜色
UISearchBar.appearance().backgroundColor = UIColor.white let cancelButtonAttributes = [NSForegroundColorAttributeName: ColorConstant.baseColorGray] UIBarButtonItem.appearance(whenContainedInInstancesOf: [UISearchBar.self]).setTitleTextAttributes(cancelButtonAttributes, for: .normal)
- IOS中的MDM如何真正起作用?
- 将从AppDelegate的推送通知接收到的数据传递给ViewController
- 从另一个视图控制器swift修改一个variables
- Swift Alamofire发送XML请求并接收XML响应
- 自定义的UITableViewRowAnimation或持续时间
- 无法从ImageView访问TabBarController
- E2E:使用Wix Detox从UIImagePickerController中选择一个图像
- 错误使用未parsing的标识符GMSPlacePickerConfig&GooglePlacePicker? (Google Places 2.0)
- 使用AVMutableComposition编写video和audio