Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用数组中的值初始化了 dataPicker。在运行时,dataPicker 首先显示数组 ( ) 的第一个值的值,例如array[0],我希望第一个值是 的值。array[4]我该怎么做????
array[0]
array[4]
加载后选择您想要的行...
int theRowIWant = 4; [picker selectRow:theRowIWant inComponent:0 animated:YES];
苹果文档