This code should copy the line into generalPasteboard as an object [[UIPasteboard generalPasteboard]], but this method forces the program to exit.
- (void)copyResultToPasteboard { NSString *message = self.resultTextView.text; [UIPasteboard generalPasteboard].string = message; [message release]; }
I think this has something to do with the format, seeing that the method works if the message is set to a literal string, but resultTextView.text is just NSString ... I donβt quite understand if anyone can help?
objective-c iphone nsstring uipasteboard
Boz
source share