Open andyrhee opened 10 years ago
Looks good!
Thanks for your feedback!
Indeed, I was looking for the "most recently edited" textfield, but got stuck. I know I should have asked in the discussion board, but I was getting a bit late for that...
Can you please give me a couple of pointers on how to track which textfield was the most recently edited, and how to use the UITextField delegate methods?
The input validation is a good idea which I have thought about adding it, but was running against time.
Yes, the missing negative key was the reason why I abandoned the decimal keyboard because you can not use the PC keyboard to input negative number with real devices. Or, is there any easy way out?
P.S. I think you mentioned something about grades/scores for homework. Are we ever going to see any of them before the end? Or, is this some sort of opt-in policy?
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
See this discussion about negative numbers: https://canvas.instructure.com/courses/832436/discussion_topics/1929300
I don't score the homework. If I leave feedback, it means that the submission is acceptable, unless I explicitly mention otherwise. Generally, as long as the user stories are technically satisfied, I'll accept the homework, although I'll leave tips for what I think a good implementation would have.
Ready for your review.
Thanks, Andy
/cc @nesquena @timothy1ee