简体   繁体   English

当我单击导航栏时,我的应用将转到以前的视图

[英]When I click on navigation bar, my app goes to previous view

I have a strange problem with my application. 我的应用程序有一个奇怪的问题。 my view has a navigation bar with a back button on it. 我的视图上有一个带有后退按钮的导航栏。 When I click button, it obviously goes to previous view; 当我单击按钮时,它显然转到了先前的视图; anyway, today I noticed that it does even if I click in a small area outside the button but very close to it, on navigation bar. 无论如何,今天我注意到,即使我在导航栏上单击按钮外的一个很小区域但非常靠近按钮,也可以这样做。

This seems so weird and incomprehensible that I'm beginning to think that it may depend on Simulator iOS that Xcode uses to simulate, run and test application. 这似乎太不可思议和不可理解了,我开始认为它可能取决于Xcode用于仿真,运行和测试应用程序的Simulator iOS。

Can anyone help me? 谁能帮我?

button的画布大于按钮本身,您可以尝试向左滑动,并同时看到viewcontroller

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 隐藏导航栏时视图上升 - View goes up when hiding navigation bar 隐藏导航栏,但是当我转换到上一个视图(弹出)时,它会暂时显示旧的后退按钮。 为什么? - Hide navigation bar, but when I transition to the previous view (popped) it shows the old back button temporarily. Why? Ios:当应用程序处于非活动状态时,如何让我的应用程序返回到根视图 - Ios: How can I make my app go back to root view when App goes Inactive 单击视图时出现导航栏 - Navigation bar appear on click on view 在iPhone 6+上旋转时,为什么导航栏从拆分视图中消失了? - Why does my navigation bar disappear from my split view when I rotate on iPhone 6+? 当应用程序处于后台状态时,单击通知时导航栏消失 - Navigation bar disappear when click on notification when app is in background state 当我尝试在 Flutter 中实现底部导航栏时,为什么我的应用程序崩溃了? - Why is my app crashing when I try to implement my bottom navigation bar in Flutter? 整个应用中只有一个视图的导航栏 - Navigation Bar on only one view in my whole app 当应用程序进入后台时,我的View Controller会被释放 - My View Controller gets deallocated when the app goes to the background 过渡到ViewController会离开上一个视图的导航栏 - Transitioning to a ViewController leaves the navigation bar of the previous view
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM