【发布时间】:2015-10-13 17:57:36
【问题描述】:
我只知道像这样在 tableviewcell 中获取 indexpath 按钮
CGPoint center= [发件人中心]; CGPoint rootViewPoint = [[sender superview] convertPoint:center toView:_tableView1]; NSIndexPath *indexPath = [_tableView1 indexPathForRowAtPoint:rootViewPoint]; NSLog(@"%@",indexPath);
但我需要了解 textfield thx 来帮助我!
【问题讨论】:
-
你到底想在这里实现什么?
-
我在tableviewcell中有标签(用于问题标签)和文本字段(用于答案文本字段),但我需要在文本字段中输入文本..问题出在我的API应该循环参数ANSWER(这应该在uitextfield),就像 ANSWER1 ANSWER2 ANSWER3 一样,我已经在我的 uitextfield 中声明了参数 ANSWER 但是当我在所有循环的 uitextfield 中插入文本并单击 OK 时,我的参数 ANSWER 仍然为空,因为 uitextfield 不知道哪个是 ANSWER1 或 ANSWER2 或 ANSWER3,它的应该从头到尾连续循环..
-
我想使用标签,就像我之前成功获取我的按钮的 indexpath 一样,就像这样 self.button.tag=indexPath.row;但我不知道如何使用 uitextfield 获取 indexpath 使用标签
标签: ios objective-c xcode uitextfield