hching / TemperatureConverter

0 stars 0 forks source link

Henry Ching HW#2a TemperatureConverter #1

Open hching opened 10 years ago

hching commented 10 years ago

/cc @nesquena @timothy1ee

When I run the app the click on "Convert" it doesn't quite recognize the textboxes to be empty. If I were to click on the textbox and not put anything in it then click "Convert" it sees it properly. What might be the best way to check to empty textbox?

timothy1ee commented 10 years ago

When an UITextField is being edited, the isEditing property is YES. Or, when the user begins editing in a textfield, you can store the active textfield in a property like activeTextField.

Many UI elements like UITextField, UITableView, UIAlertView have events associated with them. For example, a user has begun editing, finished editing, changed text, etc.

See this video for an example of how to set and use the UITextField delegate: http://www.youtube.com/watch?v=c5SRKfGiHSg