获取到UITableView的cell
2016-07-29 11:33
302 查看
想要获取到tableView里的cell
for (int i = 0; i<rows-1; i++) { NSIndexPath *indexPath = [NSIndexPath indexPathForRow:i inSection:0]; UITextField *field = [_qiDiFaBuView.baseTable cellForRowAtIndexPath:indexPath].subviews[0]; UITableViewCell *myCell = [_qiDiFaBuView.baseTable cellForRowAtIndexPath:indexPath]; UITextField *field = myCell.subviews[0]; NSLog(@"%@",field); NSLog(@"---%@",field.text); if (field.text == nil) { TYAlertView *alertView = [TYAlertView alertViewWithTitle:@"提示" message:@"请完整填写必须选项"]; [alertView addAction:[TYAlertAction actionWithTitle:@"确定" style:TYAlertActionStyleDefault handler:^(TYAlertAction *action) {}]]; TYAlertController *alerControl = [TYAlertController alertControllerWithAlertView:alertView preferredStyle:TYAlertControllerStyleAlert]; [self presentViewController:alerControl animated:YES completion:nil]; return; }
相关文章推荐
- UITableView获取cell的row值(解决自定义cell里的button通过点击无法获得cell的indexpath的问题)
- 如何获取UITableView中cell的frame值
- UITableView获取cell的indexPath.row值(多种方式)
- UITableView获取cell的indexPath
- iOS UITableView之cellForRowAtIndexPath和indexpathForCell分别获取指定cell和indexpath
- iOS UITableView之cellForRowAtIndexPath和indexpathForCell分别获取指定cell和indexpath
- [置顶] UItableView获取cell以及获取当前选中的cell
- UITableViewCell 四种样式的具体显示效果&&获取可见UITableView 中的所有cell
- IO获取UITableView的cell内容
- UITableView获取cell的row值(解决自定义cell里的button通过点击无法获得cell的indexpath的问题
- ios UITableView 获取点击cell对象
- 获取UITableView 的cell 及其cell上的controll
- UITableView获取当前选中的cell
- UITableView获取cell的row值
- 如何获取uitableview中最上面的可见cell的索引
- ios uitableview button 获取cell indexpath.row
- UITableView获取cell的indexPath
- UITableView如何获取所有的cell
- 获取 UITableView 单个cell 的坐标点位置
- ios UITableView 获取点击cell对象