Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 360
sohail059 Avatar asked Sep 04 '13 18:09

sohail059


2 Answers

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.

like image 117
Bilbo Baggins Avatar answered Sep 22 '22 09:09

Bilbo Baggins


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.

like image 44
abdus.me Avatar answered Sep 22 '22 09:09

abdus.me