[英]UIButton Title does not appear or is cut - bottom most label only
我有一个带有许多按钮的视图。 无论我有3个,4个还是5个按钮,问题仍然存在。 最底部的一个(具有最高y坐标)不显示其图块。 通过玩坐标我发现标题有点切割。 有关详细信息,请参见屏幕截图
我在这些例子之间改变的只是按钮的y坐标。 它始终出现在屏幕最下方的按钮上。
附加信息:我正在使用故事板。 视图层次结构:
- 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.
尝试将标题从Plain
更改为Attributed
,以用于遇到此问题的所有UIButton。 然后你可以将它们改回Plain
,它应该解决这个(奇数)问题。
我没有说明原因。 我解决它的方法是删除这3个按钮并在IB(故事板)中再次创建它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.