Created
January 2, 2016 15:04
-
-
Save cjazz/84a36661574016cda85b to your computer and use it in GitHub Desktop.
Set Required Text Fields - Red
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set Required TextField red on the outside | |
// Simple Implementation: | |
// 1. Set a property for UITextField, ex: textField | |
// 2. in ViewWillAppear call [self setRequiredTextFieldStyle:self.textField]; | |
-(void)setRequiredTextFieldStyle:(UITextField*)textField | |
{ | |
textField.layer.shadowColor = [UIColor redColor].CGColor; | |
textField.layer.shadowRadius = 4.0; | |
textField.layer.shadowOpacity = 0.9; | |
textField.layer.shadowOffset = CGSizeZero; | |
textField.layer.masksToBounds = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment