window
タッチが起きたウインドウを返します。
@property(nonatomic, readonly, retain) UIWindow *window
解説
フレームワーク
UIKit
クラス
UITouch
Property
使用可能
iPhone2.0
参照
例文
- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event { UITouch* touch = [touches anyObject]; NSLog(@"%@",[[touch window] description]); [self touchesMoved:touches withEvent:event]; }