NSArray *windows = [[UIApplication sharedApplication] windows];
if ([windows lastObject] != warningAlertView)
{
[[windows lastObject] addSubview:warningAlertView];
}
[warningAlertView makeKeyAndVisible];
NSArray *windows = [[UIApplication sharedApplication] windows];
if ([windows lastObject] != warningAlertView)
{
[[windows lastObject] addSubview:warningAlertView];
}
[warningAlertView makeKeyAndVisible];