forked from adad184/MMPopupView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMMPopupCategory.h
More file actions
60 lines (34 loc) · 1.33 KB
/
MMPopupCategory.h
File metadata and controls
60 lines (34 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// UIColor+MMPopup.h
// MMPopupView
//
// Created by Ralph Li on 9/6/15.
// Copyright © 2015 LJC. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIColor (MMPopup)
+ (UIColor *) mm_colorWithHex:(NSUInteger)hex;
@end
@interface UIImage (MMPopup)
+ (UIImage *) mm_imageWithColor:(UIColor *)color;
+ (UIImage *) mm_imageWithColor:(UIColor *)color Size:(CGSize)size;
- (UIImage *) mm_stretched;
@end
@interface UIButton (MMPopup)
+ (id) mm_buttonWithTarget:(id)target action:(SEL)sel;
@end
@interface NSString (MMPopup)
- (NSString *)mm_truncateByCharLength:(NSUInteger)charLength;
@end
@interface UIView (MMPopup)
@property (nonatomic, strong, readonly ) UIView *mm_dimBackgroundView;
@property (nonatomic, assign, readonly ) BOOL mm_dimBackgroundAnimating;
@property (nonatomic, assign ) NSTimeInterval mm_dimAnimationDuration;
@property (nonatomic, strong, readonly ) UIView *mm_dimBackgroundBlurView;
@property (nonatomic, assign ) BOOL mm_dimBackgroundBlurEnabled;
@property (nonatomic, assign ) UIBlurEffectStyle mm_dimBackgroundBlurEffectStyle;
- (void) mm_showDimBackground;
- (void) mm_hideDimBackground;
- (void) mm_distributeSpacingHorizontallyWith:(NSArray*)view;
- (void) mm_distributeSpacingVerticallyWith:(NSArray*)view;
@end