Xcode 9 - “Fixed Width Constraints May Cause Clipping” and Other Localization Warnings

后端 未结 13 1172
失恋的感觉
失恋的感觉 2020-11-27 10:33

I downloaded the new Xcode and in Interface Builder I\'m having a ton of problems with warnings that say things like:

Fixed Width Constraints May Caus

13条回答
  •  臣服心动
    2020-11-27 11:23

    To Fix The Error: Fixed Width Constraints May Cause Clipping” and Other Localization You need to select the view/object, go to the "Show Size Inspector", find the Width Constraint and set the Constant to Greater or Equal to:



    To Fix The Error: Leading/Trailing constraint is missing which may cause overlapping with other views

    This means that the view/object Xcode is complaining about, is missing a Leading or Trailing Constraint to a neighboring view.

    While holding control, drag to a near by view/object



    Add a Leading or Trailing Constraint

提交回复
热议问题