0
我在图像视图上显示3个图像。如何与另一个imageview交换一个imageview
我正在使用休耕代码获取图像位置。
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
// get touch event
UITouch *touch = [[event allTouches] anyObject];
CGPoint touchLocation = [touch locationInView:self.view];
NSLog(@"%f %f",touchLocation.x,touchLocation.y);
这里在控制台我得到了图像的位置。
现在我需要的是当过ImageView的拖过imageview2我需要在图像视图和ImageView的地点在imageview2的地方交换imageview2。
任何人都可以帮助我。
谢谢你提前。