ActionSheetView.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // ActionSheetView.h
  3. // MingMen
  4. //
  5. // Created by 罗云飞 on 2017/3/9.
  6. // Copyright © 2017年 罗云飞. All rights reserved.
  7. //
  8. #import "VerButton.h"
  9. #import "ActionButton.h"
  10. #import <UIKit/UIKit.h>
  11. typedef enum {
  12. ShowTypeIsShareStyle = 0, //9宫格类型的 适合分享按钮
  13. ShowTypeIsActionSheetStyle //类似系统的actionsheet的类型
  14. } ShowType;
  15. @interface ActionSheetView : UIView
  16. //点击按钮block回调
  17. @property (nonatomic,copy) void(^btnClick)(NSInteger);
  18. //头部提示文字
  19. @property (nonatomic,copy) NSString *proStr;
  20. //头部提示文字的字体大小
  21. @property (nonatomic,assign) NSInteger proFont;
  22. //取消按钮的颜色
  23. @property (nonatomic,strong) UIColor *cancelBtnColor;
  24. //取消按钮的字体大小
  25. @property (nonatomic,assign) NSInteger cancelBtnFont;
  26. //除了取消按钮其他按钮的颜色
  27. @property (nonatomic,strong) UIColor *otherBtnColor;
  28. //除了取消按钮其他按钮的字体大小
  29. @property (nonatomic,assign) NSInteger otherBtnFont;
  30. //设置弹窗背景蒙板灰度(0~1)
  31. @property (nonatomic,assign) CGFloat duration;
  32. /**
  33. * 初始化actionView
  34. *
  35. * @param titleArray 标题数组
  36. * @param imageArr 图片数组(如果不需要的话传空数组(@[])进来)
  37. * @param protitle 最顶部的标题 不需要的话传@""
  38. * @param type 两种弹出类型(枚举)
  39. *
  40. * @return wu
  41. */
  42. - (id)initWithShareHeadOprationWith:(NSArray *)titleArray andImageArry:(NSArray *)imageArr andProTitle:(NSString *)protitle and:(ShowType)type;
  43. @end