Jon*_*an. 23 iphone objective-c uibutton programmatically-created
我有一个UIButton我在IB中添加的,但是这个按钮后面的视图会改变颜色,我需要在InfoDark和InfoLight之间切换按钮的类型.但奇怪的是,buttonType财产是只读的.那么如何在明暗信息按钮之间切换?
you*_*nei 53
你不能设置buttonType readonly属性,使用下面可能有帮助:
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
| 归档时间: | 
 | 
| 查看次数: | 39936 次 | 
| 最近记录: |