The following statement compiles fine:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
if ([textField ==_telField]) {
}
However, the following statement throws the error: Expected Identifier
if ([textField ==_telField] || [1==1]) {
}
It throws an identical error if [1==1] is replaced by [textField==_mobField]
Can anyone explain what is going on here and whether it is possible to chain multiple OR conditionals in a row here?
Thanks in advance for any insights.
Aucun commentaire:
Enregistrer un commentaire