在 InterfaceBuilder 中,我通过简单地从“库”面板拖动到我的 View 中来创建最简单的 UIButton。完成此操作后,我得到了一个漂亮的 UIButton,如下所示:
Pretty image http://img683.imageshack.us/img683/760/screenshot20100410at111g.png
当我在模拟器中预览或在 iPad 设备上查看时,我的 UIButton 下方有一条线,如下所示:
Ugly image http://img532.imageshack.us/img532/8863/screenshot20100410at111.png
还有人遇到这个问题吗?有人解决了吗?
最佳答案
这是设计使然。无论如何,iPad 的 UI 与 iPhone 不同。
如果您不需要阴影,请创建自定义(可拉伸(stretch))背景图像。
关于iphone - UIButton 在 InterfaceBuilder 中看起来不错,但在 iPad sim 或设备上则不然,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2614214/