Skip to content

Commit 0538bcd

Browse files
author
pbuchheit
committed
Removed a redundant call to add the refresh control to the table view.
1 parent 4ce15b3 commit 0538bcd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SWTableViewCell/ViewController.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ - (void)viewDidLoad {
3535
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
3636
[refreshControl addTarget:self action:@selector(toggleCells:) forControlEvents:UIControlEventValueChanged];
3737
refreshControl.tintColor = [UIColor blueColor];
38-
39-
[self.tableView addSubview:refreshControl];
38+
4039
self.refreshControl = refreshControl;
4140

4241
// If you set the seperator inset on iOS 6 you get a NSInvalidArgumentException...weird

0 commit comments

Comments
 (0)