我試圖顯示通訊錄添加新聯繫人視圖在iOS的10 ,我使用呈現CNContactViewController的代碼ContactsUI框架如下:CNUI ERROR聯繫人視圖出現延遲超時
let contactViewController = CNContactViewController(forNewContact: contact)
contactViewController.contactStore = CNContactStore()
contactViewController.delegate = self
self.present(contactViewController, animated: false) {}
但每次我執行的應用程序被凍結的代碼,我得到三個+倍以下錯誤日誌: [CNUI錯誤]聯繫人視圖出現延遲超時
任何的解釋是值得歡迎的,
特殊代碼示例我有同樣的問題。你有沒有找到解決方案? –
這隻發生在真實設備上,對我來說在模擬器上工作正常。這對你來說是一樣的嗎? –