gpt4 book ai didi

ios - iOS7中的UIAlertView addSubview

转载 作者:IT老高 更新时间:2023-10-28 11:26:36 24 4
gpt4 key购买 nike

使用 addSubview 方法向 UIAlertView 添加一些控件在 iOS7 中已弃用。据我所知,Apple promise 添加 contentView 属性。

iOS 7 现在发布了,我看到没有添加这个属性。这就是为什么我搜索一些能够向此警报 View 添加进度条的自定义解决方案。例如类似于 TSAlertView 的东西,但更适合在 iOS 7 中使用。

最佳答案

Here is a project on Github将任何 UIView 添加到 iOS7 上类似 UIAlertView 的对话框。

(从 this StackOverflow thread 复制。)

Custom iOS7 AlertView dialog

关于ios - iOS7中的UIAlertView addSubview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18729220/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com