I have a label which displays the current time in 12-hour format.
But, it does not update/refresh the time every time the minute/hour changes.
I need it to automatically change the label to the current time when the time changes.
I have a label which displays the current time in 12-hour format.
But, it does not update/refresh the time every time the minute/hour changes.
I need it to automatically change the label to the current time when the time changes.
Replace following code with your ViewController code then Connect iboutlet to showTimeLbl
}
Swift 3 Solution