equal
deleted
inserted
replaced
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)]) { |