Reputation: 110
After upgrading to iOS9 my UIAlertview
or UIAlertcontroller
doesn't show the alert, only the transparent black background that comes with it!
Can anyone suggest what am I doing wrong!. Below iOS 9 versions everything is working fine.
Upvotes: 1
Views: 311
Reputation: 1
May be some thing is already working on main thread so that alert view is not visible.Please try this
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
alert = [[UIAlertView alloc]initWithTitle:@"" message:[NSString stringWithFormat:@"Reload data ?"] delegate:self cancelButtonTitle:@"Yes" otherButtonTitles:@"Cancel", nil];
[alert show];
}];
Upvotes: 0
Reputation: 2148
I am using this piece of code for showing UIAlertView and it's working fine for me,
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@""
message:@""
delegate:self
cancelButtonTitle:@""
otherButtonTitles:@"", ..., nil];
[alert show];
Upvotes: 1