CNContactViewController fails if not embedded in UINavigationController
| Originator: | jonas.schmid | ||
| Number: | rdar://22601563 | Date Originated: | 2015.09.07 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 9.0 beta 5 |
| Classification: | Crash | Reproducible: | Always |
Summary:
If CNContactViewController is presented (presentViewController()) without being embedded in a UINavigationController, it fails and logs a weird error.
Steps to Reproduce:
Create an iOS projet. Add code to request the contacts permission.
Run those line: https://gist.github.com/jschmid/e66f19057f975ba97a12
Expected Results:
Show the view controller with the contact
Actual Results:
Does not show the view controller and logs:
2015-09-07 14:28:54.943 ContactFrameworkTest[638:518249] plugin com.apple.MobileAddressBook.ContactViewViewService interrupted
2015-09-07 14:28:54.944 ContactFrameworkTest[638:518249] plugin com.apple.MobileAddressBook.ContactViewViewService invalidated
2015-09-07 14:28:54.968 ContactFrameworkTest[638:518219] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}
Version:
iOS 9 beta 5
Notes:
Configuration:
iPhone 6 Plus
Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!