重新打开应用程序后,UIToolbar超级视图占据整个视图
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用
应用程序委托中的或
方法来实现您喜欢的任何代码。
Try using the
or the
methods in the app delegate to implement whatever code you like.