When using code
[[UIPasteboard generalPasteboard] setString:@"mung"];
NSLog(@"%@", [UIPasteboard generalPasteboard].string);
the console reports the new value of the line, but entering the -V command in another application shows the previous contents of the cardboard box (this may be nothing).
Is there a reliable way to save one line for use in another application?
Please inform. Thank.
source
share