【发布时间】:2012-11-06 14:37:41
【问题描述】:
我有一个带有许多按钮的视图。无论我有 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.
【问题讨论】:
-
您是在 Interface Builder 中还是在代码中进行布局?您可以发布代码/图片视图层次结构(即IB左侧的树)吗?
-
@HampusNilsson,我在问题中添加了信息。
标签: iphone objective-c cocoa uibutton storyboard