I have a project that is xcode 4.6.3, and I inadvertently opened the project in xcode 5. There was a xib open, and so it changed it to default to ios7. I already changed it to open with xcode 4.6 in the interface builder section so that isn't the problem. The problem is that xcode 5 changed the UI so that now the labels and buttons do not show on the XIB. I can see them in the object explorer, but clicking on them does not bring them into focus on the XIB. How can I make them show on the screen again?
我有一个项目是xcode 4.6.3,我不小心在xcode 5中打开了这个项目。有一个xib打开,因此它将它更改为默认的ios7。我已经在interface builder一节中用xcode 4.6将它更改为open,所以这不是问题所在。问题是xcode 5更改了UI,所以现在标签和按钮不会显示在XIB上。我可以在object explorer中看到它们,但是单击它们并不会将它们集中到XIB上。我怎样才能让它们再次出现在屏幕上呢?
1 个解决方案
#1
1
This happened to me too. Check the X and the Y frame values for your labels, buttons, etc. For me they were set to crazy values like -1543 for some reason. I haven't figured out why yet. But if you change the X and Y values back to something within the view's frame, they'll show up. Hope this helps.
这也发生在我身上。检查你的标签,按钮等等的X和Y帧值。对我来说,它们被设置为疯狂的值,比如-1543,因为某些原因。我还不知道为什么。但是如果你把X和Y的值改变到视图的框架内,它们就会出现。希望这个有帮助。
#1
1
This happened to me too. Check the X and the Y frame values for your labels, buttons, etc. For me they were set to crazy values like -1543 for some reason. I haven't figured out why yet. But if you change the X and Y values back to something within the view's frame, they'll show up. Hope this helps.
这也发生在我身上。检查你的标签,按钮等等的X和Y帧值。对我来说,它们被设置为疯狂的值,比如-1543,因为某些原因。我还不知道为什么。但是如果你把X和Y的值改变到视图的框架内,它们就会出现。希望这个有帮助。