iphone - Cococa Touch - Verifying each character inputed -
I have to type a user in something and I want to check each character. How could I do this? I want to be in real time. So it was confirmed as typing and color is coded.
You can compare what I would like to do with programmer IDE, as if you check syntax when typing it.
Any help is appreciated!
Connect an app representative to the utfitted delegate and do something like this:
< Code> - (BOOL) textField: (UITextField *) textField shouldChangeCharactersInRange: (NSRange) Category Replacement String: (NSString *) string {if ([string isEqual: @ "b"]) {// User typed 'b' // Insert the string with a specific color // [...]} and / the user has been typed some more // without any specific color textField.text = [textField.text string barrier replacing room. WithString: string]; } Yes return; }
Comments
Post a Comment