从system
更改为Custom
然后尝试,
[UIButton buttonWithType:UIButtonTypeCustom];
我没有在所有状态下都输入任何单词(包括空格),我将颜色设置为白色,但效果很好,我认为这可能是由于自动布局引起的。
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.