There is a crash due to an issue with the alert controller presentation from the non-main thread. This simple patch fixes it.
P.S. I changed the formatting of the function, but the only real change is dispatch_async(dispatch_get_main_queue() around the [rootViewController presentViewController:animated:completion:].
There is a crash due to an issue with the alert controller presentation from the non-main thread. This simple patch fixes it.
P.S. I changed the formatting of the function, but the only real change is
dispatch_async(dispatch_get_main_queue()
around the[rootViewController presentViewController:animated:completion:]
.