//
//  FindBottomCell.m
//  Open
//
//  Created by 雷俊博 on 2020/6/3.
//  Copyright © 2020 黄江涛 . All rights reserved.
//

#import "FindBottomCell.h"
#import "FindNewsCell.h"
#import "FindNews2Cell.h"

@interface FindBottomCell ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UITableView *tableView;


@end

@implementation FindBottomCell





          
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    //[self.tableView registerNib:[UINib nibWithNibName:@"FindNewsCell" bundle:nil] forCellReuseIdentifier:@"FindNewsCell"];
    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"cell"];
    [self.tableView registerClass:[FindNews2Cell class] forCellReuseIdentifier:@"cell2"];
}
#pragma mark - UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
   FindNews2Cell*cell = [tableView dequeueReusableCellWithIdentifier:@"cell2"];
    //UITableViewCell*cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    
    
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 90 * WIDTHRADIU;
}

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
    if (section == 0) {
        return 15 * WIDTHRADIU;
    }
    return 0.0;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
