I want UIPicker to start from 2 (0, 1 to be not displayed)
Code:
self.tmpArray = [NSMutableArray arrayWithCapacity:10];
for(int x = 2; x < 10; x++)
{
[self.tmpArray addObject:[NSNumber numberWithInt:x]];
}
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {
return [self.tmpArray count];
}
With the code above UIPicker shows 0,1,2,3 etc...