views:

160

answers:

2
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{

UITouch *touch = [touches anyObject];
gestureStartPoint = [touch locationInView:self.view];
    NSLog(@"test x:%f",gestureStartPoint.x);
    NSLog(@"test y:%f",gestureStartPoint.y);
    etc..

Srangely, I'm not receiving any log statements if I click outside a 320x480 frame (starting from upper-left corner). Elsewhere in touchesBegan I call other methods passing in the touch and these weren't responding, so put these NSLogs in.

What do I have to do to receive touch events from the full 1024x768 view?

+1  A: 

Is your UIView actually the full size of the window?

Wevah
This is probably the answer to the problem, views get the touches Began only in their frame, not in all the superview.
DFectuoso
quantumpotato
+1  A: 

I think there's a bug in the "Upgrade Current Target for iPad" task.

I fixed this issue by creating a new "Window XIB" with iPad as the product, then replacing the Window object in MainWindow-iPad.xib with the Window object in the new XIB. (Be sure to update the "window" outlet of your app delegate.)

brainfsck
Thanks. Making a new project did it for me. Cheers!
quantumpotato