iOS开发 - UIAlertController 弹框提醒

传统的alertView

- (void)alertView
{
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"警告" message:@"你的操作时非法的,您要继续吗" delegate:nil cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
    alert.alertViewStyle = UIAlertViewStyleLoginAndPasswordInput;
    [alert show];
}

iOS开发 - UIAlertController 弹框提醒_第1张图片

传统的actionSheet

- (void)actionSheet
{
    UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"警告:你的操作时非法的,您要

你可能感兴趣的:(【IOS,-开发实例实战】,iOS开发实例)