LoginSignup
15
14

More than 5 years have passed since last update.

Xcode5 で Constraints が使えなくなってしまった時の対処法

Posted at

AutoLayout を有効にすると、 Constraints を設定できるようになりますが、

The selected views have no constraints. At build time explicit left, top, width, and height constraints will be generated for the view.

と表示されて設定できないことがあります。
こんなときは、まず該当の View Controller (scene) を選択してから、メニューの

Editor > Resolve Auto Layout Issues > Add missing constraints

を選択すると Constraints が復活します。

15
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
14