【发布时间】:2018-01-13 10:26:13
【问题描述】:
UNUserNotificationCenter.current().getPendingNotificationRequests {
DispatchQueue.main.async{//Contextual closure type '() -> Void' expects 0 arguments, but 1 was used in closure body
let str:String = ""
self.finalresulter.text = str
self.finalresulter.text = "\($0.map{$0.content.title})"
}
}
【问题讨论】:
-
print() 在 Xcode 中有效,但在尝试放入文本字段时无效 *************print($0.map { $0.content.title },",",$0.map { $0.content.subtitle},",",$0.map { $0.content.body},",",$0.map { $0.trigger!})