equal
deleted
inserted
replaced
28 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
28 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
29 return rotationManager(interfaceOrientation); |
29 return rotationManager(interfaceOrientation); |
30 } |
30 } |
31 |
31 |
32 -(void) viewDidLoad { |
32 -(void) viewDidLoad { |
33 if ([self.tableView respondsToSelector:@selector(setBackgroundView:)]) |
33 [self.tableView setBackgroundColorForAnyTable:[UIColor clearColor]]; |
34 self.tableView.backgroundView = nil; |
|
35 self.tableView.allowsSelection = NO; |
34 self.tableView.allowsSelection = NO; |
36 |
35 |
37 NSArray *array = [[NSArray alloc] initWithContentsOfFile:CREDITS_FILE()]; |
36 NSArray *array = [[NSArray alloc] initWithContentsOfFile:CREDITS_FILE()]; |
38 self.people = array; |
37 self.people = array; |
39 [array release]; |
38 [array release]; |
42 if (IS_IPAD()) |
41 if (IS_IPAD()) |
43 imgName = @"smallerBackground~ipad.png"; |
42 imgName = @"smallerBackground~ipad.png"; |
44 else |
43 else |
45 imgName = @"smallerBackground~iphone.png"; |
44 imgName = @"smallerBackground~iphone.png"; |
46 UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName]; |
45 UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName]; |
47 self.view.backgroundColor = [UIColor colorWithPatternImage:img]; |
46 UIImageView *background = [[UIImageView alloc] initWithImage:img]; |
48 [img release]; |
47 [img release]; |
|
48 background.frame = self.view.frame; |
|
49 background.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; |
|
50 [self.view insertSubview:background atIndex:0]; |
|
51 [background release]; |
|
52 |
49 [super viewDidLoad]; |
53 [super viewDidLoad]; |
50 } |
54 } |
51 |
55 |
52 -(IBAction) buttonPressed:(id) sender { |
56 -(IBAction) buttonPressed:(id) sender { |
53 [AudioManagerController playBackSound]; |
57 [AudioManagerController playBackSound]; |