您的位置:首页 > 移动开发 > IOS开发

iOS笔记--多点触碰的时候如何获取其中的某一次点击事件

2014-10-05 22:14 387 查看
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{

NSInteger i=0;

for (UITouch *touch
in touches) {

UIImageView *imageview=[[UIImageView
alloc]initWithImage:self.images[i]];

CGPoint location=[touch
locationInView:self.view];
[imageview
setCenter:location];
[self.view
addSubview:imageview];
i++;
}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐