pretty trivial question, I know. But I can not find anything online.
I need to disable the user from being able to edit the text inside of a text field. So that when the
In storyboard you have two choise:


The diffierence between these choise is:
the appearance of UITextfild to display in the screen.

Within code:
textfield.enable = falsetextfield.userInteractionEnabled = NO
Updated for Swift 3
textField.isEnabled = falsetextfield.isUserInteractionEnabled = false