I would like to provide information to the user of my application in an uneditable way, but allow editing after clicking the button (edit button). Is there a way to easily create this transition from uneditable to editable?
I reviewed the use of UILabel for non-editable fields and programmatically deleting them and showing UITextField . However, it seems that this would attach great importance to formatting the code, which I would prefer not to do (to preserve the benefits of IB).
I also considered having both UILabel and UITextField in the same place at my tip and trying to hide the one I don't want. It seems pretty hacky though.
Maybe I just feel better with two separate views?
Any comments on the above methods or the best ways to execute them would be greatly appreciated.
iphone uilabel uitextfield
mmdeas
source share