123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // KXADBaseTableView.m
- // CAISHEN
- //
- // Created by 王奥东 on 2018/9/17.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "KXADBaseTableView.h"
- @interface KXADBaseTableView()<UITableViewDataSource,UITableViewDelegate>
- @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
|