I have a working customCell with tableView.I want to show a UIAlertView on button click.I have a method that responds to button click.How can i show the alert view with that method?
Method i am using is in the
tavleView.m:
-(void) btnAction:(id) sender
{
NSLog(@"i am here");
}
and the Cell event response as :
[cell.ansBtn1 addTarget:self action:@selector(btnAction:) forControlEvents:UIControlEventTouchUpInside];
Can anyone tell me how can i show the alertView?
1 Answer