cncontactviewcontroller

select multiple properties from single contact in CNContactPicker

浪子不回头ぞ 提交于 2019-12-13 05:30:41
问题 I am trying to use the CNContactPickerViewController and keep running into issues with how to pick multiple properties from a single contact Basic display of the picker let contactStore = CNContactStore() override func viewDidLoad() { super.viewDidLoad() self.askForContactAccess() self.displayContacts() } func displayContacts(){ let contactPicker = CNContactPickerViewController() contactPicker.delegate = self self.present(contactPicker, animated: true, completion: nil) } this displays the

CNContactViewController does something strange with responder chain

拟墨画扇 提交于 2019-12-11 12:42:59
问题 I am trying to implement UIKeyCommand shortcuts in my app, and for the most part, it seems to work fine. Except when I present CNContactViewController in a modal view, where it seems to do something strange: after the CNContactViewController is dismissed, the keyboard shortcuts still show in the discoverability HUD but stop working throughout the app, even if the presenting view controller manually calls becomeFirstResponder after the CNContactViewController was dismissed. This is from

CNContactViewController hiding navigation bar

百般思念 提交于 2019-12-05 01:13:15
问题 When I push a CNContactViewController on to the stack of UITableViewController subclass which is within a UINavigationController , the top navigation bar is almost entirely hidden. But with the brightness all the way up, you make out the back arrow followed by the word "Detail", and the system status bar. When I tap that corner of the screen, the CNContactViewController is indeed dismissed. Of course this is not good, since a user would probably not even see the text of the navigation bar and

CNContactViewController hiding navigation bar

蹲街弑〆低调 提交于 2019-12-03 16:46:31
When I push a CNContactViewController on to the stack of UITableViewController subclass which is within a UINavigationController , the top navigation bar is almost entirely hidden. But with the brightness all the way up, you make out the back arrow followed by the word "Detail", and the system status bar. When I tap that corner of the screen, the CNContactViewController is indeed dismissed. Of course this is not good, since a user would probably not even see the text of the navigation bar and now to press any buttons to dismiss. Is there any way to make the navigation bar tint of the

Keyboard overlaying action sheet in iOS 13.1 on CNContactViewController

不问归期 提交于 2019-12-01 08:16:40
This seems to be specific to iOS 13.1, as it works as expected on iOS 13.0 and earlier versions to add a contact in CNContactViewController, if I 'Cancel', the action sheet is overlapping by keyboard. No actions getting performed and keyboard is not dismissing. Kudos to @GxocT for the the great workaround! Helped my users immensely. But I wanted to share my code based on @GxocT solution hoping it will help others in this scenario. I needed my CNContactViewControllerDelegate contactViewController(_:didCompleteWith:) to be called on cancel (as well as done). Also my code was not in a

CNContactViewController navigation bar different between versions

廉价感情. 提交于 2019-12-01 05:13:56
问题 Our tint color is white. Our app uses CNContactViewController. In our version of the app in the store built with Xcode 7 targeting iOS 8 and 9, if you were iOS 9 we called CNContactViewController. The back button is white but has a gray navigation bar behind it. In our development build using Xcode 8 targeting iOS 9 and 10, there is no gray bar, so the back button is white on top of white and very hard to see the shadow. Has anyone else experienced changes between Xcode versions/SDK versions

Keyboard overlaying action sheet in iOS 13.1 on CNContactViewController

本秂侑毒 提交于 2019-11-28 00:35:20
问题 This seems to be specific to iOS 13.1, as it works as expected on iOS 13.0 and earlier versions to add a contact in CNContactViewController, if I 'Cancel', the action sheet is overlapping by keyboard. No actions getting performed and keyboard is not dismissing. 回答1: Kudos to @GxocT for the the great workaround! Helped my users immensely. But I wanted to share my code based on @GxocT solution hoping it will help others in this scenario. I needed my CNContactViewControllerDelegate