简体   繁体   English

如何在Xcode中隐藏注释面板

[英]How to hide a Annotation Panel in Xcode

I have downloaded the PDF Annotation Editor code and I want to invisible the Annotation panel when the window loaded. 我已经下载了PDF注释编辑器代码,并且希望在加载窗口时不显示“注释”面板。 I have tried to search for a Hide method but I couldn't find it. 我试图搜索一种Hide方法,但找不到。

Here is original code: 这是原始代码:

AnnotPanel = [AnnotationPanel sharedAnnotationPanel];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(annotationChanged:) 
        name: AnnotationPanelAnnotationDidChangeNotification object: annotPanel];

我得到了解决方案:

[AnnotPanel OrderOut:self];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM