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

后端 未结 6 1007
时光说笑
时光说笑 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:52

    For those who struggle like me to set constraints between the document view and the clip view: Make sure the clip view is set to automatic layout. For mysterious reasons, it is not set to automatic by default (at least with Xcode 11). Cfr screenshot of the size inspector below.

提交回复
热议问题