equal
deleted
inserted
replaced
25 #pragma mark - |
25 #pragma mark - |
26 @implementation UIScreen (safe) |
26 @implementation UIScreen (safe) |
27 |
27 |
28 -(CGFloat) safeScale { |
28 -(CGFloat) safeScale { |
29 CGFloat theScale = 1.0f; |
29 CGFloat theScale = 1.0f; |
30 if ([self respondsToSelector:@selector(scale)]) |
30 // if ([self respondsToSelector:@selector(scale)]) |
31 theScale = [self scale]; |
31 // theScale = [self scale]; |
32 return theScale; |
32 return theScale; |
33 } |
33 } |
34 |
34 |
35 -(CGRect) safeBounds { |
35 -(CGRect) safeBounds { |
36 return [self bounds]; |
36 return [self bounds]; |