-(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..
非常奇怪,如果我點擊320x480以外的幀(從左上角開始),我沒有收到任何日誌語句。在其他地方觸摸開始我打電話給其他觸摸方式,這些都沒有響應,所以把這些NSLogs。iPad模擬器沒有在iPhone的320x480幀以外接收觸摸事件
我該怎麼做才能從完整的1024x768視圖接收觸摸事件?
謝謝。製作一個新項目爲我做了。乾杯! – quantumpotato 2010-08-03 20:51:28