EleFourTableVC.m 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // EleFourTableVC.m
  3. // JSJPCoach
  4. //
  5. // Created by EchoShacolee on 2018/1/30.
  6. // Copyright © 2018年 Danson. All rights reserved.
  7. //
  8. #import "EleFourTableVC.h"
  9. #import "EleOneCell.h"
  10. @interface EleFourTableVC ()
  11. @end
  12. @implementation EleFourTableVC
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. self.kemuStr = @"4";
  16. [self getData];
  17. [self.tableView registerNib:[UINib nibWithNibName:@"EleOneCell" bundle:nil] forCellReuseIdentifier:@"cellId"];
  18. self.tableView.estimatedRowHeight = 178;
  19. }
  20. - (void)didReceiveMemoryWarning {
  21. [super didReceiveMemoryWarning];
  22. // Dispose of any resources that can be recreated.
  23. }
  24. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  25. EleOneCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cellId" forIndexPath:indexPath];
  26. cell.kemu = 4;
  27. cell.dataDic = self.dataurce[indexPath.row];
  28. return cell;
  29. }
  30. @end