How to use a common target object to handle actions/outlets of multiple views?

前端 未结 2 1926
孤独总比滥情好
孤独总比滥情好 2021-01-03 14:08

I\'m beginning to try and use IB where previously I used code. I have created nibs for iPad/iPhone Portrait/Landscape so I have four possible views. All have files owner set

2条回答
  •  礼貌的吻别
    2021-01-03 14:15

    On the basis of interfaceOrientation you can identify the orientation and reset the frame/s of controls in xib. For more, this will guide you...

提交回复
热议问题