Apple is really funny. I mean, they say that this works:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch* touch = [touches any
Yes it should 100% work in common case. I've just tried with test project and everything seems to be ok.
I've created View-Based Application. Using Interface Builder put new UIView up to the present View. Then create new file with subclass of UIView and select just created class for my new view. (Interface Builder->Class identity->Class->MyViewClass)
Add touches handler functions both for MyViewClass and UIViewController.
//MyViewClass
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"myview touches");
[self.nextResponder touchesBegan:touches withEvent:event];
}
//ViewController
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"controller touches");
}
I see both NSLogs when press MyViewClass. Did you use Interface Builder and XIB file when loading your ViewController or set view programatically with loadView function?