Refactor example project

This commit is contained in:
Roman Efimov
2013-07-26 13:49:04 -05:00
parent eb3e975d35
commit e6082d11f9

View File

@@ -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];