Warning message does not spin in iOS8

I am creating an iPhone application that displays a warning message when a specific button is used. Auto-rotaion is ON. When I rotate my phone, the entire presentation of the application, as well as the warning message, rotates in iOS7But, in the iOS8views rotate, except for the warning message

+4
source share
2 answers

UIAlertViewnot working properly in iOS8. The iOS8new one is used. UIAlertControllerThis linked file works for my case.

Link Link

+2
source

- , iOS . UIalertview , . iOS8, .

[self performSelector:@selector(showAlert) withObject:nil afterDelay:0.5];

-(void)showAlert
{
    UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Your alert Title." message:@"Your alert Message." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil];
    [alert show];
}
0

All Articles