我正在尝试为某些按钮添加边框。这是我尝试的:
[areaButton setBorderWidth:1.0f];
[areaButton setBorderColor:[UIColor whiteColor]];
但我得到这些错误:
No visible @interface for 'UIButton' declares the selector 'setBorderWidth'
No visible @interface for 'UIButton' declares the selector 'setBorderColor'
我在做什么错,该如何解决?
[areaButton.layer setBorderWidth:1.0f];
[areaButton.layer setBorderColor:[UIColor whiteColor].CGColor];
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句