【发布时间】:2015-06-23 13:44:38
【问题描述】:
CNContactStore 的executeSaveRequest(_:) 方法根据文档抛出错误。
我试图在 do/catch 中捕获此错误,但我无法弄清楚我需要捕获什么错误。
do{
try store.executeSaveRequest(saveRequest)
} catch *???* {
//alert the user
}
上面代码中的 ??? 应该用什么代替?
【问题讨论】:
标签: swift error-handling contacts swift2