0
var category:UIMutableUserNotificationCategory=UIMutableUserNotificationCategory()
category.identifier="DEFAULT_GATEGORY"
let defaultAction:NSArray=[action]
category.setActions(defaultAction as [AnyObject] as [AnyObject], forContext: UIUserNotificationActionContext.Minimal)
是什麼類型'action'? –
@JefferyThomas UIMutableUserNotificationAction – nene
如果你解釋你的情況,你到底做了什麼,你做了什麼等,它會很好。它可以幫助其他用戶幫助你:D –