|
| 1 | +// |
| 2 | +// ___FILENAME___ |
| 3 | +// ___PROJECTNAME___ |
| 4 | +// |
| 5 | +// Created by ___FULLUSERNAME___ on ___DATE___. |
| 6 | +//___COPYRIGHT___ |
| 7 | +// |
| 8 | + |
| 9 | +#import "___FILEBASENAME___.h" |
| 10 | + |
| 11 | +@interface ___FILEBASENAMEASIDENTIFIER___ () |
| 12 | + |
| 13 | +@end |
| 14 | + |
| 15 | +@implementation ___FILEBASENAMEASIDENTIFIER___ |
| 16 | + |
| 17 | +- (instancetype)initWithStyle:(UITableViewStyle)style { |
| 18 | + if (self = [super initWithStyle:style]) { |
| 19 | + |
| 20 | + } |
| 21 | + return self; |
| 22 | +} |
| 23 | + |
| 24 | +#pragma mark - 生命周期函数 |
| 25 | + |
| 26 | +- (void)dealloc { |
| 27 | + |
| 28 | +} |
| 29 | + |
| 30 | +- (void)loadView { |
| 31 | + [super loadView]; |
| 32 | +} |
| 33 | + |
| 34 | +- (void)viewDidLoad { |
| 35 | + [super viewDidLoad]; |
| 36 | +} |
| 37 | + |
| 38 | +- (void)viewWillAppear:(BOOL)animated { |
| 39 | + [super viewWillAppear:animated]; |
| 40 | +} |
| 41 | + |
| 42 | +- (void)viewDidAppear:(BOOL)animated { |
| 43 | + [super viewDidAppear:animated]; |
| 44 | +} |
| 45 | + |
| 46 | +- (void)viewWillDisappear:(BOOL)animated { |
| 47 | + [super viewWillDisappear:animated]; |
| 48 | +} |
| 49 | + |
| 50 | +- (void)viewDidDisappear:(BOOL)animated { |
| 51 | + [super viewDidDisappear:animated]; |
| 52 | +} |
| 53 | + |
| 54 | +- (void)viewDidLayoutSubviews { |
| 55 | + [super viewDidLayoutSubviews]; |
| 56 | +} |
| 57 | + |
| 58 | +#pragma mark - 工具方法 |
| 59 | + |
| 60 | +- (void)willPopViewController { |
| 61 | + [super willPopViewController]; |
| 62 | +} |
| 63 | + |
| 64 | +- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated { |
| 65 | + [super setNavigationItemsIsInEditMode:isInEditMode animated:animated]; |
| 66 | +// self.title = @"xxx"; |
| 67 | +} |
| 68 | + |
| 69 | +- (void)setToolbarItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated { |
| 70 | + [super setToolbarItemsIsInEditMode:isInEditMode animated:animated]; |
| 71 | +} |
| 72 | + |
| 73 | +#pragma mark - TableView Delegate & DataSource |
| 74 | + |
| 75 | +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { |
| 76 | + return 0; |
| 77 | +} |
| 78 | + |
| 79 | +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { |
| 80 | + static NSString *identifier = @"cell"; |
| 81 | + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; |
| 82 | + if (!cell) { |
| 83 | + cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; |
| 84 | + } |
| 85 | + |
| 86 | + return cell; |
| 87 | +} |
| 88 | + |
| 89 | +- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { |
| 90 | + return 44; |
| 91 | +} |
| 92 | + |
| 93 | +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
| 94 | + |
| 95 | +} |
| 96 | + |
| 97 | +@end |
0 commit comments