Created
September 29, 2012 01:39
-
-
Save hhyyy9/3802869 to your computer and use it in GitHub Desktop.
当开始输入文字以及完成文字输入时,变换text field的背景。
This file contains 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
-(BOOL) textFieldShouldBeginEditing:(UITextField *)textField{ | |
[textField setBackground:[UIImage imageNamed:@"ctext_field_02.png"]]; | |
return YES; | |
} | |
-(void) textFieldDidEndEditing:(UITextField *)textField{ | |
[textField setBackground:[UIImage imageNamed:@"ctext_field_01.png"]]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment