2011-04-05 78 views

回答

0

如果我正確理解了你,你想在圖像視圖上有幾個敏感點?

嘗試添加

-(void) touchesBegan: (NSSet *) touches withEvent: (UIEvent *) event 
{ 
     NSLog(@"Touches: %@", touches); //examine this! 
} 

你的代碼。

它提供觸摸集中的UITouch實例,每個實例都有一個用於視圖的位置點。

結賬

UITouch locationInView:; 

暫存器。

0

UIWebView支持圖像映射。如果你想要一個純粹的Objective-C解決方案,我會推薦使用UIImageView並捕獲你想要映射圖像的地方。一旦有人接觸到視圖,就可以調用適當的操作。