MyAccountVC.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // MyAccountVC.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2020/4/29.
  6. // Copyright © 2020 tederen. All rights reserved.
  7. //
  8. #import "MyAccountVC.h"
  9. #import "MyAccountCell.h"
  10. @interface MyAccountVC ()<UITableViewDelegate,UITableViewDataSource>
  11. @property (weak, nonatomic) IBOutlet UITableView *tableView;
  12. @end
  13. @implementation MyAccountVC
  14. +(MyAccountVC *)initMyAccountVC{
  15. MyAccountVC *controller = [StoryboardManager.shared.myCenter instantiateViewControllerWithIdentifier:@"MyAccountVC"];
  16. return controller;
  17. }
  18. - (void)viewDidLoad {
  19. [super viewDidLoad];
  20. self.fd_prefersNavigationBarHidden = YES;
  21. [self.view setBackgroundColor:UIColorHex(0xf7f7f7)];
  22. self.tableView.delegate = self;
  23. self.tableView.dataSource = self;
  24. [self.tableView reloadData];
  25. }
  26. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  27. {
  28. return 5;
  29. }
  30. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  31. {
  32. return [MyAccountCell configCellHeight];
  33. }
  34. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  35. {
  36. MyAccountCell * cell = [MyAccountCell configCell:tableView indexPath:indexPath];
  37. return cell;
  38. }
  39. @end