iOS UIDatePicker Setting minute interval

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

You can change property minuteInterval to set the interval displayed by the minutes wheel. The default value is 1, the maximum value is 30.

let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0, width: 320, height: 200)  
datePicker.minuteInterval = 15


Got any iOS Question?