通过写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];
}
网友评论