UIAlertView 中的 UIPickerView?

发布于 2024-08-30 04:47:00 字数 55 浏览 3 评论 0原文

是否可以将 UIPickerView 放入 UIAlertView 中?如果可以,能举个例子吗?

Is it possible to put UIPickerView into UIAlertView?If yes, can you give an example?

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

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

发布评论

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

评论(4

残花月 2024-09-06 04:47:00

这里有一个示例添加 UITableView 后,您应该能够对其进行调整以适合您的目的。

There's an example here of adding a UITableView, you should be able to adapt it to suit your purposes.

余生再见 2024-09-06 04:47:00



UIActionSheet

[actionSheet addSubview:pickerMoney];

标题

but
in
UIActionSheet

[actionSheet addSubview:pickerMoney];

Heading

零度° 2024-09-06 04:47:00

没有。但是您可以在 UIActionSheet 中嵌入选择器,这样您就可以在显示或关闭选择器时为用户提供漂亮的向上滑动和向下滑动动画。

此处此处

Nope. But you can embed a picker in a UIActionSheet, which lets you give the user a nice slide up and slide down animation when showing or dismissing the picker.

There are a couple of good examples of the technique here and here.

南街九尾狐 2024-09-06 04:47:00

不,UIAlertView 只有按钮,您只能设置它们的标题。

No, UIAlertView only has buttons and you can only set their titles.

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