如何更改UIAlertView取消按钮文本

fya*_*sar 1 iphone cocoa-touch

我想知道如何在运行时更改UIAlert的取消按钮文本.

aeg*_*orz 5

- (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];
}
Run Code Online (Sandbox Code Playgroud)