APLOC2/Week1/APLOC2 Week 1/APLOC2 Week 1/ViewController.m
Brent Marohnic c9adb63f6c Practice 1
2013-02-07 09:01:25 -05:00

43 lines
791 B
Objective-C

//
// ViewController.m
// APLOC2 Week 1
//
// Created by Brent Marohnic on 2/7/13.
// Copyright (c) 2013 Brent Marohnic. All rights reserved.
//
#import "ViewController.h"
#import "Child.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
firstLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];
Child *firstChild = [[Child alloc] init];
if (firstChild != nil)
{
firstLabel.text = firstChild.showChild;
}
[self.view addSubview:firstLabel];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end