Subclassing UIAlertView

前端 未结 3 1515
小鲜肉
小鲜肉 2021-01-16 10:28

Am attempting to subclass UIAlertView to better handle error states in my app. The trouble am having is with the otherButtonTitles nil terminated parameter, when I

3条回答
  •  醉梦人生
    2021-01-16 11:04

    From the UIAlertView Class Reference

    Subclassing Notes

    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.

    There are, however, many other alert view implementations that you may find useful, posted here on CocoaControls.

提交回复
热议问题