本文介绍了如何在UITableView中激活下一个UITextField?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用其他SO答案添加 UITextField 到我的 UITableViewCell 。但是,我现在不知道如何通过使用下一个按钮让用户专注于下一个项目。任何提示?
I am using this other SO answer for adding UITextFields to my UITableViewCells. However, I am now at a loss how I can let the user focus on the next item by using the next button. Any hints?
推荐答案尝试为每个UITextField分配标记。按下Next按钮后,计算下一个标签并使用 [[UIView viewWithTag:nextTag] becomeFirstResponder] 将焦点更改为下一个文本字段。
Try assigning a tag to each UITextField. Once the Next button is pressed, calculate the next tag and use [[UIView viewWithTag:nextTag] becomeFirstResponder] to change the focus to the next text field.
更多推荐
如何在UITableView中激活下一个UITextField?
发布评论