project_files/HedgewarsMobile/Classes/MapPreviewButtonView.m
changeset 6219 c193881389c1
parent 6115 485cfecadc9a
child 6246 6b2d19ed521a
equal deleted inserted replaced
6218:999215ca87d7 6219:c193881389c1
   207 }
   207 }
   208 
   208 
   209 -(void) updatePreviewWithFile:(NSString *)filePath {
   209 -(void) updatePreviewWithFile:(NSString *)filePath {
   210     UIImage *image = [[UIImage alloc] initWithContentsOfFile:filePath];
   210     UIImage *image = [[UIImage alloc] initWithContentsOfFile:filePath];
   211     [self setImageRounded:image forState:UIControlStateNormal];
   211     [self setImageRounded:image forState:UIControlStateNormal];
       
   212     self.backgroundColor = [UIColor whiteColor];
       
   213     self.layer.cornerRadius = 12;
   212     [image release];
   214     [image release];
   213 }
   215 }
   214 
   216 
   215 -(void) removeIndicator {
   217 -(void) removeIndicator {
   216     UIActivityIndicatorView *indicator = (UIActivityIndicatorView *)[self viewWithTag:INDICATOR_TAG];
   218     UIActivityIndicatorView *indicator = (UIActivityIndicatorView *)[self viewWithTag:INDICATOR_TAG];