EleThreeTableVC.m 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // EleThreeTableVC.m
  3. // JSJPCoach
  4. //
  5. // Created by EchoShacolee on 2018/1/30.
  6. // Copyright © 2018年 Danson. All rights reserved.
  7. //
  8. #import "EleThreeTableVC.h"
  9. #import "EleTwoCell.h"
  10. #import "EleDetailVC.h"
  11. @interface EleThreeTableVC ()
  12. @end
  13. @implementation EleThreeTableVC
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. self.kemuStr = @"3";
  17. [self getData];
  18. [self.tableView registerNib:[UINib nibWithNibName:@"EleTwoCell" bundle:nil] forCellReuseIdentifier:@"cellId"];
  19. self.tableView.estimatedRowHeight = 224.5;
  20. }
  21. - (void)didReceiveMemoryWarning {
  22. [super didReceiveMemoryWarning];
  23. // Dispose of any resources that can be recreated.
  24. }
  25. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  26. EleTwoCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cellId" forIndexPath:indexPath];
  27. cell.dataDic = self.dataurce[indexPath.row];
  28. return cell;
  29. }
  30. -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
  31. EleDetailVC *vc = [[EleDetailVC alloc]init];
  32. vc.eLogId = [NSString stringWithFormat:@"%@",self.dataurce[indexPath.row][@"CRI_ID"]];
  33. [self.navigationController pushViewController:vc animated:YES];
  34. }
  35. @end