SHomeSVideoV.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // SHomeSVideoV.h
  3. // BuguLive
  4. //
  5. // Created by 丁凯 on 2017/8/26.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "XRWaterfallLayout.h"
  10. #import "XRImage.h"
  11. @class SHomeSVideoV;
  12. @protocol videoDeleGate <NSObject>
  13. - (void)pushToVideoDetailWithArr:(NSArray *)arr andView:(SHomeSVideoV *)homeSVideoV;
  14. // 播放一组视频,并指定播放位置
  15. - (void)pushToVideoDetailWithArr:(NSArray *)videos index:(NSInteger)index IsPushed:(BOOL)isPushed requestDict:(NSDictionary *)dict;
  16. -(void)didVideoCollectionViewScrollView:(UIScrollView *)scrollView;
  17. @end
  18. @interface SHomeSVideoV : BGBaseView<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,XRWaterfallLayoutDelegate>
  19. @property ( nonatomic,strong) UICollectionView *videoCollectionV;
  20. //@property ( nonatomic,strong) UICollectionViewFlowLayout *myCollectionLayout;
  21. @property ( nonatomic,strong) XRWaterfallLayout *myCollectionLayout;
  22. @property ( nonatomic,strong) NSMutableArray *dataArray;
  23. @property ( nonatomic,assign) int currentPage;
  24. @property ( nonatomic,assign) int has_next;
  25. @property ( nonatomic,copy) NSString *user_id;
  26. @property ( nonatomic,weak) id<videoDeleGate> VDelegate;
  27. @property (nonatomic, strong) NSMutableArray<XRImage *> *images;
  28. - (instancetype)initWithFrame:(CGRect)frame andUserId:(NSString *)userId;
  29. -(void)refreshHeader;
  30. @end