Question

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?

Was it helpful?

Solution

Very easy:

UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard];
textView.text = pasteBoard.string;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top