How to set UITextField to ReadOnly

textField.userInteractionEnabled = NO;
the property is introduced at the UIView class, sometimes it's a good idea to check the superclasses of a given class
原文地址:https://www.cnblogs.com/wildboar/p/1876620.html