How do you copy text to the clipboard in xcode? Currently, I am using the following code:
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
[pasteboard setString:shareString];
When I try to paste this into another one of the simulator apps, I end up pasting the entire view controller code. ??? Thanks in advance!
NSString
objectshareString
get it's value from? Also, I'd suggest trying[pasteboard setString:@"test"]
just for testing purposes.