I am using alertcontroller with indicator in FirstViewController, and I use self.dismissViewControllerAnimate
to dismiss it. Then in SecondViewController I use popViewController
to return to FirstViewController but I can't go back to FirstViewController, although the alertcontroller is being loaded and dismissed.
When I tried to remove the alertcontroller, I was able to return to FirstViewController. But that's not the requirement.