草庐IT

AlarmNotification

全部标签

ios - 带有振动的 UILocalNotification

有什么方法可以在触发通知的同时添加本地通知的振动效果。letAlarmNotification:UILocalNotification=UILocalNotification()AlarmNotification.alertBody=titleAlarmNotification.alertAction="OpenApp"AlarmNotification.category="AlarmCategory"AlarmNotification.soundName=soundName+".mp3"AlarmNotification.timeZone=NSTimeZone.defaultTime