How to add subview inside UIAlertView for iOS 7?

前端 未结 6 2051
悲哀的现实
悲哀的现实 2020-11-27 15:41

I am having an application on iTunes store which displays some UILabel and UIWebView on UIAlertView. According to session video,

6条回答
  •  庸人自扰
    2020-11-27 16:01

    AddSubview is not possible from iOS 7.

    The only way is to create a custom UIView subclass which can act as UIAlertView. I could find out few components on Github.

    The linked one Custom Alert seems to work well. By putting proper version check one can identify to go for native UIAlertView or CustomAlertView.

提交回复
热议问题