How To Use UILocalNotification In Swift

前端 未结 6 1924
温柔的废话
温柔的废话 2021-02-06 01:59

I am trying to figure out how to setup a UILocalNotification in swift but I am not having a lot of luck. I am trying this:

var notification = UILocalNotification         


        
6条回答
  •  梦毁少年i
    2021-02-06 02:22

    There's also support for creating the date like so:

    NSDate(timeIntervalSinceNow: 15)
    

提交回复
热议问题