在花了一整天(> 12小时)尝试隔离13行令人难以置信的通用代码中的错误之后,我得出了一个可疑的结论:当前迭代{{1}中必定存在错误},在iOS 9.2中。
只需复制+粘贴此CNContactPickerViewController
,然后将ViewController
操作链接到按钮。
错误是invite
立即解散自己。
如果有人知道该怎么做,请分享吗?
MFMessageComposeViewController
答案 0 :(得分:0)
我通过解雇pickerVC并更改显示messageVC的控制器来实现它!
插入(在messageVC配置行之前):
picker.dismissViewControllerAnimated(true, completion: nil)
替换
picker.presentViewController(messageVC, animated: true, completion: nil)
与
presentViewController(messageVC, animated: true, completion: nil)