Hello All,
I am facing one weird issue with UIPickerview in IPad. I am not able to select the last row by making use of
[iPickerView selectRow:11 inComponent:0 animated:NO];
This is picker data source
iPickerArray = [[NSArray alloc] initWithObjects:
@"1:00",
@"2:00",
@"3:00",
@"4:00",
@"5:00",
@"6:00",
@"7:00",
@"8:00",
@"9:00",
@"10:00",
@"11:00",
@"12:00",
nil];
AND
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
{
if (component == 0)
return [iPickerArray count];
}
Whenever I issue this request
[iPickerView selectRow:11 inComponent:0 animated:NO];
It always select 11.00 :( and for other it works proper
Please help me,if I am doing something wrong over here !!!!!