diff --git a/Week1/APLOC2 Week 1/APLOC2 Week 1.xcodeproj/project.xcworkspace/xcuserdata/notmyemail.xcuserdatad/UserInterfaceState.xcuserstate b/Week1/APLOC2 Week 1/APLOC2 Week 1.xcodeproj/project.xcworkspace/xcuserdata/notmyemail.xcuserdatad/UserInterfaceState.xcuserstate index f79d33c..f8c2efb 100644 Binary files a/Week1/APLOC2 Week 1/APLOC2 Week 1.xcodeproj/project.xcworkspace/xcuserdata/notmyemail.xcuserdatad/UserInterfaceState.xcuserstate and b/Week1/APLOC2 Week 1/APLOC2 Week 1.xcodeproj/project.xcworkspace/xcuserdata/notmyemail.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Week1/APLOC2 Week 1/APLOC2 Week 1.xcodeproj/xcuserdata/notmyemail.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist b/Week1/APLOC2 Week 1/APLOC2 Week 1.xcodeproj/xcuserdata/notmyemail.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist new file mode 100644 index 0000000..05301bc --- /dev/null +++ b/Week1/APLOC2 Week 1/APLOC2 Week 1.xcodeproj/xcuserdata/notmyemail.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/Week1/APLOC2 Week 1/APLOC2 Week 1/Child.h b/Week1/APLOC2 Week 1/APLOC2 Week 1/Child.h index c5c8752..cf5ca13 100644 --- a/Week1/APLOC2 Week 1/APLOC2 Week 1/Child.h +++ b/Week1/APLOC2 Week 1/APLOC2 Week 1/Child.h @@ -18,4 +18,6 @@ -(NSString*)showChild; +@property int intChild; + @end diff --git a/Week1/APLOC2 Week 1/APLOC2 Week 1/Child.m b/Week1/APLOC2 Week 1/APLOC2 Week 1/Child.m index b787a44..9cce8a5 100644 --- a/Week1/APLOC2 Week 1/APLOC2 Week 1/Child.m +++ b/Week1/APLOC2 Week 1/APLOC2 Week 1/Child.m @@ -9,6 +9,7 @@ #import "Child.h" @implementation Child +@synthesize intChild; -(id)init { @@ -26,7 +27,11 @@ -(NSString*)showChild { - NSString* returnThis = [[NSString alloc] initWithFormat:@"intChild = %d, fltChild = %f, blnChild = %c", intChild, fltChild, blnChild]; + NSString* returnThis = [[NSString alloc] initWithFormat:@"intChild = %d, fltChild = %1.2f, blnChild = %c", intChild, fltChild, blnChild]; + + + /* NSString* returnThis = [[NSString alloc] initWithFormat:@"blnChild = %c", blnChild]; + */ return returnThis; diff --git a/Week1/APLOC2 Week 1/APLOC2 Week 1/ViewController.m b/Week1/APLOC2 Week 1/APLOC2 Week 1/ViewController.m index 98bb940..e5b7e49 100644 --- a/Week1/APLOC2 Week 1/APLOC2 Week 1/ViewController.m +++ b/Week1/APLOC2 Week 1/APLOC2 Week 1/ViewController.m @@ -20,11 +20,14 @@ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. - firstLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 50)]; + firstLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 200)]; + firstLabel.numberOfLines = 2; Child *firstChild = [[Child alloc] init]; if (firstChild != nil) { + firstChild.intChild = 2; + firstLabel.text = firstChild.showChild; }