Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIButton background color becomes white when running on iOS6

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.

This is how the button look like when running on iOS7

enter image description here

And this is how the buttons look like when running on iOS6

enter image description here

like image 727
K Hsueh Avatar asked Jan 24 '14 05:01

K Hsueh


2 Answers

enter image description here

Make your button Custom instead or System or RoundRect

like image 76
पवन Avatar answered Nov 12 '22 23:11

पवन


Change the button type to custom button in Interface builder.

like image 5
Vaisakh Avatar answered Nov 12 '22 22:11

Vaisakh