equal
deleted
inserted
replaced
123 [self.topControl addTarget:aTableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged]; |
123 [self.topControl addTarget:aTableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged]; |
124 [self.view addSubview:self.topControl]; |
124 [self.view addSubview:self.topControl]; |
125 } else { |
125 } else { |
126 UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"]; |
126 UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"]; |
127 UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage]; |
127 UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage]; |
|
128 background.contentMode = UIViewContentModeScaleAspectFill; |
|
129 background.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; |
128 [backgroundImage release]; |
130 [backgroundImage release]; |
129 [self.view addSubview:background]; |
131 [self.view addSubview:background]; |
130 [background release]; |
132 [background release]; |
131 [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]]; |
133 [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]]; |
132 } |
134 } |