UIAlertController *alertC = [UIAlertController alertControllerWithTitle:nil message:@"地图已发生改变是否重新打开地图" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
[self.delegate pushView];
}];
UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDefault handler:nil];
[alertC addAction:okAction];
[alertC addAction:cancelAction];
转载于:https://my.oschina.net/u/2556411/blog/598667