Prevent Interface Builder from auto creating Constraints?

后端 未结 2 1399
忘掉有多难
忘掉有多难 2021-01-18 03:20

I created a demo project here. I have a view where I created a ScrollView in a .xib file. In interface builder I did not set any constraints. In my viewDidLoad method I set

2条回答
  •  旧时难觅i
    2021-01-18 03:34

    How can I prevent Interface Builder from auto generating constraints?

    Simplest way: select the nib or storyboard in the project navigator, go to the File inspector, and uncheck "Use Auto Layout".

提交回复
热议问题