简体   繁体   English

UIButton在iOS7中似乎没有选定的州名?

[英]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. 此错误仅出现在iOS7中 - 我无法设置UIButton以显示其选定状态。 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更改为“ Custom System option corresponds to the UIButtonTypeSystem , which has a default styling built in. System选项对应于UIButtonTypeSystem ,它具有内置的默认样式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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