mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-05-14 04:14:32 +08:00
Refactor example project
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
loadMoreButton.frame = CGRectMake(40, 7, 240, 44);
|
||||
loadMoreButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
|
||||
[loadMoreButton setTitle:@"Load more" forState:UIControlStateNormal];
|
||||
[loadMoreButton addTarget:self action:@selector(loadMoreButtonPressed) forControlEvents:UIControlEventTouchUpInside];
|
||||
[loadMoreButton addTarget:self action:@selector(loadMoreButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 58)];
|
||||
[self.tableView.tableFooterView addSubview:loadMoreButton];
|
||||
@@ -96,7 +96,7 @@
|
||||
#pragma mark -
|
||||
#pragma mark Button actions
|
||||
|
||||
- (void)loadMoreButtonPressed
|
||||
- (void)loadMoreButtonPressed:(id)sender
|
||||
{
|
||||
[self addItems];
|
||||
[self.tableView reloadData];
|
||||
|
||||
Reference in New Issue
Block a user