-count
配列の要素数を返します
- (NSUInteger)count
解説
配列の要素数を返します。
返り値
( NSUInteger )
以前は...
( unsigned int )
配列の要素数、整数値
引数
フレームワーク
Foundation
クラス
NSArray
Instance Methods
使用可能
10.0
iOS2.0
例文
#pragma mark count -(void)method019 { NSArray *anArray = [NSArray arrayWithObjects:@"aaa",@"bbb",@"ccc",nil]; NSLog(@"019 %d",[anArray count]); //=>019 3 }