在 UIAlertView 中使用滑块?

发布于 2024-10-05 06:38:00 字数 242 浏览 0 评论 0原文

是否可以在 UIAlertView 内部有一个 UISlider,并且当该 UISlider 的值发生变化时,UIAlertView 内部的文本或 UIImage 也会随着 UIslider 相应变化?

我试图创建一种简单的方法来更改特定核心数据对象的一个​​属性。

因此,在 UITableView 中,用户将选择他们希望更改其属性的对象。将弹出 UIAlertView,用户将更改 UISlider 的值来更改该对象的属性。这可能吗?

is it possible to have a UISlider inside of a UIAlertView, and when the value of that UISlider changes so does text or a UIImage inside of the UIAlertView changes accordingly with the UIslider?

Im trying to create an easy way to change one attribute of a specific core data object.

So in a UITableView, the user would select the object's whose attribute they wish to change. A UIAlertView would pop up and the user would change the value of a UISlider to change the attribute of that object. is that possible?

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

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

发布评论

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

评论(1

尝蛊 2024-10-12 06:38:00

是的,这是可能的。您可以通过 addSubview: 方法将视图添加到 UIAlertView 中。为了增加alertView的高度,我个人使用空行作为其消息文本。例如: @" \n \n "

我相信还有其他方法可以改变 UIAlertView 的大小,但我不知道它们。

Yes it's possible. You can add views to an UIAlertView through its addSubview: method. To increase the height of the alertView I personally use empty lines as its message-text. For instance: @" \n \n "

I believe there are other ways to alter the size of an UIAlertView, but I don't know them.

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