Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIAlertController * alertVC = [UIAlertController alertControllerWithTitle:@"当前位置信息" message:@"XXXXXXXX" preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction * cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
- }];
- UIAlertAction * sureAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
- }];
- [alertVC addAction:cancelAction];
- [alertVC addAction:sureAction];
- [self presentViewController:alertVC animated:YES completion:nil];
Add Comment
Please, Sign In to add comment