I\'m just learning how to code so thanks for your patience on this simple question.
Here\'s my code:
- (IBAction)buttonWasPressed:(id)sender {
The better way to compare string is:
NSString *string1 = ; NSString *string2 = ; if ([string1 caseInsensitiveCompare:string2] == NSOrderedSame) { //strings are same } else { //strings are not same }