project_files/HedgewarsMobile/Classes/AboutViewController.m
changeset 4030 adbb37b8c487
parent 4000 ddc4a09889e7
child 4082 bfe14b38dad1
equal deleted inserted replaced
4028:eb371ada631d 4030:adbb37b8c487
    35 
    35 
    36     NSString *strPath = [NSString stringWithFormat:@"%@/credits.plist",IFRONTEND_DIRECTORY()];
    36     NSString *strPath = [NSString stringWithFormat:@"%@/credits.plist",IFRONTEND_DIRECTORY()];
    37     NSArray *array = [[NSArray alloc] initWithContentsOfFile:strPath];
    37     NSArray *array = [[NSArray alloc] initWithContentsOfFile:strPath];
    38     self.people = array;
    38     self.people = array;
    39     [array release];
    39     [array release];
    40     
    40 
       
    41     NSString *imgName;
       
    42     if (IS_IPAD())
       
    43         imgName = @"smallerBackground~ipad.png";
       
    44     else
       
    45         imgName = @"smallerBackground~iphone.png";
       
    46     UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
       
    47     self.view.backgroundColor = [UIColor colorWithPatternImage:img];
       
    48     [img release];
    41     [super viewDidLoad];
    49     [super viewDidLoad];
    42 }
    50 }
    43 
    51 
    44 -(IBAction) buttonPressed:(id) sender {
    52 -(IBAction) buttonPressed:(id) sender {
    45     playSound(@"backSound");
    53     playSound(@"backSound");