遍历数组
来源:互联网 发布:淘宝买家恶意下单 编辑:程序博客网 时间:2024/05/16 05:11
NSMutableArray *mArray = [NSMutableArray arrayWithObjects:@"a",@"b",@"abc",nil];
NSMutableArray *mArrayCount = [NSMutableArray arrayWithCapacity:1];
[mArray enumerateObjectsWithOptions:NSEnumerationConcurrent usingBlock: ^(id obj,NSUInteger idx, BOOL *stop){
[mArrayCount addObject:[NSNumber numberWithInt:[obj length]]];
NSLog(@"%@,%d",obj,idx);
}];
NSMutableArray *mArrayCount = [NSMutableArray arrayWithCapacity:1];
[mArray enumerateObjectsWithOptions:NSEnumerationConcurrent usingBlock: ^(id obj,NSUInteger idx, BOOL *stop){
[mArrayCount addObject:[NSNumber numberWithInt:[obj length]]];
NSLog(@"%@,%d",obj,idx);
}];
- 遍历数组
- 遍历数组
- 数组遍历
- 遍历数组
- 遍历数组
- 遍历数组
- 遍历数组
- 数组遍历
- 遍历数组
- 遍历数组
- 遍历数组
- 遍历数组
- 遍历数组
- 遍历数组
- 遍历数组
- 遍历数组
- 数组遍历
- 数组遍历
- 史上最全的Android面试题
- CoreData 基本概念
- torque 机群上 openmp+mpi混搭程序的提交
- spring心得10--使用Aspectj进行AOP开发介绍及案例分析
- Easy-ui [$.data(_1a8, "panel") is undefined] 解决办法
- 遍历数组
- 不宜重逢
- ON_COMMAND和ON_MESSAGE的区别
- AfxBeginThread(RUNTIME_CLASS(CUIThread));//线程类的执行期类指针
- iPhone/iPad安装包的三种格式 deb、ipa 和 pxl的解释和说明
- 根据webconfig获取数据库名称
- HDU4001-To Miss Our Children Time(DAG动态规划)
- 各浏览器对页面外部资源加载的策略
- 第四章,从零开始学Android--Android中的Button按钮