I am developing an app for iOS > 4.3.
I am looking for best practices regarding coping and pasting text between views or applications.
You could use UIPasteboard,
while setting:
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
[pasteboard setString:yourtext];
while getting (if you have a label):
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pastelabel.text = [pasteboard string];
and you can refer Pasteboard Programming Guide for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With