简体   繁体   English

为什么我再次隐藏并显示时,iOS工具栏视图会添加到加载视图的顶部?

[英]Why does the iOS toolbar view get added on top of my loading view when I hide and show it again?

  1. I have a normal navigation based iOS app 我有一个基于导航的普通iOS应用
  2. I've got "loading view" which I initiate from my app delegate and use across the app, simply by showing and hiding it. 我有一个“加载视图”,可以通过显示和隐藏它来从我的应用程序委托启动并在整个应用程序中使用。
  3. This works fine, but as soon as I hide the bottom toolbar in one of the views in the app and display it again, the toolbar seems now be shown on top of the my generic "loading view" 效果很好,但是一旦我将底部工具栏隐藏在应用程序的其中一个视图中并再次显示,该工具栏现在似乎就会显示在我的通用“加载视图”顶部

第一个观点它应该如何工作版本已损坏-工具栏现在似乎与加载视图重叠

Any help is much appreciated 任何帮助深表感谢

How do you add your bottomBar? 您如何添加bottomBar? Obviously not on the view itself, right? 显然不在视图本身上,对吗? Than it would probably be beneath the overlay. 比它可能会在覆盖层下方。

Also you should use an extra window for the loading overlay. 另外,您应该使用一个额外的窗口作为加载叠加层。 That would solve your issues. 那将解决您的问题。

I basically ended up deleting the loading view and recreating it each time. 我基本上最终删除了加载视图并每次都重新创建它。 It now appears at the top of the view hierarchy each time. 现在,它每次都出现在视图层次结构的顶部。 This fixed the problem. 这解决了问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 单击下一个视图控制器的按钮时,如何显示加载标签? - How can I get my loading label to show up when I click button to next view controller? 当我单击IOS中的按钮时,为什么视图不显示? - Why the view doesn't show when I click the button in IOS? 当我在iOS 7中关闭模态视图时,为什么我的导航栏会暂时消失? - Why does my Navigation Bar temporarily disappear when I dismiss a modal view in iOS 7? 为什么我选择的图像只在第一次加载视图时才显示在UIImageView中,而如果再次选择则不再显示 - Why does my selected image only display in the UIImageView the first time I load the view and never again if I select it again 如何在ios的quicklook视图顶部显示导航栏? - How do I show a navigation bar on top of quicklook view on ios? 当推到另一个视图并再次弹出时,视图顶部的变化 - view top changes when pushed to another view and pop again 在UItableView滚动时显示/隐藏顶视图和底视图 - Show/Hide Top View and Bottom View while UItableView Scrolling 如何限制我的标签从顶部定位,但隐藏导航栏时不让其移动(因为它会调整视图高度)? - How do I make a constraint to position my label from the top, but not have it move when I hide the navigation bar (as it adjusts height of view)? 如何显示隐藏的图像视图一定时间,然后再次将其隐藏 - How to show a hidden Image View for a certain amount of time, then hide it again NSViewController在添加或删除视图时会收到通知吗? - Does NSViewController get notified when its view is added or removed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM