什么是 autoresizesForKeyboard 以及它如何工作?

发布于 2024-09-25 06:17:01 字数 699 浏览 0 评论 0原文

我试图找到一种方法来在键盘向上滑动时调整屏幕,以便正在编辑的文本字段(在我的例子中为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忘羡 2024-10-02 06:17:01

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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文