#import "HelloWorldController.h"
@implementation HelloWorldController
@synthesize hwLabel;
(void)loadView
{
//View
CGRect mainFrame = [[UIScreen mainScreen] applicationFrame];
UIView *maView = [[UIView alloc] initWithFrame:mainFrame];
maView.backgroundColor = [UIColor groupTableViewBackgroundColor];
self.view = maView;
[maView release];
// Label
hwLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, mainFrame.size.width – 20, 40)];
[hwLabel setTextColor:[UIColor blackColor]];
hwLabel.backgroundColor = [UIColor clearColor];
hwLabel.textAlignment = UITextAlignmentCenter;
hwLabel.text = @"Hello World!!";
[self.view addSubview:hwLabel];
}