[英]When moved, the area under a UINavigationBar is no longer touchable
I have a UINavigationBar that is visible. 我有一个可见的UINavigationBar。 When I move this element offscreen, the area underneath no longer accepts touches. 当我将该元素移到屏幕外时,其下方的区域不再接受触摸。
Any idea why this is happening and how I could fix it? 知道为什么会发生这种情况以及如何解决吗?
When you move the navigationBar
by setting a custom frame
to it, do you change the frame
of the contentView of the UINavigationController
? 通过设置自定义frame
来移动navigationBar
时,是否更改UINavigationController
的contentView的frame
?
If not, the part under the navigationBar
may be visible but is not inside the navigationController
's contentView, so touches on it won't be detected. 如果不是,则navigationBar
下的部分可能是可见的,但不在navigationController
的contentView内部,因此不会检测到该部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.