I'm presenting CNContactPickerViewController
(strongly referenced ivar):
contactsViewController = [[CNContactPickerViewController alloc] init];
contactsViewController.delegate = self;
[self presentViewController:contactsViewController animated:YES completion:nil];
However, here is the result:
After encountering the problem I've tried changing the appearance of search bar (not sure what I should set, just trying): [[UISearchBar appearanceWhenContainedInInstancesOfClasses:@[[CNContactPickerViewController class]]] setBarTintColor:[UIColor redColor]];
but it didn't do anything.
Why would this happen and how can I fix it?
UPDATE: I've tried various combinations of the following on the contacts view controller:
automaticallyAdjustsScrollViewInsets
definesPresentationContext
edgesForExtendedLayout
modalPresentationStyle
modalPresentationCapturesStatusBarAppearance
However, nothing changes at all. They all yield the same result.