iOS UIAlertController

释放双眼,带上耳机,听听看~!



//UIAlertController

UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];

// Create the actions.

UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:cancelButtonTitle style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {

}];




UIAlertAction *otherAction = [UIAlertAction actionWithTitle:otherButtonTitle style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {

    RegisterViewController *registerVC = [[RegisterViewController alloc]init];

    [self.navigationController pushViewController:registerVC animated:YES];

}];




// Add the actions.

[alertController addAction:cancelAction];

[alertController addAction:otherAction];




[self presentViewController:alertController animated:YES completion:nil];


 

人已赞赏
iOS文章

iOS Base64图片与UIImage的相互转化

2020-4-30 14:48:02

iOS文章

iOS判断字符串为6~12位“字符”

2020-4-30 16:03:04

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
有新消息 消息中心
搜索