How to customize UIAlertView? Will Apple approve it?

后端 未结 8 1976
逝去的感伤
逝去的感伤 2021-02-04 18:48

I am using a custom UIAlertView with UITextField to get password from the user.

I have been told that this custom view may cause my App to get

相关标签:
8条回答
  • 2021-02-04 19:35

    Quoting from the class reference

    The UIAlertView class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified.

    The last sentence appears to me that they don't want developers modifying the views.

    0 讨论(0)
  • 2021-02-04 19:38

    iOS 5 now supports this natively. Check out UIAlertView's alertViewStyle property.

    0 讨论(0)
提交回复
热议问题