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

iosios7iphoneobjective cxcode

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?

Best Answer

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.