简体   繁体   English

iphone - 在UITextFields之间导航?

[英]iphone - Navigating between UITextFields?

I have seen a lot of iphone apps which provide an easy to use navigation controll for text fields, which contains next previous and done. 我见过很多iphone应用程序,它们为文本字段提供了一个易于使用的导航控件,其中包含下一个上一个和完成的内容。

  1. What is the technique for this? 这个技术是什么? any sample code? 任何示例代码?
  2. they also scroll the screen until the selected textField is placed on top of the keyboard, how do they do that? 他们还滚动屏幕,直到所选的textField放在键盘顶部,他们如何做到这一点?

替代文字

Sorry I don't have direct answers, these are the best I could find off the top of my head: 对不起,我没有直接的答案,这些是我能找到的最好的答案:

For 1, take a look at first responders , it seems to be what you're looking for. 对于1,看看第一响应者 ,它似乎是你正在寻找的。

For 2, you will have to make it manually. 对于2,您必须手动进行。 See this article . 看到这篇文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM