MMPopupCategory.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // UIColor+MMPopup.h
  3. // MMPopupView
  4. //
  5. // Created by Ralph Li on 9/6/15.
  6. // Copyright © 2015 LJC. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIColor (MMPopup)
  10. + (UIColor *) mm_colorWithHex:(NSUInteger)hex;
  11. @end
  12. @interface UIImage (MMPopup)
  13. + (UIImage *) mm_imageWithColor:(UIColor *)color;
  14. + (UIImage *) mm_imageWithColor:(UIColor *)color Size:(CGSize)size;
  15. - (UIImage *) mm_stretched;
  16. @end
  17. @interface UIButton (MMPopup)
  18. + (id) mm_buttonWithTarget:(id)target action:(SEL)sel;
  19. @end
  20. @interface NSString (MMPopup)
  21. - (NSString *)mm_truncateByCharLength:(NSUInteger)charLength;
  22. @end
  23. @interface UIView (MMPopup)
  24. @property (nonatomic, strong, readonly ) UIView *mm_dimBackgroundView;
  25. @property (nonatomic, assign, readonly ) BOOL mm_dimBackgroundAnimating;
  26. @property (nonatomic, assign ) NSTimeInterval mm_dimAnimationDuration;
  27. @property (nonatomic, strong, readonly ) UIView *mm_dimBackgroundBlurView;
  28. @property (nonatomic, assign ) BOOL mm_dimBackgroundBlurEnabled;
  29. @property (nonatomic, assign ) UIBlurEffectStyle mm_dimBackgroundBlurEffectStyle;
  30. - (void) mm_showDimBackground;
  31. - (void) mm_hideDimBackground;
  32. - (void) mm_distributeSpacingHorizontallyWith:(NSArray*)view;
  33. - (void) mm_distributeSpacingVerticallyWith:(NSArray*)view;
  34. @end