问题描述
- ios-设置十六进制颜色给边框
-
UIColor *bgcolour = [BackgroundLayer colorWithHexString:@"F13982"]; textField.layer.borderColor=[[UIColor colorWithCGColor:(__bridge CGColorRef)(bgcolour)] CGColor];
怎么给Textfield边框设置UIColor对象做背景颜色?
解决方案
UIColor *bgcolour = [BackgroundLayer colorWithHexString:@"F13982"];
textField.layer.borderColor=[bgcolour CGColor];
时间: 2025-01-02 15:04:50