admin
2023-04-21 0b3a4aaf99ea251bc8e27b96115288f0988fcffe
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
61
62
63
64
65
66
67
//
//  MuneItem.h
//  WKMuneController
//
//  Created by macairwkcao on 16/1/25.
//  Copyright © 2016年 CWK. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
typedef NS_OPTIONS(NSUInteger, MuneItemShowType){
    kMuneItemShowTypeRadRight = 0,
    kMuneItemShowTypeRadLeft,
    kMuneItemShowTypeLine,
    kMuneItemShowTypeRound,
};
 
 
 
 
@interface CMuneItem : UIButton
 
@property(nonatomic,assign)MuneItemShowType type;
 
/**
 *  MuneItem 初始化方法
 *
 *  @param size        尺寸
 *  @param image       图片
 *  @param heightImage 高亮图片
 *  @param target      target
 *  @param action      action
 */
-(instancetype)initWithSize:(CGSize)size image:(UIImage *)image heightImage:(UIImage *)heightImage target:(id)target action:(SEL)action;
 
/**
 *  MuneItem工厂方法
 *
 *  @param size        尺寸
 *  @param image       图片
 *  @param heightImage 高亮图片
 *  @param target      target
 *  @param action      action
 */
+(CMuneItem *)muneItemWithSize:(CGSize)size image:(UIImage *)image heightImage:(UIImage *)heightImage target:(id)target action:(SEL)action;
 
/**
 *  展开item,以kMuneItemShowTypeRadRight、kMuneItemShowTypeRadLeft以及kMuneItemShowTypeLine方式打开的item,其中kMuneItemShowTypeLine会调用itemShowWithTargetPoint方法
 *
 *  @param type  展开类型
 *  @param angle 角度
 */
-(void)itemShowWithType:(MuneItemShowType)type angle:(CGFloat)angle;
 
/**
 *  展开item,以kMuneItemShowTypeLine方式打开的item
 *
 *  @param targetPoint targetPoint 展开item目标点
 */
-(void)itemShowWithTargetPoint:(CGPoint)targetPoint type:(MuneItemShowType)type;
 
/**
 *  关闭时的平移方法
 */
-(void)itemHide;
 
@end