LivePayLeftPromptV.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // LivePayLeftPromptV.h
  3. // BuguLive
  4. //
  5. // Created by 丁凯 on 2017/8/16.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface LivePayLeftPromptV : UIView
  10. @property ( nonatomic,strong) UILabel *firstLabel; //第1个label
  11. @property ( nonatomic,strong) UILabel *secondLabel; //第2个label
  12. @property ( nonatomic,strong) UILabel *threeLabel; //第3个label
  13. @property ( nonatomic,assign) float myHeight; //高度
  14. @property ( nonatomic,assign) float myWidth; //宽度
  15. //以下方法增删label,同时也根据label适应自身的宽高
  16. - (void)addFirstLabWithStr:(NSString *)labeStr; //add第1个label
  17. - (void)addSecondLabWithStr:(NSString *)labeStr; //add第2个label
  18. - (void)addThreeLabWithStr:(NSString *)labeStr; //add第3个label
  19. - (void)removeFirstLabel; //remove第1个label
  20. - (void)removeSecondLabel; //remove第2个label
  21. - (void)removeThreeLabel; //remove第3个label
  22. //通过该方法向上或下移动30间距,适应竞拍ui的显示 myHeight高度
  23. - (void)updateMyFrameIsToUp:(BOOL)isUp andMyHeight:(CGFloat)myHeight; //isUp yes向上移动30间距 no向下移动30间距 myHeight移动的距离
  24. @end