Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iOS - Am I making a silly if statement error? I think i'm losing the plot
- - (IBAction)loginButton:(id)sender {
- NSString *username = usernameField.text;
- NSString *password = passwordField.text;
- if(username == @"test")
- {
- [self performSegueWithIdentifier:@"loginSegue" sender:sender];
- }
- else{
- NSLog(@"NOT PERFORMING SEGUE! USERNAME: %@ -- PASSWORD: %@", username, password);
- }
- }
- [username isEqualToString@"test"];
Add Comment
Please, Sign In to add comment