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

来源:互联网 发布:叁度软件破解版 编辑:程序博客网 时间:2024/05/24 01:46

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{

    NSInteger i=0;

   for (UITouch *touchin touches) {

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

        

        

       CGPoint location=[touch locationInView:self.view];

        [imageviewsetCenter:location];

        [self.viewaddSubview:imageview];

        i++;

    }



}


0 0
原创粉丝点击