UIAlertView的使用

UIAlertView是用于弹出一个对话框进行选择或者消息提示

构造函数:

    UIAlertView * alert = [[UIAlertViewalloc] initWithTitle:@"提示~"message:@"保存成功" delegate:selfcancelButtonTitle:@"Ok"otherButtonTitles:nil, nil];

常用方法:

    //显示Alert

    [alert show];

现在我使用的AlertView主要就是弹出一个消息框来进行消的提示,当然AlertView还有很多其它的功能,等到我哪天用到了我就会来更新。

原文地址:https://www.cnblogs.com/wisejoker/p/3399843.html