123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // MyAccountVC.m
- // smartRhino
- //
- // Created by niuzhen on 2020/4/29.
- // Copyright © 2020 tederen. All rights reserved.
- //
- #import "MyAccountVC.h"
- #import "MyAccountCell.h"
- @interface MyAccountVC ()<UITableViewDelegate,UITableViewDataSource>
- @property (weak, nonatomic) IBOutlet UITableView *tableView;
- @end
- @implementation MyAccountVC
- +(MyAccountVC *)initMyAccountVC{
- MyAccountVC *controller = [StoryboardManager.shared.myCenter instantiateViewControllerWithIdentifier:@"MyAccountVC"];
- return controller;
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.fd_prefersNavigationBarHidden = YES;
- [self.view setBackgroundColor:UIColorHex(0xf7f7f7)];
- self.tableView.delegate = self;
- self.tableView.dataSource = self;
- [self.tableView reloadData];
- }
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
- {
- return 5;
- }
- - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
- {
- return [MyAccountCell configCellHeight];
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
- {
- MyAccountCell * cell = [MyAccountCell configCell:tableView indexPath:indexPath];
- return cell;
- }
- @end
|