fbritop Well-Known Member Licensed User Longtime User Jan 23, 2019 #1 I have used in B4A the contentResolver for picking up a single contact from the user address book, which it makes very simple as I just need 1 contact. Is there a way to use the iOS native CNContactPickerViewController from B4I in order to pick a single contact? Ref from iOS https://developer.apple.com/documentation/contactsui/cncontactpickerviewcontroller Thanks FBP
I have used in B4A the contentResolver for picking up a single contact from the user address book, which it makes very simple as I just need 1 contact. Is there a way to use the iOS native CNContactPickerViewController from B4I in order to pick a single contact? Ref from iOS https://developer.apple.com/documentation/contactsui/cncontactpickerviewcontroller Thanks FBP
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2019 #2 I will add it to iUI9. Hopefully next week. Upvote 0
fbritop Well-Known Member Licensed User Longtime User Jan 24, 2019 #3 Erel said: I will add it to iUI9. Hopefully next week. Click to expand... Great thanks. Looking forward for it! Cheers FBP Upvote 0
Erel said: I will add it to iUI9. Hopefully next week. Click to expand... Great thanks. Looking forward for it! Cheers FBP
Erel B4X founder Staff member Licensed User Longtime User Jan 27, 2019 #4 Added in iUI9 v1.10: https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.48179/#post-640007 Example is attached. It uses ContactUtils to extract data from the returned contact. Note that you don't need any permission to access the contacts with the picker. Attachments ContactPickerExample.zip ContactPickerExample.zip 63.3 KB · Views: 587 Upvote 0
Added in iUI9 v1.10: https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.48179/#post-640007 Example is attached. It uses ContactUtils to extract data from the returned contact. Note that you don't need any permission to access the contacts with the picker.
fbritop Well-Known Member Licensed User Longtime User Apr 24, 2019 #5 Is it possible to select more than 1 contact? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 25, 2019 #6 Yes. See the attached example. You will see this warning in the logs: [CNUI WARN] Both single contact and multiple contacts delegate methods are implemented, the single variants will be ignored Ignore it. Attachments MultipleContactsExample.zip MultipleContactsExample.zip 63.4 KB · Views: 566 Upvote 0
Yes. See the attached example. You will see this warning in the logs: [CNUI WARN] Both single contact and multiple contacts delegate methods are implemented, the single variants will be ignored Ignore it.