12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // EleThreeTableVC.m
- // JSJPCoach
- //
- // Created by EchoShacolee on 2018/1/30.
- // Copyright © 2018年 Danson. All rights reserved.
- //
- #import "EleThreeTableVC.h"
- #import "EleTwoCell.h"
- #import "EleDetailVC.h"
- @interface EleThreeTableVC ()
- @end
- @implementation EleThreeTableVC
- - (void)viewDidLoad {
- [super viewDidLoad];
-
- self.kemuStr = @"3";
- [self getData];
- [self.tableView registerNib:[UINib nibWithNibName:@"EleTwoCell" bundle:nil] forCellReuseIdentifier:@"cellId"];
- self.tableView.estimatedRowHeight = 224.5;
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- EleTwoCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cellId" forIndexPath:indexPath];
- cell.dataDic = self.dataurce[indexPath.row];
- return cell;
- }
- -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
- EleDetailVC *vc = [[EleDetailVC alloc]init];
- vc.eLogId = [NSString stringWithFormat:@"%@",self.dataurce[indexPath.row][@"CRI_ID"]];
- [self.navigationController pushViewController:vc animated:YES];
- }
- @end
|