I wonder why the buttons of my iPhone app is not displaying properly when running on an iOS 6 device. I have set the buttons' background color to a blue color in Interface builder. However, when running on iOS 6 the buttons background became white.
我想知道为什么我的iPhone应用程序的按钮在iOS 6设备上运行时无法正常显示。我在“界面”构建器中将按钮的背景颜色设置为蓝色。但是,在iOS 6上运行时,按钮背景变为白色。
This is how the button look like when running on iOS7
这就是在iOS7上运行时按钮的样子
And this is how the buttons look like when running on iOS6
这就是在iOS6上运行时按钮的样子
2 个解决方案
#1
32
Make your button Custom
instead or System
or RoundRect
将您的按钮改为Custom或System或RoundRect
#2
5
Change the button type to custom button in Interface builder.
在“界面”构建器中将按钮类型更改为自定义按钮
#1
32
Make your button Custom
instead or System
or RoundRect
将您的按钮改为Custom或System或RoundRect
#2
5
Change the button type to custom button in Interface builder.
在“界面”构建器中将按钮类型更改为自定义按钮