project_files/HedgewarsMobile/ExtraCategories.m
changeset 6209 074ab6ebcb3e
parent 6208 b831679e9467
child 6210 923c8414e3af
equal deleted inserted replaced
6208:b831679e9467 6209:074ab6ebcb3e
    20 
    20 
    21 
    21 
    22 #import "ExtraCategories.h"
    22 #import "ExtraCategories.h"
    23 #import <QuartzCore/QuartzCore.h>
    23 #import <QuartzCore/QuartzCore.h>
    24 #import <CommonCrypto/CommonDigest.h>
    24 #import <CommonCrypto/CommonDigest.h>
       
    25 
       
    26 
       
    27 @implementation UIScreen (safe)
       
    28 
       
    29 -(CGFloat) safeScale {
       
    30     CGFloat theScale = 1.0f;
       
    31     if ([self respondsToSelector:@selector(scale)])
       
    32          theScale = [self scale];
       
    33     return theScale;
       
    34 }
       
    35 
       
    36 @end
       
    37 
    25 
    38 
    26 @implementation UITableView (backgroundColor)
    39 @implementation UITableView (backgroundColor)
    27 
    40 
    28 -(void) setBackgroundColorForAnyTable:(UIColor *) color {
    41 -(void) setBackgroundColorForAnyTable:(UIColor *) color {
    29     if ([self respondsToSelector:@selector(backgroundView)]) {
    42     if ([self respondsToSelector:@selector(backgroundView)]) {