Date Picker set time interval swift

 Problem:

I want to display my datepicker with 5 minutes time interval.How can i achieve that?


Solution:

It was easy to set the time interval in datepicker as like below.

        self.datePicker.minuteInterval = 5


Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift