CKAlertViewController *alertVC = [CKAlertViewController alertControllerWithTitle:@"Access Microphone?" message:@"Are you sure that you want to allow this app to access your microphone?" ];
CKAlertAction *cancel = [CKAlertAction actionWithTitle:@"取消" handler:^(CKAlertAction *action) {
NSLog(@"点击了 %@ 按钮",action.title);
}];
CKAlertAction *sure = [CKAlertAction actionWithTitle:@"确定" handler:^(CKAlertAction *action) {
NSLog(@"点击了 %@ 按钮",action.title);
}];
[alertVC addAction:cancel];
[alertVC addAction:sure];
[self presentViewController:alertVC animated:NO completion:nil];
-
Notifications
You must be signed in to change notification settings - Fork 26
Pr-Chen/CKAlertViewController
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
漂亮简洁的弹出框
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published