开发者

NSScrollView doesn't work xcode 4

开发者 https://www.devze.com 2023-03-29 11:41 出处:网络
I made an nsscrollview in the interface builder of xcode 4 and i put buttons inside of it\'s view. The scrollview is clipping the content of the view instead of scrolling it. How come it won\'t s开发者

I made an nsscrollview in the interface builder of xcode 4 and i put buttons inside of it's view. The scrollview is clipping the content of the view instead of scrolling it. How come it won't s开发者_如何学Pythoncroll?


You'll need to:

  • Make sure the buttons are inside the scroll view's content view.

  • Make sure that the content view is large enough that it'll scroll. If it's the same size as the scroll view, or smaller, it won't scroll. A scroll view is meant to display a portion of a larger view; if the whole view is already displayed, there's no reason to do any scrolling.

0

精彩评论

暂无评论...
验证码 换一张
取 消