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