December 2013
Intermediate to advanced
464 pages
14h 46m
English
The UIResponder class is responsible for all the events that happen in the user interface of iOS apps. It is the superclass of UIApplication and UIView, and thus, all of their subclasses, including UITextField. One of the methods in UIResponder is canPerformAction:withSender:, which is implemented in the subclasses of UIResponder to allow them to specify whether they can perform a particular action. In UITextField, the action that is relevant to be carried out is to begin editing the text field. Normally, canPerformAction:withSender: will return YES for UITextField. However, if the txtPhone field would return NO when it is in view mode, it could be kept enabled but still not allow editing. By creating a ...
Read now
Unlock full access