PDA

View Full Version : How to implement copy/paste functionality?




Sergio10
Aug 20, 2009, 04:32 AM
Hi,

How to implement copy/paste functionality for edit box in OS 3.0 ?

Thank you



robbieduncan
Aug 20, 2009, 04:57 AM
Read the documentation. It's clearly signposted in the "Cut, Copy, and Paste" section of the What's New in the iPhone OS: iPhone OS 3.0 (http://developer.apple.com/iphone/library/releasenotes/General/WhatsNewIniPhoneOS/Articles/iPhoneOSv3.html#//apple_ref/doc/uid/TP40008245-SW1).

`lowell`
Aug 20, 2009, 04:59 AM
you get it for free.

open a project, hop over to ib and drop a UITextView into a view, make sure it's editable and keep the Lorem ipsum. go back to xcode and build/run. click in the box and select some text, the copy/paste bar will appear.