UIButton标题不出现或被剪切 - 最底部的标签 [英] UIButton Title does not appear or is cut - bottom most label only

查看:169
本文介绍了UIButton标题不出现或被剪切 - 最底部的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视图有一些按钮。无论我有3,4或5个按钮,问题仍然存在。最底部(具有最高的y坐标)不显示其瓦片。
通过使用坐标我发现标题是切割。有关详细信息,请参见屏幕截图。

I have a view with a number of buttons. The issue persists regardless whether I have 3, 4 or 5 Buttons. The one most bottom (with the highest y coordinate) does not show its tile. By playing around with the coordinates I found out that the title is sort of cut. See the screenshots for details.

我在这些示例之间更改的是按钮的y坐标。
它总是发生在屏幕最下方的按钮。

All that I changed between those examples are the y coordinates of the buttons. It always happens to the button most down in the screen.

其他信息:
我使用storyboard。
View层次结构:

Additional information: I am using storyboard. The View hierarchy:

- UIView (The default empty UIView that is linked to the view controller's self.view)
--- UIScrollView
------ UIImage (The background image. Deleting it does not change anything)
------ UIButton
------ UIButton
------ UIButton
-------Lots of constraints, automatically generated.


推荐答案

我没有把它归咎于它的原因。我解决的方式是删除这3个按钮,并在IB(故事板)中再次创建它们。

I did not nail it down to its reason. The way I solved it was deleting those 3 buttons and creating them again in IB (Storyboard).

这篇关于UIButton标题不出现或被剪切 - 最底部的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆