Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - UILabel change appearance of a disabled label

Tags:

ios

uilabel

ipad

Further to my question yesterday, I am using a view with UILabels, output to an external monitor.

The labels can have text set on them, unless they are disabled. But (obviously) a disabled label has it's text greyed out. Is there anyway to override this behaviour?

The only other thing I can think of doing is to subclass UILabel and have a variable setting it as editable, but would that affect serialization?

Thanks!

like image 277
Christopher Gwilliams Avatar asked Dec 13 '11 18:12

Christopher Gwilliams


1 Answers

If you want to prevent user interaction with the label, there is a property named userInteractionEnabled that you can set.

like image 177
user523234 Avatar answered Oct 29 '22 19:10

user523234