BMPopBaseView.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // BMPopBaseView.h
  3. // BuguLive
  4. //
  5. // Created by 丁凯 on 2017/5/17.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "DailyQuestTablView.h"
  10. typedef NS_ENUM(NSInteger, BMPopViewType)
  11. {
  12. BMInputPassWord, // 输入口令
  13. BMCreatRoom, // 创建房间
  14. BMRoomInfo, // 房间信息
  15. BMEachDaytask, //每日任务
  16. };
  17. @interface BMPopBaseView : UIView
  18. @property (nonatomic,assign) BMPopViewType popType;
  19. @property (weak, nonatomic) IBOutlet UIView *bmButtomView;
  20. @property (weak, nonatomic) IBOutlet UILabel *titleLabel;
  21. @property (weak, nonatomic) IBOutlet UIButton *closeBtn; //关闭按钮的图标
  22. @property (weak, nonatomic) IBOutlet UIButton *closeButton; //关闭按钮的控件
  23. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *buttomWidth;
  24. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *buttomHeight;
  25. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *titleLabelWidth;
  26. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *titleLabelHeight;
  27. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *titlelabelSpaceLeft;
  28. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *closeBtnW;
  29. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *closeBtnH;
  30. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *titleLabelH;
  31. @property (strong, nonatomic) DailyQuestTablView *dQTableView;
  32. /**
  33. 改变 bmButtomView的frame 和titleLabel的标题
  34. @param Width bmButtomView 的宽
  35. @param Height bmButtomView 的高
  36. @param titleStr titleLabel 的name
  37. */
  38. - (void)updateUIframeWithWidth:(CGFloat)Width andHeight:(CGFloat)Height andTitleStr:(NSString *)titleStr andmyEunmType:(BMPopViewType)myEunmType;
  39. @end