8.2UITextField获取实时的值

通过写UITextField的点击事件传值:

self.titleTextField.delegate = self;

[self.titleTextField addTarget:self action:@selector(passConTextChange:) forControlEvents:UIControlEventEditingChanged];


//点击事件的传值

-(void)passConTextChange:(id)sender{

UITextField* target=(UITextField*)sender;

[self.delegate editNewInfoString:target.text WithSection:self.section Row:self.row];

}

你可能感兴趣的:(8.2UITextField获取实时的值)