1

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];
}

Screenshot is below. enter image description here

I'm sorry I can not upload image because I have not enough reputation...

Vinodh
  • 5,262
  • 4
  • 38
  • 68
clansim
  • 21
  • 4
  • CNContactPickerViewController is incredibly buggy to the point of being unusable, especially when selecting multiple contacts. Apple hasn't been interested in fixing it for years, unfortunately. – SAHM Sep 14 '18 at 04:39

0 Answers0