| 1234567891011121314151617181920212223242526272829303132333435 |
- //
- // FLEXUtility.h
- // Flipboard
- //
- // Created by Ryan Olson on 4/18/14.
- // Copyright (c) 2014 Flipboard. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #define FLEXFloor(x) (floor([[UIScreen mainScreen] scale] * (x)) / [[UIScreen mainScreen] scale])
- @interface FLEXUtility : NSObject
- + (UIColor *)consistentRandomColorForObject:(id)object;
- + (NSString *)descriptionForView:(UIView *)view includingFrame:(BOOL)includeFrame;
- + (NSString *)stringForCGRect:(CGRect)rect;
- + (UIViewController *)viewControllerForView:(UIView *)view;
- + (NSString *)detailDescriptionForView:(UIView *)view;
- + (UIImage *)circularImageWithColor:(UIColor *)color radius:(CGFloat)radius;
- + (UIColor *)scrollViewGrayColor;
- + (UIColor *)hierarchyIndentPatternColor;
- + (NSString *)applicationImageName;
- + (NSString *)applicationName;
- + (NSString *)safeDescriptionForObject:(id)object;
- + (UIFont *)defaultFontOfSize:(CGFloat)size;
- + (UIFont *)defaultTableViewCellLabelFont;
- + (NSString *)stringByEscapingHTMLEntitiesInString:(NSString *)originalString;
- + (UIInterfaceOrientationMask)infoPlistSupportedInterfaceOrientationsMask;
- + (NSString *)searchBarPlaceholderText;
- + (BOOL)isImagePathExtension:(NSString *)extension;
- @end
|