找出用户是否按下了uinavigationcontroller中的后退按钮? [英] Find out if user pressed the back button in uinavigationcontroller?

查看:79
本文介绍了找出用户是否按下了uinavigationcontroller中的后退按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当视图加载时,我想查看是否是因为用户按下了后退按钮。我怎么检查这个?

When a view loads, i want to see if it's because the user pressed the back button. How can i check this?

推荐答案

这样做的唯一方法是让你确定它是后退按钮就是创建自定义按钮。如果您不知道该怎么做,请查看教程。它看起来不像普通的后退按钮,但接近。如果您需要更多帮助,请发表评论

The only way to do this so you know for sure that it was the back button is to create a custom button. If you don't know how to do that, check out this tutorial. It won't look exactly like the normal back button, but close. If you need more help, post a comment

这篇关于找出用户是否按下了uinavigationcontroller中的后退按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆