SHomeDynamicView.m 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // SHomeDynamicView.m
  3. // BuguLive
  4. //
  5. // Created by 宋晨光 on 2020/5/20.
  6. // Copyright © 2020 xfg. All rights reserved.
  7. //
  8. #import "SHomeDynamicView.h"
  9. #import "CellForWorkGroup.h"
  10. @implementation SHomeDynamicView
  11. - (instancetype)initWithFrame:(CGRect)frame andUserId:(NSString *)userId
  12. {
  13. self = [super initWithFrame:frame];
  14. if (self)
  15. {
  16. self.backgroundColor = kBackGroundColor;
  17. self.user_id = userId;
  18. YHTimeLineListController *vc = [[YHTimeLineListController alloc]initWithIndexAct:MGDTHOMETYPE_MY withUID:userId];
  19. vc.view.frame = frame;
  20. vc.view.left = 0;
  21. vc.view.backgroundColor = kRedColor;
  22. [self addSubview:vc.view];
  23. }
  24. return self;
  25. }
  26. -(void)setUpViewWithFrame:(CGRect)frame{
  27. self.tableView = [[UITableView alloc] initWithFrame:frame style:UITableViewStylePlain];
  28. self.tableView.delegate = self;
  29. self.tableView.dataSource = self;
  30. self.tableView.backgroundColor = RGBCOLOR(244, 244, 244);
  31. self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
  32. [self addSubview:self.tableView];
  33. [self.tableView registerClass:[CellForWorkGroup class] forCellReuseIdentifier:NSStringFromClass([CellForWorkGroup class])];
  34. [BGMJRefreshManager refresh:self.tableView target:self headerRereshAction:@selector(refreshHeader) footerRereshAction:@selector(refreshFooter)];
  35. }
  36. //-(void)refreshHeader{
  37. //
  38. // [self requestDataLoadNew:YES];
  39. //}
  40. //
  41. //-(void)refreshFooter{
  42. // [self requestDataLoadNew:NO];
  43. //}
  44. //
  45. //
  46. //
  47. //- (void)viewWillAppear:(BOOL)animated {
  48. // [super viewWillAppear:animated];
  49. //}
  50. //
  51. //- (void)viewWillDisappear:(BOOL)animated {
  52. // [super viewWillDisappear:animated];
  53. //
  54. // [_playerView destroyPlayer];
  55. // _c_cell =nil;
  56. //}
  57. @end