PublicView.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // PublicView.h
  3. // YBVideo
  4. //
  5. // Created by YunBao on 2018/6/29.
  6. // Copyright © 2018年 cat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void (^PubliccViewBlock)(int eventCode);
  10. @interface PublicView : UIView
  11. /***************************** 指示器 **********************************/
  12. @property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indictorV;
  13. /** 指示器显示 */
  14. +(void)indictorShow;
  15. /** 指示器消失 */
  16. +(void)indictorHide;
  17. /***************************** 无数据(有图) **********************************/
  18. @property (weak, nonatomic) IBOutlet UIImageView *noDataIV;
  19. @property (weak, nonatomic) IBOutlet UILabel *noDataTextL;
  20. /** 显示无数据/无网络 */
  21. +(void)showImgNoData:(UIView *)superView name:(NSString *)imgName text:(NSString *)text centerY:(CGFloat)centerY whRate:(CGFloat)wh;
  22. /** 隐藏无数据/无网络 */
  23. +(void)hiddenImgNoData:(UIView *)superView;
  24. +(void)showImgNoData:(UIView *)superView name:(NSString *)imgName text:(NSString *)text;
  25. /***************************** 无数据(文字) **********************************/
  26. @property (weak, nonatomic) IBOutlet UILabel *noDataText1;
  27. @property (weak, nonatomic) IBOutlet UILabel *noDataText2;
  28. +(void)showTextNoData:(UIView *)superView text1:(NSString *)str1 text2:(NSString *)str2 centerY:(CGFloat)cY;
  29. +(void)hiddenTextNoData:(UIView *)superView;
  30. /***************************** 评论加载中 **********************************/
  31. +(void)showCommenting:(UIView *)superView;
  32. +(void)hideCommenting:(UIView *)superView;
  33. /***************************** 个人中心动图 **********************************/
  34. @property (weak, nonatomic) IBOutlet UIImageView *gifIV;
  35. +(void)showCenterGif:(UIView *)superView;
  36. +(void)hideCenterGif:(UIView *)superView;
  37. //倒计时
  38. @property(nonatomic,copy)PubliccViewBlock timeEvent;
  39. @property (weak, nonatomic) IBOutlet UILabel *timeL;
  40. @property(nonatomic,strong)CABasicAnimation *timeAnimation;
  41. @property(nonatomic,strong)NSArray *timesArray;
  42. +(instancetype)showTimerView:(PubliccViewBlock)complete;
  43. @end