我創建了一個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