Cant dismiss my previous alertcontroller completely

前端 未结 1 1713
遥遥无期
遥遥无期 2020-12-12 06:46

I am trying to use one single alert controller which include multiple alert showing functions and one dismiss function.But I am having this warning in my console and my othe

相关标签:
1条回答
  • 2020-12-12 07:43

    You are on the wrong track. You should not subclass this controller.

    The UIAlertController 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.

    If you need a convenience class, refactor using a NSObject subclass that presents dynamic UIAlertController instances.

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