0
我想UIPicker開始從(將不顯示0,1)2UIPickerView值
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];
}
通過上面UIPicker的代碼顯示0,1,2,3等等