project_files/HedgewarsMobile/Classes/ObjcExports.m
changeset 6615 65602f1ef0f8
parent 6409 ca93f38a1aab
child 6624 e049b5bb0ad1
equal deleted inserted replaced
6614:f88f67a17a9d 6615:65602f1ef0f8
    67     CGPoint loaderCenter = ((IS_DUALHEAD() || [HWUtils gameType] == gtSave) ? center : CGPointMake(center.x, center.y * 5/3));
    67     CGPoint loaderCenter = ((IS_DUALHEAD() || [HWUtils gameType] == gtSave) ? center : CGPointMake(center.x, center.y * 5/3));
    68 
    68 
    69     overlay_instance.loadingIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    69     overlay_instance.loadingIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    70     overlay_instance.loadingIndicator.hidesWhenStopped = YES;
    70     overlay_instance.loadingIndicator.hidesWhenStopped = YES;
    71     overlay_instance.loadingIndicator.center = loaderCenter;
    71     overlay_instance.loadingIndicator.center = loaderCenter;
       
    72     overlay_instance.loadingIndicator.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin |
       
    73                                                          UIViewAutoresizingFlexibleRightMargin |
       
    74                                                          UIViewAutoresizingFlexibleTopMargin |
       
    75                                                          UIViewAutoresizingFlexibleBottomMargin;
    72     [overlay_instance.loadingIndicator startAnimating];
    76     [overlay_instance.loadingIndicator startAnimating];
    73     [overlay_instance.view addSubview:overlay_instance.loadingIndicator];
    77     [overlay_instance.view addSubview:overlay_instance.loadingIndicator];
    74     [overlay_instance.loadingIndicator release];
    78     [overlay_instance.loadingIndicator release];
    75 }
    79 }
    76 
    80