Warning frame for “Navigation bar” will be different at run time appears in Xcode 8 Swift 3

前端 未结 14 2049
别跟我提以往
别跟我提以往 2020-12-02 07:35

Before I\'ve upgraded to Xcode 8 I haven\'t seen this error in such case. I have different Navigation Controllers. For all of them I see an error Frame fo

相关标签:
14条回答
  • 2020-12-02 08:07

    I have changed from View as: iPhone 6S to iPhone 5S, then changed back to iPhone 6S, and Xcode did all the changes to remove the warning.

    0 讨论(0)
  • 2020-12-02 08:08

    Had the same issue, here's what I did to fix:

    Expand the error information and click on the warning detail. Xcode should then automatically open the dimension/position settings. Replace the current value with the value suggested in the warning details.

    Basically, make sure that the size in your runtime is the same as the size you have specified in the size inspector.

    You can also click the icon beside the image you posted (the yellow triangle with white circle. Sometimes, its a red circle icon) then there will be options to automatically fix/adjust the issues.

    I chose the update constraints option then adjusted the new constraints accordingly.

    0 讨论(0)
提交回复
热议问题