UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:@"你是否确认退出登陆状态" preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
} ];
UIAlertAction *ser = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
[self.navigationController popViewControllerAnimated:YES];
}];
[alert addAction:ser];
[alert addAction:cancel];
[self presentViewController:alert animated:YES completion:nil];