Minor formatting changes

This commit is contained in:
Roman Efimov
2014-02-03 15:35:44 -08:00
parent b67160cd2d
commit d284d77b5c

View File

@@ -37,14 +37,15 @@
// Add table footer view
//
UIButton *loadMoreButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
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];
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 58)];
[self.tableView.tableFooterView addSubview:loadMoreButton];
[self.tableView.tableFooterView addSubview:({
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
button.frame = CGRectMake(40, 7, 240, 44);
button.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
[button setTitle:@"Load more" forState:UIControlStateNormal];
[button addTarget:self action:@selector(loadMoreButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
button;
})];
// Add items
//