iphone - How to implement Fast enumeration on this code -
i want implement fast enumeration
on code, please help me.
int xx; int b=0; (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]; } }
try :
for( id object in distancearray){ if ([nsnull null]!=object && 0 !=[[object description] intvalue] ) { b++; latitudelabel.text=[nsstring stringwithformat:@" %d",b*100]; } }
iphone ios xcode
No comments:
Post a Comment