I want to use a UITextField
so that only part of it will be editable.
I know about the delegation and shouldChangeCharactersInRange
but for some reason, copying the ranged part is allowed.
My goal is to get similar result to this (the 'subject' text part) without being able to copy it.
Should i use a different UITextField
with textFieldDidBeginEditing
returning false all the time?
Is there a better solution?
In the screenshot, a UILabel placed next to the UITextField is used. I'd recommend doing this as it will give you more options when you decide to style the text.