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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -