导航返回按钮的事件处理
-(void)navigationShouldPopOnBackButtonSelect ///在这个方法里写返回按钮的事件处理
{
[self showAlertView:@"当前有未保存的数据,确认返回?" antagAler:100];
-(void)navigationShouldPopOnBackButtonSelect ///在这个方法里写返回按钮的事件处理
{
[self showAlertView:@"当前有未保存的数据,确认返回?" antagAler:100];
}
-(void)alertAction:(NSString *)titleStr
{
UIAlertController *alert = [UIAlertController alertControllerWithTitle:titleStr message:nil preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
}] ];
[self presentViewController:alert animated:YES completion:nil];
}