'NSInvalidArgumentException', reason: 'Unable to parse constraint format'

前端 未结 4 1330
梦如初夏
梦如初夏 2021-01-30 16:18

I have a subview that I want to keep stops during rotating screen, so I decided to put the NSLayoutConstraint type:

Trailing Space to Superview
Top Space to Supe

4条回答
  •  爱一瞬间的悲伤
    2021-01-30 16:50

    Make sure you add the constraints after adding the required subview to your main view.It took a while get knowledge relating to this issue .

提交回复
热议问题