Questions tagged [cncontactviewcontroller]

81 questions
2
votes
1 answer

Is it Possible to add a custom Navigation Bar for CNContactViewController?

I want to create a custom UINavigationBar for CNContactViewController in order to select single or multiple contact. The default UINavigationBar consists of Cancel,Done and Group button which makes it look quite messy. Is there a workaround to…
Isha Balla
  • 733
  • 2
  • 9
  • 25
2
votes
0 answers

CNContactViewController and SFSafariViewController on iOS cannot be used within a UITabBarController

I have been trying to use CNContactViewController without success. I want to show a list of contacts (which I expected there to be a built-in VC for), then tap into the detail of that contact and have it displayed as in the Contacts or Phone…
Drarok
  • 3,612
  • 2
  • 31
  • 48
2
votes
1 answer

CNContactViewController doesn't provide Done button

I am using the CNContactViewController to enter information for a new client. But however I present the CNContactViewController I only get a "Cancel" button in the top bar... There is no Done button, or any other way to dismiss the controller. …
MrMikeT
  • 53
  • 5
1
vote
2 answers

iOS14 CNContactViewController not showing delete button issue

When I press Edit from contact card, my CNContactViewController is not showing the delete option in the bottom of the screen. NB: the button remains shown for iOS 13.
1
vote
1 answer

CNContactViewController iOS 13 Discard Message and Keyboard

on iOS 13 it seems I cannot use CNContactViewController. This is the code I'm using: func showCNContactViewController(inVC vc: UIViewController, cncontact: CNContact, contact: Contact? = nil) { self.contact = contact self.mode =…
Diogo Antunes
  • 2,241
  • 1
  • 22
  • 37
1
vote
1 answer

CNContactViewController - change color of cancel and done button

When i open CNContactViewController, It opens view without cancel and done button. This issue only occurs in iOS13 and later. How can i change the bar button colors? I tried this link, but it is not working Change color of cancel and done…
Prakash
  • 812
  • 6
  • 16
1
vote
1 answer

How to asynchronous update image in custom CNContactViewController

My app has a local database of contacts not stored in the internal contact store (users can however choose to add the contacts to the internal contact store) I'm using the CNContactViewController to show the details of the contacts - but the image…
Kim Rasmussen
  • 453
  • 1
  • 8
  • 21
1
vote
1 answer

CNContactViewController navigation bar colour not working properly

CNContactViewController navigation bar colour not appearing when i click Create New Contact option. See my screens for 1st time it's ok, but when i click Create New Contact i'm not getting navigation bar colour and not visible back button. 1st…
Naresh
  • 16,698
  • 6
  • 112
  • 113
1
vote
1 answer

CNContactPickerViewController Retrieve ONLY Selected Item

When the delegate method is implemented: func contactPicker(_ picker: CNContactPickerViewController, didSelect contactProperty: CNContactProperty) The user is able to select a contact from the list, then the contact details automatically appear.…
Jake Chasan
  • 6,290
  • 9
  • 44
  • 90
1
vote
1 answer

iOS Contacts - save a single contact without permissions (or permissions UI)

CNAuthorizationStatus and the related documentation seems to suggest that you need permission to read or save to the CNContactStore. (And I've read most of the CNContact-based questions, and they are pretty consistent on that topic). But I found an…
benc
  • 1,381
  • 5
  • 31
  • 39
1
vote
0 answers

How to select contact from section "Siri found in apps"?

I'm using CNContactPickerViewController with properties for phone number selection: picker.displayedPropertyKeys = [CNContactPhoneNumbersKey] picker.predicateForEnablingContact = NSPredicate(format: "phoneNumbers.@count >…
Jurasic
  • 1,845
  • 1
  • 23
  • 29
1
vote
1 answer

How to show picture inside CNContactViewController(forUnknownContact:)

How would I get an image inside CNContactViewController(forUnknownContact:) I tried something like this: fileprivate func showUnknownContactViewController() { let aContact = CNMutableContact() let newEmail = CNLabeledValue(label:…
Test tester
  • 113
  • 10
1
vote
0 answers

CNContactPickerViewController Navigation bar position error

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…
clansim
  • 21
  • 4
1
vote
0 answers

Unexpected icon shows before CNContactViewController pops

I am trying to create a CNContactView forNewContact using Swift. After I click the button, a CNContactViewController should pop up, but some weird logos appears before the view pops. How to fix this? I am using Swift 4.1, but I have the same issue…
XIAODI
  • 109
  • 5
1
vote
0 answers

"Take Photo" is not showing in CNContact iOS 11

I have a UIButton name as "Add new contact", When I click on this, a new contact screen is opened but when I tap on "Add Photo" then only "Choose Photo" is coming and "Take Photo" is not coming in iOS 11. The code for new contact is - let con =…
Ved Rauniyar
  • 1,539
  • 14
  • 21