IOS monitors changes in textField values in real time
Considering the proxy method:
TextFieldDidEndEditing cannot listen for real-time changes in textFiled. To implement real-time monitoring, we recommend that you register a notification to listen for real-time changes in textField. directly add the Code:
[[Nsnotifcencenterdefacenter] addObserver: selfselector: @ selector (infoAction) name: UITextFieldTextDidChangeNotificationobject: nil];
-(Void) infoAction
{
NSIndexPath * index = [NSIndexPathindexPathForRow: 0 inSection: 1];
OrderConfirmInfoTableViewCell * cell = (OrderConfirmInfoTableViewCell *) [_ tableViewcellForRowAtIndexPath: index];
_ PhoneStr = cell. phoneField. text;
_ AddrStr = cell. addressField. text;
}
In infoAction, you can assign a value to another object in real time to change the value of the textfield of the listener.