简体   繁体   English

Universal Storyboard Preview-似乎无法正常工作?

[英]Universal Storyboard Preview - doesn't seem to work properly?

i have created a Storyboard where i create universal views for all iphones in portrait form. 我创建了一个Storyboard,在其中我以肖像形式为所有iPhone创建通用视图。 Simple views work just great, but as soon as you add different views and sub element something goes wrong. 简单的视图效果很好,但是一旦添加不同的视图和子元素,就会出问题。 Can someone give me some tips what i am doing wrong? 有人可以给我一些提示我做错了什么吗?

在此处输入图片说明

I will be thankful for every kind of tips/advises how to get rid of this annoying view... 我将感谢各种技巧/建议,以摆脱这种烦人的观点...

Have a nice sunday! 周日愉快!

I found out the solution, the problem is that you can set all the measures in percent. 我找到了解决方案,问题是您可以按百分比设置所有度量。 But for to count all the sizes, XCode needs minimum 1 measure for width & height. 但是要计算所有大小,XCode至少需要1个宽度和高度度量。 If it gets the size of single element in your design, it can calculate all other sizes. 如果它获得设计中单个元素的大小,则可以计算所有其他大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM