I\'ve just created a Single View Application project with ViewController class. I would like to show a UIAlertController from a function which is located inside my own class
It helped me to stick a slight delay between the viewDidLoad method and firing the alert method:
[self performSelector:@selector(checkPhotoPermission) withObject:nil afterDelay:0.1f];