I have to show multiple UIAlerts in one viewController before iOS8 we can use the UIAlerts with tags and we can identify in clickedButtonAtIndex using tags like.
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if(alertView.tag == 1)
{
//UIAlert1 button clicked
}
if(alertView.tag == 2)
{
//UIAlert2 button clicked
}
}
so we can do stuff. how to identify button clicks of different UIAlertControllers. Because one alert1 button click i have to change the some text color and alert2 button click i have to pop the view controller.