Questions tagged [cncontactviewcontroller]

81 questions
0
votes
1 answer

select multiple properties from single contact in CNContactPicker

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() { …
0
votes
1 answer

CNContactPickerViewController remove searchbar (Objective c)

//import contacts by using contact picker CNContactPickerViewController *contactPicker = [CNContactPickerViewController new]; contactPicker.delegate = self; NSPredicate *filterPredicate = [NSPredicate…
Madhu
  • 439
  • 2
  • 14
0
votes
3 answers

NSPredicate not replacing %@ parameter - Swift 4

I'm trying to use a predicate: let predicate = NSPredicate(format: "organizationName == '%@'", orgName) It's not returning any results, so I logged the predicate.predicateFormat to ensure the predicate had the correct value in it. It…
leanne
  • 7,940
  • 48
  • 77
0
votes
1 answer

Callback on CNContactViewController

How to get a callBack when user successfully saves or dismiss the CNContactViewController func addContact(contactDetails: ContactDetails) { let store = CNContactStore() let contact = CNMutableContact() let comp =…
Nitesh
  • 1,564
  • 2
  • 26
  • 53
0
votes
1 answer

Swift 3: CNcontactpicker's phonenumber return 'not fetched' in device

our apps have a feature to get device contact, i have just used CNcontacpickerview it works when i run it on emulator, but when it run on device, the phonenumber return 'not fetched'. is it because my permission or what? the weird is it works on…
Benny Wijaya
  • 207
  • 3
  • 16
0
votes
1 answer

setup navigation controller View Controller as a CNContactViewController black screen

I have a collection view with some cells representing a contact (their data has a phone number and name) and I am trying to add the contact to the iPhone contacts. I have created a segue from a button called "add contact" that is inside the…
Eyzuky
  • 1,843
  • 2
  • 22
  • 45
0
votes
0 answers

self.presentViewController is not transitioning smoothly and is delayed

I'm having some trouble with my project. Everything works fine regarding features and functions, but i've noticed a delayed reaction and rough transition whenever I call self.presentViewController() on MFMessageComposeVC and CNContactsVC. When…
0
votes
0 answers

CNContactViewController does not span the full width

I use a CNContactViewController in a NSTabViewController as well as a NSPopover. In both cases the ViewController has a size that is too small (See red color in Screenshot). The other tabs use all available space, like one would expect. I tried to…
Besi
  • 22,579
  • 24
  • 131
  • 223
0
votes
2 answers

CNContactViewController setEditing true before appear

I have a task to show the contact editing screen at once during his appearance (such as WhatsApp), I show him the following way. @objc private func presentContactEditController() { guard var contact = contactModel.contact else { return } …
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
0
votes
1 answer

CNContactPickerViewController UI change for multi selection of contacts

For multiple contact selection in CNContactPickerViewController,i am using delegate method didSelectContacts, After implementing this delegate method user have a option to select multi contacts. By default it is showing radio button selection, but i…
0
votes
1 answer

iOS9 - CNContactPickerViewController : SelectionOfProperty is not working, if user have multiple phone numbers

SelectionOfProperty is not working if user has multiple phone numbers. I am using below code: let picker = CNContactPickerViewController() picker.displayedPropertyKeys = [CNContactPhoneNumbersKey] picker.predicateForEnablingContact =…
aaK
  • 103
  • 9
0
votes
1 answer

Multiselection in CNContactPickerViewController

I am creating a food app which requires recommendation. I am adding a feature which allows me to recommend particular food to my friends in my contact list. However, upon using CNContactViewController, I am not getting the required UI for…
Isha Balla
  • 733
  • 2
  • 9
  • 25
0
votes
0 answers

How to fetch Birthday Label from CNContactPickerViewController in objective-c?

I know in swift how to pick Birthday Label from CNContactPickerViewController, but i am little bit confuse in Objective-c Here i use code like:In Objective-c How can i pick Birthday label in "didSelectContactProperty" method. Can you please help me…
Mannam Brahmam
  • 2,225
  • 2
  • 24
  • 36
0
votes
1 answer

viewControllerForNewContact shows all keys

I would like to show only a limited number of keys whilst creating a new CNContact (leveraging the viewControllerForNewContact method). However, despite the various values for the keys to fetch that I have tried, I still keep getting the entire…
vikram17000
  • 453
  • 5
  • 18