Hi, does anyone know if a textview constraint can be changed while the textview is in an "isEditable = false" state? I'm aiming to use the textview as if it were a label. I can alter the layout constraints when it is editable, but not when editing is switched off.
UITextView Constraint Outlet & IsEditable
Which constraint do you want to change ? The ones defined in IB for top, left… ?
If so, you can
- define initial constraints in IB
- create an IBOutlet in code
- change the constant value of each constraint as needed
Thanks, Claude. I've been playing around a bit and discovered my problem. I had a confliction in my code which was stopping the constraints from updating, but it's all sorted. I only discovered yesterday that I could create outlets from constraints. It's very useful.