如何动态隐藏iPad顶部区域的三个点
我有一个 iPad 应用程序,它支持分屏多任务处理。然而,有一些视图可以全屏显示图像和视频。在这些屏幕上,屏幕顶部的多任务控制是侵入性的。
有什么办法可以动态关闭这些吗? Apple 的照片应用程序按照我想要的方式工作。全屏显示照片时,三个点会在短时间内消失。
这里的答案 https://stackoverflow.com/a/70376095/1852207 关闭分屏支持并禁用以下控件所有观点。我只想隐藏一些观点。
I have an iPad app which does have support for split screen multitasking. However there are some views which can display images and videos in full screen. On these screens the multitasking controls at the top of the screen are intrusive.
Is there any way to turn these off dynamically? Apple’s Photos app works the way I want. When showing a photo in full screen, the three dots fade away after a short time.
The answer here https://stackoverflow.com/a/70376095/1852207 turns off split screen support and disables the controls for all views. I want to hide on only some views.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,在您的视图控制器中,只需包含:
Yes, in your viewcontroller, simply include: