如何在iPhone开发中停止标签栏额外功能?

发布于 2024-12-29 14:38:29 字数 241 浏览 2 评论 0原文

我正在构建一个应用程序,用户在登录后使用应用程序,该应用程序是选项卡栏,我在每个选项卡栏项目中使用导航。问题是,当我将选项卡栏项目 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 popviewcontrollerautomatically, so this shouldn't happen in my app flow. How can i stop this or block this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄居者 2025-01-05 14:38:29

切换选项卡时设置断点并在调试器中观察会发生什么。在 viewDidLoadviewDidUnload 处插入 NSLog 语句,看看是什么导致视图弹出。

Set a breakpoint when you switch tabs and observe in the debugger what happens. Insert NSLog statements at viewDidLoad and viewDidUnload to see what causes your views to pop.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文