MaysamSh

Untitled

Feb 11th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
  2. {
  3.     NSString *newString = [textField.text stringByReplacingCharactersInRange:range withString:string];
  4.     textField.text = [NSString stringWithFormat: @" %@", textField.text];
  5.     NSLog(@"%@",newString);
  6.     return YES;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment