开发者

How to change UIAlertView cancel button text

开发者 https://www.devze.com 2023-01-19 21:43 出处:网络
I would like to开发者_如何学Python know that how to change UIAlert\'s cancel button text during runtime.- (void)showAlertWithTitle:(NSString*)title message:(NSString*)message cancelButtonTitle:(NSStri

I would like to开发者_如何学Python know that how to change UIAlert's cancel button text during runtime.


- (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];
}
0

精彩评论

暂无评论...
验证码 换一张
取 消