从 UISplitViewController 中删除分隔线

发布于 2024-08-30 03:25:00 字数 237 浏览 3 评论 0 原文

伙计们,我知道存在类似的问题,但该线程似乎不活跃,我真的希望回答这个问题。这已经让我烦恼了好几天了。

我想知道如何删除 UISplitViewController 中主视图和详细视图之间的分隔线。我知道可以删除/隐藏/覆盖它,因为我在商店中看到一些应用程序没有该线。

我尝试在我的视图上将backgroundColor设置为clearColour,但无济于事。所以SO社区,你是我唯一的希望!

Guys, I know a similar question exists but the thread seems to be inactive, and I really would like this question to be answered. It's been annoying me for a few days now.

I'm wondering how to remove the divider line between the Master and Detail view in the UISplitViewController. I know its possible to remove/hide/cover it up because I see some apps in the store without that line.

I have tried setting backgroundColor to clearColour on my views but to no avail. So SO community, you're my only hope!

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

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

发布评论

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

评论(3

鼻尖触碰 2024-09-06 03:25:00

相反,它看起来不像 UISplitviewer,您可以拥有自己的视图。例如,您可以在视图控制器中拥有 2 个视图,您可以在其中应用视图所需的设计。

It doesnt look a UISplitviewer instead, you can have own views. For example, you can have 2 views in a view controller, where you can apply the design you needed for the views.

北城半夏 2024-09-06 03:25:00

已记录的 API 中没有任何内容允许您执行此操作。它主要是使用 UIImageView 来处理图像以处理该行。

There is nothing in the documented API that allows you to do this. It's mostly playing around with images using an UIImageView to work with that line.

赤濁 2024-09-06 03:25:00

实际上,您无法删除主视图和详细视图之间的分隔线。如果要隐藏任意一个视图,可以将视图的高度和宽度设置为0,0,这样另一个视图将完全占据屏幕

Actually you can't remove the divider between the master and detail view. If you want to hide any one of the view, you can make the view height and width as 0,0 so that the other view will fully occupy the screen

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