2013-06-24 23 views
0

我的應用程序只需要UIImage上的觸摸事件而不是UIImageVIew,如何丟棄UIImageView的水龍頭,並且只有在UIImage部件上識別到輕擊手勢時才接受。如何檢測UIImage上的tapgesture?

感謝,在提前

+0

[Detect只能觸及UIImageView的非透明像素,有效](http://stackoverflow.com/questions/13291919/detect-touches-only-on-non-transparent-pixels-of-uiimageview -有效率的) –

回答

0

您不能tapgesture添加到UIImage的。它只能被添加到UIImageview。