Enabling NSScrollView to scroll its contents using Auto Layout in Interface Builder

后端 未结 6 1020
时光说笑
时光说笑 2021-01-02 14:17

I have implemented a custom NSView which contains many NSTextFields and other NSViews. I then embedded that custom view in a scroll vi

6条回答
  •  臣服心动
    2021-01-02 14:58

    Building on the answer from Ken Thomases, with Swift 4, one can add flipped as a User-Defined attribute to NSClipView, to pin the contents to the top of the scrollview.

提交回复
热议问题