I want to get rid of the inner shadow of an UITextField
.
I have tried setting the shadow-alpha to 0
but it doesn't work:
name.layer.shadowOpacity = 0.0f;
Any clues would be appreciated.
Solution found.
name.borderStyle = UITextBorderStyleNone;
name.layer.borderWidth = 1.0f;
name.layer.borderColor = [[UIColor grayColor] CGColor];
name.layer.cornerRadius = 5.0f;
I just needed to play with the border options of the layer while deactivating the old border-style.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With