NSString *NumberToSave = Number.text;
NSString *PassToSave = Password.text;
NSString *PassVerify = VerifyPassword.text;
// Save Settings
NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults];
NSString *tmpNum = [standardUserDefaults stringForKey:@"Number"];
if (tmpNum) {
}else{
if ([PassToSave isEqualToString:PassVerify]){
[standardUserDefaults setObject:NumberToSave forKey:@"Number"];
[standardUserDefaults setObject:PassToSave forKey:@"Password"];
[standardUserDefaults synchronize];
}else{
PassLabel.text = @"Password: Please enter passwords again.";
}
}
The app just ends if i type in nothing in the PassVerify textbox why is this ?
Thanks
Mason