FLEXUtility.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  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. + (UIViewController *)viewControllerForView:(UIView *)view;
  14. + (NSString *)detailDescriptionForView:(UIView *)view;
  15. + (UIImage *)circularImageWithColor:(UIColor *)color radius:(CGFloat)radius;
  16. + (UIColor *)scrollViewGrayColor;
  17. + (UIColor *)hierarchyIndentPatternColor;
  18. + (NSString *)applicationImageName;
  19. + (NSString *)applicationName;
  20. + (NSString *)safeDescriptionForObject:(id)object;
  21. + (UIFont *)defaultFontOfSize:(CGFloat)size;
  22. + (UIFont *)defaultTableViewCellLabelFont;
  23. + (NSString *)stringByEscapingHTMLEntitiesInString:(NSString *)originalString;
  24. + (NSUInteger)infoPlistSupportedInterfaceOrientationsMask;
  25. + (NSString *)searchBarPlaceholderText;
  26. @end