// // KXADBaseTableView.m // CAISHEN // // Created by 王奥东 on 2018/9/17. // Copyright © 2018年 kuxuan. All rights reserved. // #import "KXADBaseTableView.h" @interface KXADBaseTableView() @end @implementation KXADBaseTableView -(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style { if (self = [super initWithFrame:frame style:style]) { [self setup]; } return self; } -(instancetype)init { if (self = [super init]) { [self setup]; } return self; } -(void)setup { self.delegate = self; self.dataSource = self; self.separatorStyle = UITableViewCellSeparatorStyleNone; self.showsVerticalScrollIndicator = NO; self.showsHorizontalScrollIndicator = NO; } - (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath { return [[UITableViewCell alloc] init];; } - (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 0; } @end