开发者社区 问答 正文

关于在代码中实现快速枚举

需要在代码实现快速enumeration,不知道应该怎么做?

int xx;
int b=0;

for (xx=0 ; xx<(distancearray.count); xx++) {
    if ([NSNull null]!=[distancearray objectAtIndex:xx]&& 0 !=[[[distancearray objectAtIndex:xx] description] intValue] ) {
        b++;
        latitudeLabel.text=[NSString stringWithFormat:@" %d",b*100];
    }

}

展开
收起
爵霸 2016-03-24 12:42:45 1891 分享 版权
0 条回答
写回答
取消 提交回答
问答地址: