UIAlertView Button Click in IOS
if you only have an ok button for alert view, that is easy.
However, if you have more than an "OK" button, you need to implement your controller as UIAlertViewDelegate
For example:
@interface TipRecordListViewController : UITableViewController < uialertviewdelegate >
You need to implement clickedButtonAtIndex
E.g.
Code
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ |
The buttonIndex will tell you which button is clicked
Tags: ios
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
Feedback awaiting moderation
This post has 4695 feedbacks awaiting moderation...
Form is loading...