【问题标题】:UIActivitiindicatorView in UIAlertView [closed]UIAlertView 中的 UIActivitiindicatorView [关闭]
【发布时间】:2014-01-06 14:06:58
【问题描述】:

有什么方法可以像Loading一样在UIAlertView中添加UIActivityindicatorView

请帮帮我。

谢谢

【问题讨论】:

    标签: ios iphone sdcalertview


    【解决方案1】:

    您不应该修改或弄乱 UIAlertView 元素。 If you look at Apple's documentation for UIAlertView, it says:

    子类化注释

    UIAlertView 类旨在按原样使用 并且不支持子类化。这个类的视图层次结构是 私有,不得修改。

    最好做你自己的 UIView 并添加一个活动指示器视图。

    【讨论】:

      【解决方案2】:

      Apple 限制用户访问UIAlertViewsubViews 以维护IOS 7 版本 上的UIAlertView 接口标准。

      【讨论】:

        【解决方案3】:

        不,除非您创建自己的视图并使用它而不是 UIAlertView 之一。无法向其中添加子视图。

        【讨论】:

          【解决方案4】:

          不是 UIAlertView,而是看一下SDCAlertView。它是一个 UIAlertView 副本,确实支持显示自定义视图。

          【讨论】:

            猜你喜欢
            • 2011-10-02
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2015-02-14
            • 2014-09-05
            • 1970-01-01
            • 2015-02-21
            • 2013-09-22
            相关资源
            最近更新 更多