什么是 autoresizesForKeyboard 以及它如何工作?
我试图找到一种方法来在键盘向上滑动时调整屏幕,以便正在编辑的文本字段(在我的例子中为 UITextView)向上滑动并保持焦点,而不是隐藏在键盘后面。
我看到谷歌小组上的一些讨论提到 - autoresizesForKeyboard - http://groups.google.com /group/third20/browse_thread/thread/38bdadc89a1f35f8/2f8b92a6058cf136?lnk=raot&pli=1
我无法弄清楚如何使用它或找到它的任何文档。
然后我看到苹果建议如何做 - http://developer.apple.com/ 然而,
autoresizesForKeyboard 听起来太简单了。有人可以解释一下吗?
I was trying to find a way to adjust my screen when keyboard slides up so that the text field being edited (UITextView in my case) slides up and stays in focus instead of getting hidden behind the keyboard.
I saw a few discussion on google groups mentioning - autoresizesForKeyboard -
http://groups.google.com/group/three20/browse_thread/thread/38bdadc89a1f35f8/2f8b92a6058cf136?lnk=raot&pli=1
I was not able to figure out how to use it or find any documentation for it.
Then I saw how Apple recommends to do it -
http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html
However autoresizesForKeyboard sounds too intriguingly simple. Can someone please shed some light on this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
autoresizesForKeyboard 是 Three20 库的一部分,并且是 TTViewController 类的属性。
http://api. Three20.info/interface_t_t_view_controller.html#acc0ff2c5d115eb977aaac419cb64f62b
e20 是一个iPhone 开发库。它是为 Facebook iPhone 应用程序和应用程序商店中的许多其他应用程序提供支持的代码。”
http://third20.info/
autoresizesForKeyboard is part of the Three20 library and is a property of the TTViewController class.
http://api.three20.info/interface_t_t_view_controller.html#acc0ff2c5d115eb977aaac419cb64f62b
"Three20 is an iPhone development library. It's the code that powers the Facebook iPhone app and many other apps in the app store."
http://three20.info/