开发者

dragging images placed in a UItableViewCell to another uitableviewcell in iphone

开发者 https://www.devze.com 2023-01-21 08:51 出处:网络
I am new to iphone app development. I have开发者_如何学Python placed images in UITableView as an image gallery,in rows and columns.

I am new to iphone app development.

I have开发者_如何学Python placed images in UITableView as an image gallery,in rows and columns.

Now, I want to drag images with in the tableview,by which position of images can be changed. I have searched for it, but I didnt find any proper solution. It will be like

UIView

--TableView

---TableViewCell

----custom UIView

-----ImageViews

A row in a table view contain more than one image.

Also if we clicked on an image, should open another view showing full image.

Please can anyone help me..,thanks in advance.


Subclass the ur TableViewCell with ur gesture recognizer for Dragging then add it to the tableview as cell for each ,then

1.if u have only images in cell

interchange the tableviewcells

2.if u have images and some labeltext

set the cell.image property to the first dragging cell.

that's it

0

精彩评论

暂无评论...
验证码 换一张
取 消