简体   繁体   中英

Xcode 5 – iOS 7– Has no constraints in Storyboard Based Application?

Am getting the following message in Storyboard based application(ios & and xCode 5) “The selected views have no constraints. At build time explicit left, top, width, and height constraints will be generated for the view.”

在此处输入图片说明 .

In Xcode 5, interface builder will not add any constraints automatically. You could add the required constraints manually. In the bottom of window there is an option for that. You can choose Add Missing constraints or Reset to Suggested constraints . Otherwise add each constraints one by one.

在此处输入图片说明

Either add some constrains or untick "Use Auto Layout" from "File inspector"

在此处输入图片说明

Image taken from here .

First of all you have to add constraints to the image. For that click the 2nd button from the left (4 set of buttons), that is in bottom right corner of your screen shot. I think you get it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM