I need QuartzCore.framework to add borderColor to a textfield, how?
Asked
Active
Viewed 8,987 times
10
-
8`import QuartzCore` should do the trick... – CodaFi Oct 11 '14 at 21:38
-
@CodaFi Indeed it does. Thanks :) – Supertecnoboff Oct 23 '15 at 14:20
1 Answers
13
If you imported UIKit you don't need to import QuartzCore. Here is code
let textField = UITextField()
textField.layer.borderColor = UIColor.redColor().CGColor

mustafa
- 15,254
- 10
- 48
- 57