Reputation: 3996
I would like to know that how to change UIAlert's cancel button text during runtime.
Upvotes: 1
Views: 1949
Reputation: 2219
- (void)showAlertWithTitle:(NSString*)title message:(NSString*)message cancelButtonTitle:(NSString*)cancelTitle {
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title message:message delegate:self cancelButtonTitle:cancelTitle otherButtonTitles:nil];
[alertView show]
[alertView release];
}
Upvotes: 5