Questions tagged [cncontactviewcontroller]
81 questions
3
votes
2 answers
How to show Back and Done button on CNContactViewController?
I create new CNContactViewController for add new contacts on phone directory but when I navigate to controller CNContactViewController navigation back button is hidden. Following my code.
CNContactStore *store = [[CNContactStore alloc] init];
…

Sharda Prasad
- 111
- 10
3
votes
1 answer
iOS 10, XCode 8 Black camera screen when using ABPersonViewController and CNContactViewController
Using xcode 8, devices using iOS 9 and 10
I've got same problems like this
Camera does not working with ABPersonViewController and CNContactViewController.
It pops up with black screen and non of contained controls are working except cancel…

a1ahn
- 58
- 7
3
votes
0 answers
How to change color for creating new contact
Our app has a dark navigation bar background tint color and white tint color. These are set by UIAppearance API. When we call this code to add a contact, its using that white color for the back button. How can we set this color for just this view…

Jason Hocker
- 6,879
- 9
- 46
- 79
3
votes
0 answers
Can CNContactPickerViewController be added as child view controller?
I want to add CNContactPickerViewController in a UITabBarController as a tab. I've achieved the same thing with ABPeoplePickerNavigationController but same approach didn't work for CNContactPickerViewController. Is there anything I've missed or is…

osrl
- 8,168
- 8
- 36
- 57
3
votes
0 answers
CNContactViewController shouldPerformDefaultActionForContactProperty = false not respected
Despite returning false from contactViewController:shouldPerformDefaultActionForContactProperty:, iOS 9 seems to override this setting and performs the default action.
For example, tapping on a contact's address property in a CNContactViewController…

Marco
- 6,692
- 2
- 27
- 38
2
votes
0 answers
CNContactView controller's cancel button disappears while typing and then reappears
I'm working with SwiftUI, I'm using a NavigationView, then a NavigationLink which takes to a UIViewControllerRepresentable of a CNContactViewController.
UIViewControllerRepresentable:
import SwiftUI
import ContactsUI
struct ContactView:…
2
votes
1 answer
Cancel button has no effect for CNContactViewController
This is not a dupe of this question or this question because those answers didn't work.
For some reason, the cancel button has no effect when presenting a CNContactViewController inside a UINavigationController.
Steps to reproduce:
Copy this view…

Crashalot
- 33,605
- 61
- 269
- 439
2
votes
2 answers
Pushing NContactViewController results in black navigationbar. Why?
I have been trying to solve this problem for a while, so here is my question :
I want to create an unknown contact with a given set of values as you may say:
fileprivate func showUnknownContactViewController() {
let aContact =…

Test tester
- 113
- 10
2
votes
1 answer
Presenting of CNContactViewController forUnknownContact breaks view controller hierarchy
This code collapses all of my UIViewController hierarchy
func openVCard(for cnContact: CNContact) {
let contactViewController = CNContactViewController(forUnknownContact: cnContact)
contactViewController.contactStore =…

Vyacheslav
- 26,359
- 19
- 112
- 194
2
votes
0 answers
Camera screen showing blank black
I have a UIButton in my app name as "Add New Contact". When I click on this button It opens native new contact screen. but when I click on "add photo" in this native new contact screen, It have two option "Take Photo" and "Choose Photo". By clicking…

Ved Rauniyar
- 1,539
- 14
- 21
2
votes
0 answers
"illegal subclass ABRemotePersonView instantiating; client should use only NSRemoteView" on attempt to instantiate CNContactViewController
I'm trying to show CNContactViewController for a selected contact in a table, which is shown in a modal window:
let controller = CNContactViewController.init()
controller.contact = contact.contact
guard let selectedCellView =…

Nick Entin
- 1,087
- 8
- 18
2
votes
1 answer
IOS Swift CNContactViewController Navigation Bar Not Showing UINavigation Controller
I have been working on this problem for a bit but can't get anything to work.
I have a view controller that effectively stands along in the main story board. Inside that view controller, when a specific action occurs that passes a contact type to…

shn
- 865
- 5
- 14
2
votes
0 answers
Contact is not updated after editing it with CNContactViewController
Recently the testers detected than when a contact is created within the App using CNContactViewController and an invalid phone number (for example, 12345) is inserted and the contact is saved.
When they try to edit the contact and update the phone…

user1224289
- 21
- 1
2
votes
2 answers
Unable to edit or dismiss CNContactViewController (iOS)
I'm presenting an instance of CNContactViewController in my app. I want the user to be able to both edit the contact, as well as to dismiss this view controller. Below is the code to present the view controller, which is embedded in a…

narner
- 2,908
- 3
- 26
- 63
2
votes
1 answer
Change navigation bar color of CNContactPickerViewController iOS
I've home view controller shown in image 1.
When user clicks on bar button another view controller is presented using presentViewController: method. This is CNContactPickerViewController which is completely native (shown in image 2).
How to…

Jayprakash Dubey
- 35,723
- 18
- 170
- 177