[英]Cut text in iPhone simulator with UIRoundRectButton- unlike what I see in storyboard
I am creating a simple calculator app, following the tutorials from Stanford - first assignment . 我正在按照斯坦福大学的初次分配的教程创建一个简单的计算器应用程序。
The actual content is not that relevant, the only issue is that I have a UIRoundRectButton in the storyboard, which displays a fixed text (like "sqrt"). 实际的内容并没有那么重要,唯一的问题是我在情节提要中有一个UIRoundRectButton,它显示固定的文本(例如“ sqrt”)。 When I run it in the simulator (iPhone 5, iOS 6) - the text in SOME of the buttons gets cut off.
当我在模拟器(iPhone 5,iOS 6)中运行它时,某些按钮中的文本被截断。
Screenshots: 屏幕截图:
Any help? 有什么帮助吗?
It looks to me like you're designing on a 4 inch xib but running on the 3.5 inch simulator, Autolayout will be pinning your lower buttons to the bottom of the screen and they will be getting squashed. 在我看来,您在4英寸xib上进行设计,但在3.5英寸模拟器上运行,则Autolayout会将您的下部按钮固定在屏幕底部,并且将被压扁。 Try one of:
尝试以下方法之一:
Those tutorials were written before Autolayout and the 4 inch display. 这些教程是在自动版式和4英寸显示屏之前编写的。 You probably just want to focus on the tutorial content at this stage, so the last option is probably too much, but I have a blog post here discussing editing constraints in IB.
您可能只想在此阶段专注于教程内容,所以最后一个选择可能太多了,但是我在这里有一篇博客文章讨论了IB中的编辑约束。
请取消选中XIB的“显示文件检查器”下的“使用自动版式”选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.