美文网首页
获取当前tableview所在行

获取当前tableview所在行

作者: frola_ | 来源:发表于2017-11-06 11:47 被阅读0次
//获取当前所在行
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];

相关文章

网友评论

      本文标题:获取当前tableview所在行

      本文链接:https://www.haomeiwen.com/subject/tntlmxtx.html