iosDev
iosDev

Reputation: 604

drag text between textfield like mail app of ios 5

I want implement drag text between textfield like mail app of ios5.

here is video link and image what i want to implement. video link. (just observe on 2:49 min). http://www.youtube.com/watch?v=-JURDFe2PNE&feature=b-vrec

image:

enter image description here

Upvotes: 1

Views: 657

Answers (1)

user577537
user577537

Reputation:

Split this into three tasks:

  1. Containing the data you want into an appropriate UIView-based class/subclass
  2. Handling the relevant touch events to initiate and end the drag and drop
  3. Animating the move between your source and destination

You can implement these one at a time in order to develop precisely the drag and drop functionality you need.

You shouldn't need to convert your view to an image, as UIView subclasses can be animated by Core Animation. This SO post has more info on handling touch events.

Good luck!

Upvotes: 3

Related Questions