how to drag an uiimage from scrollview to another uiimageview in iphone sdk

后端 未结 3 1088
时光取名叫无心
时光取名叫无心 2020-12-19 18:28

In My Application,i am having one scrollVIew containing multiple images.

and out of the scrollview i have one uiimageview.

i want to Drag any image from Scro

3条回答
  •  自闭症患者
    2020-12-19 19:17

    gamozzii's reply is close to what you need to do, but there's one problem. An UIScrollView will eat touches, so tapping on an image will have no effect. As a result you will have to subclass the UIScrollView

    I have written a small functional app to illustrate dragging the image from a scroll view into an image view. You can download the project here.

提交回复
热议问题