ios - Split TextField Data to HH : mm in Swift -
in application take user input alert time hour , minute. input user from
@iboutlet weak var morninghour: uitextfield! @iboutlet weak var eveninghour: uitextfield!
and implement hour : minute location
var datecomponentsformorning = datecomponents() datecomponentsformorning.hour = 08 datecomponentsformorning.minute = 00 let triggerformorning = uncalendarnotificationtrigger(datematching: datecomponentsformorning, repeats: true)
my question is: how can split input hh:mm , implement code in swift ?
Comments
Post a Comment