ios - Disable editing of a text field -


i want start saying first project , trying hard find answers myself before posting here. thought had found code accomplish this. have no errors when run, field still editable. so, how can disable editing of field when rule have set true?

if sport.count == 1 {          entersport.text = sport[0] string //need convert string         entersport.editing; false //do not allow editing      } else {         //do nothing     } 

i have defined array if statement true. thank you assistance.

entersport.userinteractionenabled = false instead of editing.

editing read-only property indicate if field being edited or not.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -