equal
deleted
inserted
replaced
27 return rotationManager(interfaceOrientation); |
27 return rotationManager(interfaceOrientation); |
28 } |
28 } |
29 |
29 |
30 -(void) viewDidLoad { |
30 -(void) viewDidLoad { |
31 UITableView *aTableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITableViewStyleGrouped]; |
31 UITableView *aTableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITableViewStyleGrouped]; |
|
32 aTableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; |
32 [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]]; |
33 [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]]; |
33 |
34 |
34 NSString *imgName = (IS_IPAD()) ? @"mediumBackground~ipad.png" : @"smallerBackground~iphone.png"; |
35 NSString *imgName = (IS_IPAD()) ? @"mediumBackground~ipad.png" : @"smallerBackground~iphone.png"; |
35 UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName]; |
36 UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName]; |
36 UIImageView *background = [[UIImageView alloc] initWithImage:img]; |
37 UIImageView *background = [[UIImageView alloc] initWithImage:img]; |
116 |
117 |
117 return cell; |
118 return cell; |
118 } |
119 } |
119 |
120 |
120 -(CGFloat) tableView:(UITableView *)aTableView heightForHeaderInSection:(NSInteger)section { |
121 -(CGFloat) tableView:(UITableView *)aTableView heightForHeaderInSection:(NSInteger)section { |
121 return 160; |
122 return (section == 0) ? 160 : 40; |
122 } |
123 } |
123 |
124 |
124 -(UIView *)tableView:(UITableView *)aTableView viewForHeaderInSection:(NSInteger)section { |
125 -(UIView *)tableView:(UITableView *)aTableView viewForHeaderInSection:(NSInteger)section { |
125 if (section == 0) { |
126 if (section == 0) { |
126 UIView *header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, aTableView.frame.size.width, 160)]; |
127 UIView *header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, aTableView.frame.size.width, 160)]; |