如何在iPhone开发中停止标签栏额外功能?
我正在构建一个应用程序,用户在登录后使用应用程序,该应用程序是选项卡栏,我在每个选项卡栏项目中使用导航。问题是,当我将选项卡栏项目 1 移动到 2,然后将 2 移动到 1 时,就像第一个选项卡栏项目名称是游戏,第二个名称是商店,并且在游戏选项卡栏中,当我从游戏移动到商店时,用户在登录之前玩游戏然后将其存储到游戏中,它会自动向后移动或 popviewcontroller
,因此这不应该在我的应用程序流程中发生。我怎样才能阻止这个或阻止这个。
I am building an app in which user use app after sign in, this app is tab bar and i am using navigation in each tab bar item. The problem is when i move tab bar item 1 to 2 then 2 to 1 like first tab bar item name is game, and second one name is store, and in game tab bar user play game before sign in when i move from game to store then store to game it move back or popviewcontroller
automatically, so this shouldn't happen in my app flow. How can i stop this or block this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
切换选项卡时设置断点并在调试器中观察会发生什么。在
viewDidLoad
和viewDidUnload
处插入NSLog
语句,看看是什么导致视图弹出。Set a breakpoint when you switch tabs and observe in the debugger what happens. Insert
NSLog
statements atviewDidLoad
andviewDidUnload
to see what causes your views to pop.