I am trying to display contact information by pressing the name hard (Peek).
in the UIViewControllerPreviewingDelegate
in previewingContext:viewControllerForLocation:
You are using CNContactViewController viewControllerForController:contact; to obtain an instance of CNContactViewController.
However, if there are people who appear and people who do not appear when tested,
plugin com.apple.MobileAddressBook.ContactViewViewService interrupted
viewServiceDidTerminateWithError::ErrorDomain=_UIViewServiceInterfaceErrorDomain Code=3"(null) "UserInfo={Message=ServiceConnectionInterrupted}
The log appears.
People who are or are not shown are always the same, so contact data seems to be relevant.
What should I check?
By the way, I'm testing it on real machines (iOS 9.0.2, iOS 9.1).
ios
Subsequent tests showed that there was no problem with the UINavigationController.However, I cannot use that method because there is a problem.
The solution was to specify only any item in the CNContactViewController displayedPropertyKeys.
© 2024 OneMinuteCode. All rights reserved.