我创建了一个scrollview
并将它添加到我的视图控制器类中。现在我有scrollview
中的项目。触摸我想要将图像移动到主视图。我正在尝试使用touchesBegin
和touchesMoved
,但它不起作用。我该怎么做?将图像从scrollView移动到视图
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"touch moved");
dummyDress.frame=CGRectMake(location.x, location.y , 80, 120);
}
hii ya我已经试过bt不工作我有一个imageview,我想拖放图像滚动视图 – amrut 2011-05-10 13:34:33
是的,我已经启用它bt图像没有移动超越scrollview我有一个图像视图,我在哪里从滚动视图拖动该图像plz帮助球员 – amrut 2011-05-10 15:02:42