获取NSArray索引号
self.listData = [NSArray arrayWithObjects:@"A",@"B",@"C", nil];
如何获取 listData 项的索引号?
下面的代码用于获取 listData 项目字符串:
c = [NSString stringWithFormat:@"%@",[listData objectAtIndex:indexPath.row];
知道吗? 谢谢
self.listData = [NSArray arrayWithObjects:@"A",@"B",@"C", nil];
How can I get index numbers for listData items?
This code below is used to get listData items string:
c = [NSString stringWithFormat:@"%@",[listData objectAtIndex:indexPath.row];
Any idea?
Thanks
类似...
来自 文档:
Something like...
From the docs: