简体   繁体   中英

How to Remove the Warning “Frame for Button will be different at run time.”

I am using Xcode 5 developer preview. When I change or add a in the XIB file from interface builder Xcode shows this warning:

Frame for Button will be different at run time.

How do I remove this warning?

This warning is displayed when the actual position of the element is different in your storyboard than while running the app.

You can select that element and then hit Option + Cmd + = .

This will update the position of the element in the storyboard and that warning will go away.

You can also find this option in menu under Editor > Resolve Auto Layout Issues > Update Frames .

Probably you have created a conflict in constraints. To resolve it Open nib file Go to editor > Resolve all constraint issues> from there you can reset all/desired constraints.

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