Xcode - Storyboard views size and position modified when opening

馋奶兔 提交于 2019-12-01 03:02:20
TomG

Xcode saves the storyboard layout information in an XML file (.storyboard). So any changes on the storyboard will be reflecected in that XML. Especially if you work with teammates this information might change regularly. You can try it out by moving around some items (don't change anything else) and after that start a diff with your git repository. You should see again a change in the XML. You could ignore the storyboard file in your git checkout. But this wouldn't make much sense as your teammates may have added new items to the storyboard.

Maybe this helps as well: [Xcode changes unmodified storyboard and XIB files

If I understand the first answer correct other changes might also trigger a change on the storyboard XML file.

regards Thomas

I have the same problem. Do you resolved it? How?

This is my solution:

  1. Currently I use Xcode Version 6.1.1 (6A2008a)
  2. I download Xcode 6.3 beta 2 Build: 6D532l
  3. Open project in Xcode 6.3 beta 2
  4. Xcode 6.3 beta 2 will modify storyboard: add some fields and change some values
  5. Run project to check Application appearance
  6. Close project
  7. Open with Xcode Version 6.1.1 (6A2008a)
  8. Check changes (In my case Xcode Version 6.1.1 (6A2008a) do not decline changes by Xcode 6.3 beta 2)
  9. Run (Issue seems resolved)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!