【发布时间】:2016-04-11 12:11:45
【问题描述】:
有什么办法可以在通知被触发的时候,加上本地通知的震动效果。
let AlarmNotification: UILocalNotification = UILocalNotification()
AlarmNotification.alertBody = title
AlarmNotification.alertAction = "Open App"
AlarmNotification.category = "AlarmCategory"
AlarmNotification.soundName = soundName + ".mp3"
AlarmNotification.timeZone = NSTimeZone.defaultTimeZone()
UIApplication.sharedApplication().scheduleLocalNotification(AlarmNotification)
【问题讨论】:
标签: ios swift uilocalnotification