I start a CNContactPickerViewController from a viewcontroller, but how can I change the textcolor of the searchbar inside it. The navigationbar is dark blue, in iOS11 the default searchbartext is black.
I updated the way to fix in swift Before you present CNContactPickerViewController, you should set background color of UISearchBar
UISearchBar.appearance().backgroundColor = UIColor.white
let cancelButtonAttributes = [NSForegroundColorAttributeName: ColorConstant.baseColorGray]
UIBarButtonItem.appearance(whenContainedInInstancesOf:
[UISearchBar.self]).setTitleTextAttributes(cancelButtonAttributes, for: .normal)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With