Xcode - Storyboard views size and position modified when opening

前端 未结 2 1269
醉梦人生
醉梦人生 2021-01-08 00:53

I noticed something very annoying with Xcode: I have some storyboards for which certain views size & position are systematically updated when I open them. This is annoyi

相关标签:
2条回答
  • 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

    0 讨论(0)
  • 2021-01-08 01:31

    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)
    0 讨论(0)
提交回复
热议问题