我们的应用程序具有深色导航栏背景色调和白色色调。这些由 UIAppearance API 设置。当我们调用此代码添加联系人时,它使用白色作为后退按钮。我们如何为操作系统处理的这个视图设置这个颜色?它使用默认的色调颜色,但我们希望在允许的范围内尽可能多地覆盖它,因为白底白字是不可见的。
let ucvc = CNContactViewController(forUnknownContact: contact)
ucvc.delegate = self
ucvc.allowsEditing = true
ucvc.allowsActions = true
ucvc.alternateName = name()
ucvc.contactStore = CNContactStore()
self.navigationController?.pushViewController(ucvc, animated: true)