I have this piece of code:
if (email.text == emailComfirm.text) {
UIAlertView *emailAllertView = [[UIAlertView alloc] initWithTitle:@"Succes" message:@"Yaaay, je kan nu gebuik gaan maken van Vogelspotter." delegate:self cancelButtonTitle:@"Direct aanmelden" otherButtonTitles: nil];
[emailAllertView show];
// Doing some other code here
[self dismissModalViewControllerAnimated:YES];
}else{
NSLog(@"email: %@", email.text);
NSLog(@"email: %@", emailComfirm.text);
UIAlertView *emailAllertView = [[UIAlertView alloc] initWithTitle:@"Foutmelding" message:@"De opgegeven email adressen komen niet met alkaar overeen" delegate:self cancelButtonTitle:@"Probeer het nog eens" otherButtonTitles: nil];
[emailAllertView show];
}
somehow, no moather wath i type in the textfiels, the is statment always goes to the else, if i enter ee/ee or ee/ff. Can someone tell me what i'm doing wrong?
tnx in advance.