FLEXUtility.h 966 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // FLEXUtility.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 4/18/14.
  6. // Copyright (c) 2014 Flipboard. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. @interface FLEXUtility : NSObject
  11. + (UIColor *)consistentRandomColorForObject:(id)object;
  12. + (NSString *)descriptionForView:(UIView *)view includingFrame:(BOOL)includeFrame;
  13. + (NSString *)detailDescriptionForView:(UIView *)view;
  14. + (UIImage *)circularImageWithColor:(UIColor *)color radius:(CGFloat)radius;
  15. + (UIColor *)scrollViewGrayColor;
  16. + (UIColor *)hierarchyIndentPatternColor;
  17. + (NSString *)applicationImageName;
  18. + (NSString *)applicationName;
  19. + (NSString *)safeDescriptionForObject:(id)object;
  20. + (UIFont *)defaultFontOfSize:(CGFloat)size;
  21. + (UIFont *)defaultTableViewCellLabelFont;
  22. + (NSString *)stringByEscapingHTMLEntitiesInString:(NSString *)originalString;
  23. + (NSUInteger)infoPlistSupportedInterfaceOrientationsMask;
  24. + (NSString *)searchBarPlaceholderText;
  25. @end