我正在使用 CNContactPickerViewController,我想隐藏我尝试过的取消和组 contactPickerViewController.navigationItem.leftBarButtonItem = nil
按钮
contactPickerViewController.navigationItem.hidesBackButton = true
但这不起作用..这是我创建控制器的代码
let contactPickerViewController = CNContactPickerViewController()
contactPickerViewController.predicateForEnablingContact = NSPredicate(format: "phoneNumbers.@count > 0",
argumentArray: nil)
contactPickerViewController.delegate = self
contactPickerViewController.navigationItem.leftBarButtonItem = nil
contactPickerViewController.navigationItem.hidesBackButton = true
presentViewController(contactPickerViewController, animated: true, completion: nil)
帮助任何人?谢谢