CNContactPickerController中存在一个错误

时间:2016-01-12 23:27:59

标签: ios swift cncontact cncontactviewcontroller

在花了一整天(> 12小时)尝试隔离13行令人难以置信的通用代码中的错误之后,我得出了一个可疑的结论:当前迭代{{1}中必定存在错误},在iOS 9.2中。

只需复制+粘贴此CNContactPickerViewController,然后将ViewController操作链接到按钮。

错误是invite立即解散自己。

如果有人知道该怎么做,请分享吗?

MFMessageComposeViewController

1 个答案:

答案 0 :(得分:0)

我通过解雇pickerVC并更改显示messageVC的控制器来实现它!

插入(在messageVC配置行之前):

 picker.dismissViewControllerAnimated(true, completion: nil)

替换

picker.presentViewController(messageVC, animated: true, completion: nil)

  presentViewController(messageVC, animated: true, completion: nil)