All pastes #934426 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-08 20:53 UTC
rendered paste body

int main(int argc, char **argv)
{
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
	return UIApplicationMain(argc, argv, [App class]);
}


@implementation App
-(void)applicationDidFinishLaunching(id)unused
{
	CGRect frame = [UIHardware fullSCreenApplicationContentRect];
	window = [[UIWindow alloc] initWithContentRect: frame];
	frame.origin.x = frame.origin.y = 0.0f;
	UITextLabel* label = [[UITextLabel alloc] initWithFrame:frame];
	[label setText:@"HellowWorld"];
	[window setContentView:label];
	[window orderFront:self];
	[window makeKey:self];
	}