UIAlertView*alert=[[UIAlertViewalloc]initWithTitle:@"WL_Warning"message:@"You have to set the mainWindow.rootViewController in order for offer views to be presented properly."delegate:nilcancelButtonTitle:@"OK"otherButtonTitles:nil];
[alertshow];
// UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WL_Warning" message:@"You have to set the mainWindow.rootViewController in order for offer views to be presented properly." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
// UIAlertController * alert = [UIAlertController alertControllerWithTitle:@"WL_Warning" message:@"You have to set the mainWindow.rootViewController in order for offer views to be presented properly." preferredStyle:UIAlertControllerStyleAlert];