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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -