I have a UIAlertView in a UIView. If an error occurs while logging in, a warning appears.
He once worked on a central position after this image.

My code
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Login Failed" message:exceptionString delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; [alert show];
but once he worked in the left position after this image.

I want only in a central position.
How to fix it. Thanks.
source share