重新打开应用程序后,UIToolbar超级视图占据整个视图

发布于 2024-11-28 06:51:02 字数 375 浏览 7 评论 0原文

我在 UITableView 底部的超级视图中有一个 UIToolbar 设置,它是 UINavigationController 的一部分。

当我使用该应用程序时,它运行良好;但是,当我关闭(发送到后台多任务)应用程序然后重新打开它时,UIToolbar 超级视图占据整个 UITableView (但不包括导航栏)。有没有办法在应用程序重新加载时调用 setFrame ?我尝试将 NSLog 放入 viewWillAppear 中,但当我切换回多任务栏上的应用程序时,它不会被调用。

谢谢,

I have a UIToolbar setup in a superview on the bottom of my UITableView that is part of a UINavigationController.

It works fine when I'm using the app; however, when I close (send to background multitask) the app and then reopen it, the UIToolbar superview takes up the whole UITableView (but not the Navigation Bar). Is there a way to call a setFrame when the app reloads? I tried to put an NSLog in viewWillAppear, but it doesn't get called when I switch back to the app on multitask bar.

Thanks,

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

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

发布评论

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

评论(1

等待我真够勒 2024-12-05 06:51:02

尝试使用

 - (void)applicationWillEnterForeground:(UIApplication *)application

应用程序委托中的或

 - (void)applicationDidBecomeActive:(UIApplication *)application

方法来实现您喜欢的任何代码。

Try using the

 - (void)applicationWillEnterForeground:(UIApplication *)application

or the

 - (void)applicationDidBecomeActive:(UIApplication *)application

methods in the app delegate to implement whatever code you like.

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