// // GroupSynopsisVC.m // smartRhino // // Created by niuzhen on 2020/6/15. // Copyright © 2020 tederen. All rights reserved. // #import "GroupSynopsisVC.h" #import "GroupSynopsisCell.h" @interface GroupSynopsisVC () @property (weak, nonatomic) IBOutlet UITableView *tableView; @property (weak, nonatomic) IBOutlet UIButton *joinBtn; @end @implementation GroupSynopsisVC +(GroupSynopsisVC *)initGroupSynopsisVC{ GroupSynopsisVC *controller = [StoryboardManager.shared.Source instantiateViewControllerWithIdentifier:@"GroupSynopsisVC"]; return controller; } - (void)viewDidLoad { [super viewDidLoad]; self.fd_prefersNavigationBarHidden = YES; self.tableView.delegate = self; self.tableView.dataSource = self; } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return UITableViewAutomaticDimension; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 4; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { switch (indexPath.row) { case 0: { GroupSynopsisCell * cell = [GroupSynopsisCell configCell3:tableView indexPath:indexPath]; [cell setContentText:@""]; [cell.moreBtn setAction:^{ }]; return cell; } break; case 1: { GroupSynopsisCell * cell = [GroupSynopsisCell configCell0:tableView indexPath:indexPath]; [cell setData]; return cell; } break; case 2: { GroupSynopsisCell * cell = [GroupSynopsisCell configCell1:tableView indexPath:indexPath]; [cell setCollData]; return cell; } break; default: { GroupSynopsisCell * cell = [GroupSynopsisCell configCell2:tableView indexPath:indexPath]; return cell; } break; } } @end