#import <UIKit/UIKit.h> //TouchExの定義 @interface TouchEx : UIView { NSMutableArray* _touches; } @end #include "TouchEx.h" //TouchExの実装 @implementation TouchEx //初期化 - (id)initWithFrame:(CGRect)frame { if (self=[super initWithFrame:frame]) { self.backgroundColor=[UIColor whiteColor]; //タッチオブジェクト群 _touches=[[NSMutableArray array] retain]; //マルチタッチの有効化 self.multipleTouchEnabled=YES; } return self; } /