Occasionally I get a navigation bar of CNContactPickerViewController position error on iPhoneX.
How to fix this problem?
The source code is shown below.
- (void)showContactPicker {
if (_contactPicker) {
[_contactPicker removeFromParentViewController];
_contactPicker = nil;
}
_contactPicker = [[CNContactPickerViewController alloc] init];
_contactPicker.delegate = self;
_contactPicker.displayedPropertyKeys = @[CNContactPhoneNumbersKey];
[self presentViewController:_contactPicker animated:YES completion:nil];
}
I'm sorry I can not upload image because I have not enough reputation...