「Objective-C」ios開発でtextFieldの値変更をリアルタイムリスナーする方法

参考ソースコード:
[[NSNotificationCenterdefaultCenter]addObserver:selfselector:
@selector(infoAction)name:UITextFieldTextDidChangeNotificationobject:nil];
– (void)infoAction
{
NSIndexPath *index = [NSIndexPathindexPathForRow:0inSection:1];
OrderConfirmInfoTableViewCell *cell = (OrderConfirmInfoTableViewCell *)[_tableViewcellForRowAtIndexPath:index];
_phoneStr = cell.phoneField.text;
_addrStr = cell.addressField.text;
}

IOS

Posted by arkgame