iOS7 中的 UIAlertView addSubview [英] UIAlertView addSubview in iOS7
问题描述
向 UIAlertView
添加一些控件已在 iOS7 中使用 addSubview
方法弃用.据我所知,Apple 承诺添加 contentView
属性.
Adding some controls to UIAlertView
was deprecated in iOS7 using addSubview
method. As I know Apple promised to add contentView
property.
iOS 7 现已发布,我看到未添加此属性.这就是为什么我搜索一些能够向这个 alertView 添加进度条的自定义解决方案.例如,类似于 TSAlertView,但更适合在 iOS 7 中使用.
iOS 7 is released now and I see that this property is not added. That is why I search for some custom solution with ability to add progress bar to this alertView. Something for example similar to TSAlertView, but more ready for using in iOS 7.
推荐答案
这里是 Github 上的一个项目 将任何 UIView 添加到 iOS7 上类似 UIAlertView 的对话框中.
Here is a project on Github to add any UIView to an UIAlertView-looking dialog on iOS7.
(复制自 此 StackOverflow 线程.)
这篇关于iOS7 中的 UIAlertView addSubview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!