Very easy:
UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard];
textView.text = pasteBoard.string;
質問
I'm to make a button that pastes the "paste" content into a UITextView, when the user clicks a UIButton.
How could I do that? And, can I send the value to a NSString before? Then verify if it's a valid link?
解決
Very easy:
UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard];
textView.text = pasteBoard.string;