gpt4 book ai didi

ios - 如何在 Xcode Interface Builder 中显示占位符背景?

转载 作者:可可西里 更新时间:2023-11-01 03:20:53 25 4
gpt4 key购买 nike

如何在 Xcode 7 的 Interface Builder 中设置和显示自定义占位符背景?

此功能是 added in Xcode 7 , 但我无法设置它。

Background placeholders on custom views and other containers can be hidden on the Interface Builder canvas by selecting Editor > Canvas > Show Background Placeholders. (20580948)

我已经启用但没有任何改变,而且我找不到可以设置自定义占位符图像的位置:

Xcode's Editor menu's Canvas submenu expanded, with "Show Placeholder Backgrounds" checked

最佳答案

几年后,Xcode 10 仍然没有提供您当时想到的任何灵 active 😐

来自 Xcode 10 文档:

Use placeholder backgrounds to identify image views, MapKit views, MetalKit views, GLKit views, and SceneKit views. Hide the placeholder backgrounds to focus on the content of your own views.

Choose Editor > Canvas > Show Placeholder Backgrounds to toggle showing placeholder backgrounds for certain types of views on the Interface Builder canvas.

该功能实际上仅限于 Apple 的一些内置 View (甚至那些蓝色背景颜色仍然几乎是硬编码的 View )。

关于ios - 如何在 Xcode Interface Builder 中显示占位符背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32136379/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com