| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // GKBaseTableViewController.m
- // GKPageScrollView
- //
- // Created by QuintGao on 2018/10/28.
- // Copyright © 2018 QuintGao. All rights reserved.
- //
- #import "GKBaseTableViewController.h"
- @interface GKBaseTableViewController ()
- @end
- @implementation GKBaseTableViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
-
- [self.view addSubview:self.tableView];
-
- [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.edges.equalTo(self.view);
- }];
- }
- #pragma mark - UITableViewDataSource & UITableViewDelegate
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return 0;
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- return nil;
- }
- #pragma mark - 懒加载
- - (UITableView *)tableView {
- if (!_tableView) {
- _tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
- _tableView.dataSource = self;
- _tableView.delegate = self;
- if (@available(iOS 11.0, *)) {
- _tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
- }
- }
- return _tableView;
- }
- @end
|