简体   繁体   中英

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

按钮未选中

Selected state (should display Ace of clubs)

在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM