I would like to present information to the user of my app in a non-editable way but allow editing after a button press (of the edit button). Is there any way of easily creating this transition from non-editable to editable?
I have considered using UILabel
s for the non-editable fields and programatically removing them and showing UITextField
s instead. However, this would seem to put a lot of the formatting into code which I would prefer not to do (to keep the advantages of IB).
I also considered having both UILabel
and UITextField
in the same place in my nib and trying to hide the one I don't want. This seems quite hacky though.
Maybe I would just be best off with two separate views?
Any comments on the above methods or better ways of doing it would be very much appreciated.