Class View

//
//  View.h
//  Hello
//
//  Created by Mark Meretzky on 6/8/14.
//  Copyright (c) 2014 John Doe. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface View: UIView

@end
//
//  View.m
//  Hello
//
//  Created by Mark Meretzky on 6/8/14.
//  Copyright (c) 2014 John Doe. All rights reserved.
//

#import "View.h"

@implementation View

- (id) initWithFrame: (CGRect) frame
{
	self = [super initWithFrame: frame];
	if (self) {
		// Initialization code
		self.backgroundColor = [UIColor yellowColor];
	}
	return self;
}


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.

- (void) drawRect: (CGRect) rect
{
	// Drawing code
	NSString *string = @"Hello, World!";
	CGPoint point = CGPointMake(0.0, 0.0);
	UIFont *font = [UIFont systemFontOfSize: 32.0];
	
	NSDictionary *attributes =
		[NSDictionary dictionaryWithObject: font forKey: NSFontAttributeName];
	
	[string drawAtPoint: point withAttributes: attributes];
	
	//In iOS 6, the above statement was
	//[string drawAtPoint: point withFont: font];
}

@end