【发布时间】:2018-03-16 17:12:45
【问题描述】:
我正在使用此代码请求访问联系人 UI:
let store = CNContactStore()
store.requestAccess(for: .contacts) { (granted, error) in
if let error = error {
print(error)
}
if granted {
completionHandler(.granted)
} else {
completionHandler(.denied)
}
}
但我想在弹出的警报中显示一条自定义消息,详细说明我需要访问用户联系人的原因。我该怎么做?
【问题讨论】:
标签: ios contactsui