From 01d490f7e47826d38fc9b28dcbd396eac9c3eb2a Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 Aug 2016 14:34:12 -0400 Subject: [PATCH] Practicing NSLog Function --- objc-interpolate.xcodeproj/project.pbxproj | 10 +++-- objc-interpolate/FISAppDelegate.m | 47 ++++++++++++++++++++++ 2 files changed, 53 insertions(+), 4 deletions(-) diff --git a/objc-interpolate.xcodeproj/project.pbxproj b/objc-interpolate.xcodeproj/project.pbxproj index f4883a9..b77bea6 100644 --- a/objc-interpolate.xcodeproj/project.pbxproj +++ b/objc-interpolate.xcodeproj/project.pbxproj @@ -72,13 +72,14 @@ path = Tests; sourceTree = ""; }; - 0ABF55C323C8284EAAFCB257 /* Resources */ = { + 0ABF55C323C8284EAAFCB257 /* Stuff */ = { isa = PBXGroup; children = ( 00AD3105CC245C1E899C348F /* Images.xcassets */, 44182D237F70436518F039FD /* LaunchScreen.xib */, 4DA5080663453B96803BE952 /* Other-Sources */, ); + name = Stuff; path = Resources; sourceTree = ""; }; @@ -135,7 +136,7 @@ B344AB7D183B6364FC5A2288 /* UnitTests */ = { isa = PBXGroup; children = ( - E5A4DA408FCE9D8DB8321C53 /* Resources */, + E5A4DA408FCE9D8DB8321C53 /* Stuff */, 079CAF12D89D112B4A5CF0D4 /* Tests */, ); path = UnitTests; @@ -147,17 +148,18 @@ B52328B63769EEB15B6E6794 /* FISAppDelegate.h */, 1D2CC712EB70552BAE4FECAE /* FISAppDelegate.m */, 7A69D0BDB7FF21F2F4067EE0 /* Main.storyboard */, - 0ABF55C323C8284EAAFCB257 /* Resources */, + 0ABF55C323C8284EAAFCB257 /* Stuff */, ); path = "objc-interpolate"; sourceTree = ""; }; - E5A4DA408FCE9D8DB8321C53 /* Resources */ = { + E5A4DA408FCE9D8DB8321C53 /* Stuff */ = { isa = PBXGroup; children = ( A3CB471F2DEE87EB0AD380B1 /* UnitTests-Info.plist */, 2C41296D1347CD1105834446 /* UnitTests-Prefix.pch */, ); + name = Stuff; path = Resources; sourceTree = ""; }; diff --git a/objc-interpolate/FISAppDelegate.m b/objc-interpolate/FISAppDelegate.m index ead0fcb..f3cf9fb 100644 --- a/objc-interpolate/FISAppDelegate.m +++ b/objc-interpolate/FISAppDelegate.m @@ -13,6 +13,53 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( */ + + // A. + NSLog(@"Dalek"); + + // B. + NSLog(@"%@", @"Dalek"); + + // C. + NSLog(@"%@%@%@%@%@", @"D", @"a", @"l", @"e", @"k"); + + + + + + // A' + NSLog(@"Interpolate!"); + + // B' + NSLog(@"%@", @"Interpolate!"); + + // C' + NSLog(@"%@, %@", @"Interpolate!", @"Interpolate!"); + + // D' + NSLog(@"%@%@%@%@!", @"In", @"ter", @"po", @"late"); + + // E' + NSLog(@"%@-%@-%@-%@!", @"In", @"ter", @"po", @"late"); + + + + + // A" + NSLog(@"You are not The Doctor!"); + + // B" + NSLog(@"%@", @"You are not The Doctor!"); + + // C" + NSLog(@"%@%@%@%@%@%@", @"You", @"are", @"not", @"The", @"Doctor", @"!"); + + // D" + NSLog(@"%@ %@ %@ %@ %@%@", @"You", @"are", @"not", @"The", @"Doctor", @"!"); + + // E" + NSLog(@"You are %@ %@!", @"not", @"The Doctor"); + // Do not alter return YES; // ///////////////