获取当前tableview所在行
2017-11-06 本文已影响0人
frola_
//获取当前所在行
NSArray * array = self.tableView.indexPathsForVisibleRows;
for (NSIndexPath * path in array) {
UItableviewCell *cell = [self.tableView cellForRowAtIndexPath:path];//
if (sender.object == cell.textView1) {
//输入key=indexpath.row
if (self.type == StateTypeException) {
[dic setValue:textView.text forKey:[NSString stringWithFormat:@"@%ld",path.row]];
}
}
}
UItableviewCell *cell = [self.tableView cellForRowAtIndexPath:path];