X code 6 Interface Builder的速度很慢的性能与显示约束viewcontrollers时 [英] xcode 6 interface builder very slow performance when showing viewcontrollers with constraints
问题描述
我有X code 6真的响应速度很慢到用户交互,例如一个问题编辑code,滚动区等等,当界面生成器显示在故事板制约视图控制器这尤其会发生(4/14 VCS有限制,我刚刚开始项目),额外的我使用额外的显示器。
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 show the view controllers with constraints in the storyboard (4/14 vcs has constraints i just begin the project) additional i use extra monitor.
我不知道是否有什么我可以做,以提高性能改变x code选项或其他方式。
I'm wondering if there is anything I can do to improve performance changing xcode options or other way.
我的机器是一个的MacBook Pro的Retina(视网膜,15英寸,2013晚期)与2.3GHz的英特尔酷睿i7和16 GB RAM(1600 MHz的DDR3),运行OSX 10.9.5(小牛)。
My development machine is a MacBook Pro Retina (Retina, 15-inch, Late 2013) with 2.3Ghz Intel Core i7 and 16 GB RAM (1600 MHz DDR3), running OSX 10.9.5 (Mavericks).
推荐答案
我有同样的问题,在性能外接显示器上一落千丈。
I had this same problem where performance plummeted on an external display.
我最终发现是,外接显示器问题已表明有是界面生成器不能完全弄清楚正确的自动布局一个UIView。
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.
在我的情况下,它是一个 UIToolbarBarItem
包含一个的UIView
包含一个的UILabel
。一旦我删除了违规 UIToolbarBarItem
性能问题自行解决。它被完全无法使用,以平滑滚动了。
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.
您应该检查是否有内在的东西,可能会造成自动布局发飙了一个UIView。
You should check if you have a UIView inside something that might cause auto-layout to freak out.
这篇关于X code 6 Interface Builder的速度很慢的性能与显示约束viewcontrollers时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!