0
任何人都知道如何在自定义选取器的组件中创建连续值,例如UIPickerView
中的月轮?这里是我的源阵列数据:circular UIPickerView
self.one =[[NSMutableArray alloc]init];
for (int i=0; i<=101; i++) {
[one addObject:[NSNumber numberWithInt:i]];
}
//and here my titleforrow method
if (component==0) {
return [[one objectAtIndex:row] stringValue];
}
当用户滚动接近数据源的末尾时,一种可能的解决方案是将对象添加到数组中。 – n00bProgrammer 2015-04-01 11:14:49