标签: swift swift3
嘿,我有一个预订按钮,可以创建预订并将其上传到我的数据库。有没有办法创建一个计时器,在15分钟后按下按钮发送通知?
答案 0 :(得分:1)
使用UILocalNotification并安排notification.fireDate = whatever time; UIApplication.sharedApplication().scheduleLocalNotification(notification)
UILocalNotification
notification.fireDate = whatever time; UIApplication.sharedApplication().scheduleLocalNotification(notification)