您的位置:首页 > 其它

导航返回按钮的事件处理

2017-02-16 16:59 190 查看
导航返回按钮的事件处理

-(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];

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: