UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Order"
message:@"Order Successfully Discontinued."
delegate:self
cancelButtonTitle:nil
otherButtonTitles: @"Ok",nil];
//[alertView performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:YES];
alertView.tag=TAG_DEV;
[alertView show];
-(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex{
if(alertView.tag==TAG_DEV)
{
if(buttonIndex==0)
{
}
else
NSLog(@"Here");
}
}
This crashes. How can I fix it?