Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selectable UILabel contents

Tags:

ios

uilabel

I have a list of URL addresses in a iOS Label object. It does not appear that the user can select and copy an item from the list and paste it into their Safari browser on the iOS device. Is there a way to accomplish this?

like image 329
zerowords Avatar asked Mar 03 '13 18:03

zerowords


1 Answers

This feature is not there in UILabel.

You need to use UITextField or UITextView . Also do not forget to change its appearance and using

[... setEditable:NO];
like image 171
Anoop Vaidya Avatar answered Sep 26 '22 14:09

Anoop Vaidya