2011-04-05 81 views

回答

0

如果我正确理解了你,你想在图像视图上有几个敏感点?

尝试添加

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

你的代码。

它提供触摸集中的UITouch实例,每个实例都有一个用于视图的位置点。

结账

UITouch locationInView:; 

暂存器。

0

UIWebView支持图像映射。如果你想要一个纯粹的Objective-C解决方案,我会推荐使用UIImageView并捕获你想要映射图像的地方。一旦有人接触到视图,就可以调用适当的操作。