diff --git a/objc-speaking-grandma/FISAppDelegate.m b/objc-speaking-grandma/FISAppDelegate.m index 99c424e..058ffdc 100644 --- a/objc-speaking-grandma/FISAppDelegate.m +++ b/objc-speaking-grandma/FISAppDelegate.m @@ -13,6 +13,31 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( */ + NSString *talkToGrandma = @"HI, GRANDMA!"; + NSString *shoutAtGrandma = [talkToGrandma uppercaseString]; + BOOL shouting = [talkToGrandma isEqualToString: shoutAtGrandma]; + + talkToGrandma = @"Hi, Gradnma!"; + shoutAtGrandma = [talkToGrandma uppercaseString]; + + if (shouting) { + NSLog(@"NO, NOT SINCE 1938!"); + } else { + NSLog(@"WHAT'S THAT? SPEAK UP, DEAR!"); + } + + 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. }