All pastes #808977 Raw Edit

shane

public text v1 · immutable
·published 2007-12-08 02:39 UTC
rendered paste body
#import "iDeeJay.h"

@implementation iDeeJay

- (void) loadDecks
{
	UIImage *vinylDecks[2];

	vinylDecks[0] = [UIImage imageNamed:@"vinyl_001.jpg"];
	vinylDecks[1] = [UIImage imageNamed:@"vinyl_001.jpg"];


}

- (void) applicationDidFinishLaunching: (id) unused
{
	UIWindow *window;
	struct CGRect rect	=	[UIHardware fullScreenApplicationContentRect];
	rect.origin.x		=	rect.origin.y = 0.0f;
	[self setStatusBarMode:2 orientation:0 duration:0.0f fenceID:0];

	/* init main windows */
	window			=	[[UIWindow alloc] initWithContentRect: rect];
	mainView = [[[UIView alloc] initWithFrame: rect] autorelease];
	[window setRotationDegrees:90 duration:0.0];

	UIImageView *bg = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, rect.size.width, rect.size.height)];
	[bg setImage:[UIImage applicationImageNamed:@"bg.jpg"]];
	[mainView addSubview: bg];
	[bg release];

	[self loadDecks];
  
	[window orderFront: self];
    	[window makeKey: self];
    	[window _setHidden: NO];
    	[window setContentView: mainView];
}

@end