EleMinRecordListVC.m 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // EleMinRecordListVC.m
  3. // JSJPCoach
  4. //
  5. // Created by EchoShacolee on 2018/1/31.
  6. // Copyright © 2018年 Danson. All rights reserved.
  7. //
  8. #import "EleMinRecordListVC.h"
  9. #import "EleDetailCell.h"
  10. @interface EleMinRecordListVC ()
  11. @end
  12. @implementation EleMinRecordListVC
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. self.tableView.estimatedRowHeight = 90;
  16. [self.tableView registerNib:[UINib nibWithNibName:@"EleDetailCell" bundle:nil] forCellReuseIdentifier:@"cellId"];
  17. self.tableView.tableFooterView = [UIView new];
  18. }
  19. - (void)didReceiveMemoryWarning {
  20. [super didReceiveMemoryWarning];
  21. // Dispose of any resources that can be recreated.
  22. }
  23. #pragma mark - Table view data source
  24. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  25. return self.dataArr.count;
  26. }
  27. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  28. EleDetailCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cellId" forIndexPath:indexPath];
  29. cell.dataDic = self.dataArr[indexPath.row];
  30. return cell;
  31. }
  32. /*
  33. // Override to support conditional editing of the table view.
  34. - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
  35. // Return NO if you do not want the specified item to be editable.
  36. return YES;
  37. }
  38. */
  39. /*
  40. // Override to support editing the table view.
  41. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
  42. if (editingStyle == UITableViewCellEditingStyleDelete) {
  43. // Delete the row from the data source
  44. [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
  45. } else if (editingStyle == UITableViewCellEditingStyleInsert) {
  46. // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
  47. }
  48. }
  49. */
  50. /*
  51. // Override to support rearranging the table view.
  52. - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
  53. }
  54. */
  55. /*
  56. // Override to support conditional rearranging of the table view.
  57. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
  58. // Return NO if you do not want the item to be re-orderable.
  59. return YES;
  60. }
  61. */
  62. /*
  63. #pragma mark - Navigation
  64. // In a storyboard-based application, you will often want to do a little preparation before navigation
  65. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  66. // Get the new view controller using [segue destinationViewController].
  67. // Pass the selected object to the new view controller.
  68. }
  69. */
  70. @end