equal
deleted
inserted
replaced
23 // Release any cached data, images, etc that aren't in use. |
23 // Release any cached data, images, etc that aren't in use. |
24 } |
24 } |
25 |
25 |
26 -(void) viewDidLoad { |
26 -(void) viewDidLoad { |
27 self.view.alpha = 0; |
27 self.view.alpha = 0; |
|
28 |
|
29 // needed for rotation to work on os < 3.2 |
|
30 self.view.center = CGPointMake(self.view.frame.size.height/2.0, self.view.frame.size.width/2.0); |
|
31 self.view.transform = CGAffineTransformRotate(self.view.transform, (M_PI/2.0)); |
28 |
32 |
29 dimTimer = [[NSTimer alloc] initWithFireDate:[NSDate dateWithTimeIntervalSinceNow:6] |
33 dimTimer = [[NSTimer alloc] initWithFireDate:[NSDate dateWithTimeIntervalSinceNow:6] |
30 interval:1000 |
34 interval:1000 |
31 target:self |
35 target:self |
32 selector:@selector(dimOverlay) |
36 selector:@selector(dimOverlay) |
36 [[NSRunLoop currentRunLoop] addTimer:dimTimer forMode:NSDefaultRunLoopMode]; |
40 [[NSRunLoop currentRunLoop] addTimer:dimTimer forMode:NSDefaultRunLoopMode]; |
37 |
41 |
38 [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showMenuAfterwards) userInfo:nil repeats:NO]; |
42 [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showMenuAfterwards) userInfo:nil repeats:NO]; |
39 } |
43 } |
40 |
44 |
41 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
45 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
42 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); |
46 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); |
43 } |
47 } |
44 |
48 |
45 -(void) viewDidUnload { |
49 -(void) viewDidUnload { |
46 [dimTimer invalidate]; |
50 [dimTimer invalidate]; |