It will present multiple UIAlertControllers one by one.
Copy MAAlertPresenter.h and MAAlertPresenter.m files to your project.
- Copy MAAlertPresenter.h and MAAlertPresenter.m files to your project, and call
[[MAAlertPresenter sharedPresenter]enqueueAlert:alertController];
instead of
[self presentViewController:alertController animated:YES completion:NULL];
to add UIAlertController object to the presenter queue which will present all the UIAlertControllers one by one.
- Call
[[MAAlertPresenter sharedPresenter]dequeueAlert];inside each UIAlertAction Callback to dequeue the Presented UIAlertController from the queue and allow the next UIAlertController to be presented.
MAAlertPresenter is MIT licensed. See the LICENCE file for more info.