質問

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;
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top