IOS 7: Slow Motion Frame for Label-to-Label Will Be Different at Runtime

I just finished the application on iOS 6 and bought a developer account a week ago, so there wasn’t much time playing with the iOS 7 SDK. Just downloaded the Golden Master version and tried to update my application for compatibility with iOS 7.

I got a lot of warnings saying

The slow-motion frame for the "Label-Label" at runtime will be different.

and I can not start the program. The project contains a tableview, and its parsing and displaying the XML feed from RSS.

How to fix this problem?

+62
ios nslayoutconstraint ios7 storyboard uistoryboard
Sep 12 '13 at 7:32 on
source share
5 answers

I had the same problem and got the below Apple response form:

You need to update the constraints to fit the scope of these views.

I have done the following:

Editor -> Troubleshooting Auto Layout -> Clear All Limitations in the View Controller

then I reorder the objects in the view.

PS: try the Enrico solution first.

+42
Sep 12 '13 at 8:03
source share

The accepted answer will fix the problem, but this is not a good solution, because it will remove all your limitations. If you have spent hours on restrictions, do not do this.

If you click the triangle next to the warning, you can get an explanation of what is inappropriate. Then you can simply move the frame to where it should be. For example:

enter image description here

In this case, I moved the position of Text View y to 94 and the warning disappears. This is due to the fact that one of my limitations will force the view to be somewhere else when the application is running, but the position is different from where it is currently in the storyboard.




Another way to move the frame to the desired position is to click the warning next to the View Controller name in your storyboard, and then click the yellow warning sign and click the update frame.

enter image description here

enter image description here

These two methods are not destructive and will not remove your limitations. If anything shows that you may need to make minor adjustments to your limitations.

+137
Jan 18 '14 at 1:48
source share

I had the same problem that you need to update the constraints or update the frame. On the storyboard, you have a small toolbar, as shown in the image below. enter image description here

See meaning: -

enter image description here

You can select "Update Frames" or "Update Constraints" and use "Reset for Possible Constraints". This will solve the problem associated with the incorrect view. Do not drag views to make adjustments to the layout. Edit the applicable restrictions. Please let me know if you do not understand.

+9
Dec 26 '13 at 15:54
source share

If you have trouble finding Refresh frames in xCode, you can do this like this:

enter image description here

+5
Aug 22 '15 at 13:07 on
source share

None of the answers work in all cases. Starting with the latest version of Xcode, using the UISearchBar, the resolution scope field included in IB makes the search field double (but does not show the view pane below it). Regardless of whether you add a height limit (of any height) to the search field, you will receive a warning that this is a misconception, which will be 88 H at run time, but is 44 H in IB. Updating frames (any or all frames) does not allow it. Sounds like an error in IB.

+2
Jan 29 '15 at 20:26
source share



All Articles