将新的数据放入临时数组

NSMutableArray *tmp=[[NSMutableArray alloc] init];

[tmp addObject:[[NSString alloc] initWithCString:pigNames.c_str() encoding:NSUTF8StringEncoding]];

pickerData=tmp;

[picker reloadAllComponents];//重新加载数据

[tmp release];

相关文章:

  • 2021-07-06
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2021-04-02
  • 2022-01-07
  • 2021-05-01
  • 2022-01-07
  • 2022-01-07
  • 2021-09-28
相关资源
相似解决方案