File tree Expand file tree Collapse file tree 3 files changed +1
-14
lines changed
KtBaseModel/KtBaseListModel Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 1616
1717#import " MJRefresh.h"
1818
19- @interface KTMainViewController ()<KtBaseListModelProtocol>
20-
21- // @property (strong, nonatomic) KtMainTableModel *model;
22-
23- @end
24-
2519@implementation KTMainViewController
2620
2721- (void )viewDidLoad {
2822 [super viewDidLoad ];
2923 [self createModel ];
30- // Do any additional setup after loading the view, typically from a nib.
3124}
3225
3326- (void )createModel {
@@ -39,11 +32,6 @@ - (void)createDataSource {
3932 self.dataSource = [[KtMainTableViewDataSource alloc ] init ]; // 这一步创建了数据源
4033}
4134
42- - (void )didReceiveMemoryWarning {
43- [super didReceiveMemoryWarning ];
44- // Dispose of any resources that can be recreated.
45- }
46-
4735- (void )requestDidSuccess {
4836 for (KtMainTableBookItem *book in ((KtMainTableModel *)self.listModel ).tableViewItem .books ) {
4937 KtTableViewBaseItem *item = [[KtTableViewBaseItem alloc ] init ];
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ - (void)didLoadLastPage {
3737 [self .tableView.mj_footer endRefreshingWithNoMoreData ];
3838}
3939
40- #pragma -mark
40+ #pragma -mark KtTableViewDelegate
4141- (void )pullUpToRefreshAction {
4242 [self .listModel loadNextPage ];
4343}
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ - (void)awakeFromNib {
1717
1818- (void )setSelected : (BOOL )selected animated : (BOOL )animated {
1919 [super setSelected: selected animated: animated];
20-
2120 // Configure the view for the selected state
2221}
2322
You can’t perform that action at this time.
0 commit comments