NSView's autoresizing behavior

后端 未结 2 982
借酒劲吻你
借酒劲吻你 2020-12-28 12:00

I need to understand how NSView autoresizes it\'s views. I\'ve set everything up in IB and my subviews resize nicely (when I resize my window around with a mouse). However,

2条回答
  •  暖寄归人
    2020-12-28 12:50

    Turns out my approach is correct. I was setting the frame size to an incorrect value, thus I wasn't getting the expected behavior. Doh.

提交回复
热议问题