【发布时间】:2012-02-28 10:20:28
【问题描述】:
我有一个带有 UIImageView 的数组。假设当前数组中有 5 个 UIImageView。我如何知道我当前触摸的是哪个 UIImageView?
谢谢。
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
if ([touch view] == ??)
{
}
}
【问题讨论】:
标签: objective-c ios uiimageview touchesbegan