I am trying to set a picker for times with 10 minutes intervals so : 8:00,8:10,8:20 , etc , with the minute interval property :
UIDatePicker *timePick = [[UIDatePicker alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height/1.5)];
timePick.datePickerMode =UIDatePickerModeTime;
[timePick addTarget:self action:@selector(dateIsChanged:) forControlEvents:UIControlEventValueChanged];
timePick.minuteInterval=10;
What happens is that the times are like this :
13:00
14:10
15:20
16:30
Now if trying to set the hours interval , cant find a property for this .
Whats wrong with it ?