当我们要修改系统返回事件时,导入工具类,调用下面方法,就可以:
//返回按钮点击
-(BOOL) navigationShouldPopOnBackButton {
[self.navigationControllerpopToRootViewControllerAnimated:YES];
returnYES;
}
工具类下载地址:https://pan.baidu.com/s/1c2cleM0
当我们要修改系统返回事件时,导入工具类,调用下面方法,就可以:
//返回按钮点击
-(BOOL) navigationShouldPopOnBackButton {
[self.navigationControllerpopToRootViewControllerAnimated:YES];
returnYES;
}
工具类下载地址:https://pan.baidu.com/s/1c2cleM0