4

我在 Mountain Lion 上测试我的应用程序,现在在我的 scrollView 上执行“setDocumentView”后,我的文档视图中没有显示任何内容。如果我删除“setDocumentView”,则显示 docView 的子视图,但显然我无法控制滚动。

知道他们改变了什么或为什么会这样吗?

4

1 回答 1

1

I was working on an IKImageView in a NSScrollView myself for some hours now. Adjusting the size of the document was not enough at all. But it works also fine under Mountain Lion. All I had to do was:

scroller.hasVerticalScroller = YES;
scroller.hasHorizontalScroller = YES;
于 2012-08-03T15:51:01.233 回答