Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIButton doesn't seem to have a selected state title in iOS7?

This error only appeared in iOS7 - I can't set UIButton to display it's selected state. Neither on the simulator, nor a device. Am I missing something?

Regular state

button unselected

Selected state (should display Ace of clubs)

enter image description here

like image 516
Morgan Wilde Avatar asked Oct 09 '13 12:10

Morgan Wilde


1 Answers

You have to change the button type from System to Custom. System option corresponds to the UIButtonTypeSystem, which has a default styling built in.

like image 70
Arek Holko Avatar answered Nov 14 '22 23:11

Arek Holko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!