iPhone SDK:添加输入字段组
I cannot find how to a text field group, similar to what is in the Address Book app:
(source: puc.edu)
Can someone tell me what I am doing wrong? I can't find an option to make them look this way.
Also, does anyone know the font, font size and color?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 Devin 提到的,它只是一个 UITableView,其样式设置为 Grouped。然后每个单元格包含一个 UITextField。他们可能也发挥了魔力,因此当您在第一个单元格中单击“下一步”时,它会自动将第二个单元格分配为第一响应者,然后向下移动光标而不是收起键盘。
As Devin mentioned it is just a UITableView with it's style set to Grouped. Then each cell contains a UITextField. They probably also worked their magic so when you click "Next" in the first cell, it automatically assigns the second cell as a first responder, which then moves the cursor down instead of putting the keyboard away.
这是一个样式设置为“分组”的表格。
这是一个参考:http://developer. apple.com/iphone/library/documentation/UserExperience/Conceptual/TableView_iPhone/AboutTableViewsiPhone/AboutTableViewsiPhone.html
This is a Table with the style set to "grouped".
Here's a reference: http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/TableView_iPhone/AboutTableViewsiPhone/AboutTableViewsiPhone.html