objectEnumerator
列挙子で返します
解説
列挙子で返します。
返り値
( NSEnumerator * )
列挙子オブジェクト
引数
フレームワーク
Foundation
クラス
NSCountedSet
Instance Methods
使用可能
10.0
参照
- nextObject (NSEnumerator)
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { id obj; NSCountedSet *set = [NSCountedSet setWithObjects:@"aaa",@"ccc",@"bbb",nil]; NSEnumerator *enu = [set objectEnumerator]; while ((obj = [enu nextObject])) { NSLog([obj description]); } } @end