Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 PDFView 的“背景”视图上写一条短信,通常是“在此处拖放 PDF”。背景视图是指未设置 PDF 文档时显示的哑光灰色视图。
根据文档,我只能使用更改背景颜色(默认为灰色)
(void)setBackgroundColor:(NSColor *)newColor
知道如何实现吗?
提前致谢。
根据 Willeke 的回答,我能够使用 Z 索引在我的 PDF 视图上放置一个标签。
在界面生成器中,列表中的项目越低,z 索引越高。因此,在我的示例中,我将标签拖放到 PDFView 下。注意:您需要启动应用程序才能看到结果,预览不会显示标签。