Swift UITextField 具有只读属性 ,不能在里面编辑

text.userInteractionEnabled = false

转载于:https://www.cnblogs.com/sumx/p/6272510.html