文本在故事板中显示正常,但在 iPhone 模拟器上被截断 - XCode 11.7
Text appears normal in storyboard but is being cut off on iPhone simulator - XCode 11.7
我正在学习在 https://github.com/appbrewery/Flash-Chat-iOS13
找到的教程
但是当我克隆项目,并在情节提要中设置主页时it looks like this
然而,当我 运行 模拟器时,它看起来像“FlashC...” as shown here.
These are the settings on the sidebar
And here are the constraint settings
在我理解为什么会发生这种情况之前我无法继续,但 Google 显然以前从未听说过这个问题。
发生这种情况是因为 text/logo 对于 iPhone 屏幕来说太大了(我假设是 iPhone SE 或类似屏幕)
您可以看到,在故事板预览中选择 iPhone SE 时,会发生同样的情况:here
这里的问题是从 Leading 到 Superview(左间距)对齐 Logo 52 有一个约束,您可以通过将其更改为大于或等于 33(33 就足够)来解决它。像这样:
我正在学习在 https://github.com/appbrewery/Flash-Chat-iOS13
找到的教程但是当我克隆项目,并在情节提要中设置主页时it looks like this
然而,当我 运行 模拟器时,它看起来像“FlashC...” as shown here.
These are the settings on the sidebar
And here are the constraint settings
在我理解为什么会发生这种情况之前我无法继续,但 Google 显然以前从未听说过这个问题。
发生这种情况是因为 text/logo 对于 iPhone 屏幕来说太大了(我假设是 iPhone SE 或类似屏幕)
您可以看到,在故事板预览中选择 iPhone SE 时,会发生同样的情况:here
这里的问题是从 Leading 到 Superview(左间距)对齐 Logo 52 有一个约束,您可以通过将其更改为大于或等于 33(33 就足够)来解决它。像这样: