iPhone: How to create dynamic image dragging ala iphone icon rearranging
Posted
by Jim Coffman
on Stack Overflow
See other posts from Stack Overflow
or by Jim Coffman
Published on 2009-03-02T21:02:42Z
Indexed on
2010/05/19
13:20 UTC
Read the original article
Hit count: 303
On the iPhone, if you touch and hold your finger on an icon, it starts vibrating, then you can drag them around while the other icons move aside and rearrange dynamically. I'm trying to figure out how to do this inside an application with a grid of images or buttons. I don't need them to vibrate, but I do want the UI to allow the user to drag them with real-time dynamic reordering and then return the new position (ie, an int for accessing a mutable array). Any ideas how to do this? Any sample code out there? Thanks!
© Stack Overflow or respective owner