how to set a hex color to textfield border in ios

Mano picture Mano · May 16, 2013 · Viewed 7.6k times · Source
UIColor *bgcolour = [BackgroundLayer colorWithHexString:@"F13982"];
textField.layer.borderColor=[[UIColor colorWithCGColor:(__bridge CGColorRef)(bgcolour)] CGColor];

Can anyone say how to set the UIColor object "bgcolor" to the Textfield border?

Answer

Rajneesh071 picture Rajneesh071 · May 16, 2013
textField.layer.borderColor= bgcolour.CGColor;