equal
deleted
inserted
replaced
43 aTableView.layer.cornerRadius = 8; |
43 aTableView.layer.cornerRadius = 8; |
44 aTableView.contentInset = UIEdgeInsetsMake(10, 0, 10, 0); |
44 aTableView.contentInset = UIEdgeInsetsMake(10, 0, 10, 0); |
45 } else { |
45 } else { |
46 UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"]; |
46 UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"]; |
47 UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage]; |
47 UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage]; |
|
48 background.contentMode = UIViewContentModeScaleAspectFill; |
|
49 background.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; |
48 [backgroundImage release]; |
50 [backgroundImage release]; |
49 [self.view addSubview:background]; |
51 [self.view addSubview:background]; |
50 [background release]; |
52 [background release]; |
51 [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]]; |
53 [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]]; |
52 } |
54 } |