如何刷新笔尖?

发布于 2024-12-16 11:47:50 字数 103 浏览 3 评论 0原文

我需要初始化使用选项卡栏的应用程序。 我在选项卡之间切换来初始化选项卡视图没有问题。问题是当我按下主页按钮并第二天再次启动我的应用程序时,我想立即进行初始化。

如果有办法吗?

I need to init my app which is using tab bars.
I have no problem switch between the tab to initialize tab view. The problem is when I press the home button and start my app again the next day, I want to nib to initialize straight away.

If there a way?

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

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

发布评论

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

评论(1

宫墨修音 2024-12-23 11:47:50

好吧,您可能可以从应用程序委托中刷新它们...如果您在应用程序委托中引用了 UITabBarController ,您可以执行以下操作:

 [[[[tabBarController viewControllers] objectAtIndex:0] refreshData]; //This would call the refreshData in your first tab bar.

Well, you could probably from the app delegate refresh them... If you have a reference to your UITabBarController in your app delegate you can do something like this:

 [[[[tabBarController viewControllers] objectAtIndex:0] refreshData]; //This would call the refreshData in your first tab bar.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文