subviews
ビューが含んでいるビューを返します
解説
ビューが含んでいるビューの配列を返します。なければnilを返します。
返り値
( NSArray * )
レシーバが含んでいるビュー
引数
フレームワーク
ApplicationKit
クラス
NSView
Instance Methods
使用可能
10.0
参照
- window
- subviews
- removeFromSuperview
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSArray *arr; [scrollview addSubview : sender ]; arr = [scrollview subviews ]; NSLog([arr description]); } @end