xcode 6 interface builder very slow performance when showing viewcontrollers with constraints

后端 未结 3 1083
囚心锁ツ
囚心锁ツ 2021-02-08 12:03

I have an problem with Xcode 6 really responding very slowly to user interactions, e.g. editing code, scrolling areas etc. This particularly happens when the interface builder s

相关标签:
3条回答
  • 2021-02-08 12:44

    I had this same problem where performance plummeted on an external display.

    What I ended up discovering was that the external monitor issue was indicating that there was a UIView that interface builder couldn't quite figure out properly for auto-layout.

    In my case it was a UIToolbarBarItem that contained a UIView that contained a UILabel. Once I removed the offending UIToolbarBarItem the performance issue resolved itself. It went from being completely unusable to smooth scrolling.

    You should check if you have a UIView inside something that might cause auto-layout to freak out.

    0 讨论(0)
  • 2021-02-08 13:00

    Do you use an external monitor? If yes, probably that's the problem. Try moving to the main macbook screen and try again.

    That solved the problem for me.

    EDIT: sorry, just read you have an external monitor. So yes, move to the main screen and check if that solves the problem.

    EDIT 2: seems like Apple fixed the problem, no more issues using my external monitor!

    EDIT 3: meh! Problem persists, not sure why it stopped happening, and happens again now.

    0 讨论(0)
  • 2021-02-08 13:04

    Wow, thanks so much guys! I was having a huge problem with Xcode being slowed to a crawl while I was modifying interface elements in the interface editor. All I had to do was uncheck "Use Auto Layout" under the .xib's File Inspector tab, and it's running faster than ever!

    So if you have any problems with Xcode's interface editor / Interface Builder being slow, just disable Auto Layout for that .xib while you're working on it, then when you're done editing the .xib, as a final step, re-enable it and add your constraints to the items.

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