i want to restrict user from entering space in a UITextField. for this i m using this code
- (BOOL)textField:(UITextField *)textField shouldChangeCharacters
The problem is
string == @" "
is wrong. Equality for strings is done using:
[string isEqualToString:@" "]
:).