diff --git a/objc-speaking-grandma/FISAppDelegate.m b/objc-speaking-grandma/FISAppDelegate.m index 13dce12..d4a1055 100644 --- a/objc-speaking-grandma/FISAppDelegate.m +++ b/objc-speaking-grandma/FISAppDelegate.m @@ -24,6 +24,27 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( */ + NSString *talkToGrandma = @"HI, GRANDMA!"; + NSString *shoutAtGrandma = [talkToGrandma uppercaseString]; + BOOL shouting = [talkToGrandma isEqualToString:shoutAtGrandma]; + + talkToGrandma= @"Hi, Grandma!"; + shoutAtGrandma = [talkToGrandma uppercaseString]; + + if (!shouting) { + NSLog(@"WHAT'S THAT? SPEAK UP, DEAR!"); + } else { + NSLog(@"NO, NOT SINCE 1938!"); + } + + if (![talkToGrandma isEqualToString:shoutAtGrandma]) { + NSLog(@"WHAT'S THAT? SPEAK UP, DEAR!"); + } else { + NSLog(@"NO, NOT SINCE 1938!"); + } + + + return YES; // Don't alter this statement. }