如何在TabBar之上有一个UIView?

发布于 2024-08-31 18:14:59 字数 489 浏览 7 评论 0原文

如何让 UIPickerView 出现在 TabBar 顶部?

示例视频

这是一个 TabBar 应用程序,NIB 文件包含 2 个视图

替代文本 http: //cl.ly/o51/Screen_shot_2010-05-05_at_14.35.15.png

我设置动画以显示/隐藏而不是键盘,但键盘在所有 UIView 之上进行动画处理。

如何使用自定义视图实现此目的?

How can I get my UIPickerView to apear on top of the TabBar?

Example Video

This is a TabBar Application and that NIB file contain 2 views

alt text http://cl.ly/o51/Screen_shot_2010-05-05_at_14.35.15.png

That I animate to show / hide instead of the keyboard, but the keyboard animates on top of all UIViews.

How can I accomplish this with my Custom View?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

许仙没带伞 2024-09-07 18:14:59

要显示选取器视图,只需将其放在自己的视图中即可。然后将该视图设置为文本字段“inputView”属性。

选择该字段后,视图应该出现在键盘的位置。

To display the picker view, just put it in its own view. Then set that view as the textfields 'inputView` property.

When the field is selected, the view should appear in place of the keyboard.

糖粟与秋泊 2024-09-07 18:14:59

您可以在视图上使用 BringSubviewToFront: 和 sendSubviewToBack: 方法吗?

Could you use use bringSubviewToFront: and sendSubviewToBack: method on your views?

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