Pregunta

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?

¿Fue útil?

Solución

Very easy:

UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard];
textView.text = pasteBoard.string;
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top