User set time for notification in swift

后端 未结 2 695
长发绾君心
长发绾君心 2020-12-04 03:53
import UIKit
class MyView: UIViewController {
    @IBOutlet var mySwitch: UISwitch!
    @IBOutlet var myDatePicker: UIDatePicker!
    func datePicker() { myDatePicke         


        
2条回答
  •  旧时难觅i
    2020-12-04 04:52

    If you already have the UIDatePicker, all you need to do is grab the date property from it and use it to set the fireDate.

提交回复
热议问题