NSImageView and resizing of window

后端 未结 1 926
情歌与酒
情歌与酒 2021-01-12 01:11

I have a Cocoa application. In the window\'s view I have placed an NSImageView. Using auto layout I have added leading and trailing spaces in such a way that the NSImageView

相关标签:
1条回答
  • 2021-01-12 01:48

    The image view's compression resistance priority is higher than NSLayoutPriorityWindowSizeStayPut (500). So, the image view's resistance to being compressed prevents the window from resizing.

    Lower that resistance priority.

    0 讨论(0)
提交回复
热议问题