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

27,127

Solution 1

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.

Solution 2

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.

Share:
27,127
sohail059
Author by

sohail059

Updated on February 14, 2020

Comments

  • sohail059
    sohail059 over 4 years

    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?