Wednesday, December 12, 2018

The Safest Multiple UIAlertController in For Loop Swift 4.2

If you want to show many alerts for in loop. You can use recursive becuse it's more simple and not complicated. I found the way on stackoverflow and it works like a champ. But it doesn't work when i use present to view controller and then show alert. It's like method present UIViewController only wants one work at the time. So i do this way you can see below code.


I just use dependent present so that's how it works. Hope it helps you all.

No comments:

Post a Comment