Skip to content

Commit 3ab8ca2

Browse files
committed
Minor enhancements to the sample project
1 parent cdcc1ec commit 3ab8ca2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

TableViewCellWithAutoLayout/TableViewController/RJTableViewController.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ - (id)initWithStyle:(UITableViewStyle)style
4747
{
4848
self = [super initWithStyle:style];
4949
if (self) {
50-
// Custom initialization
51-
self.title = @"Table View Controller";
5250
self.model = [[RJModel alloc] init];
5351
[self.model populateDataSource];
5452
}
@@ -61,9 +59,11 @@ - (void)viewDidLoad
6159

6260
[self.tableView registerClass:[RJTableViewCell class] forCellReuseIdentifier:CellIdentifier];
6361

62+
self.title = @"Auto Layout Table View";
6463
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemTrash target:self action:@selector(clear:)];
65-
6664
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addRow:)];
65+
66+
self.tableView.allowsSelection = NO;
6767
}
6868

6969
- (void)viewDidAppear:(BOOL)animated

0 commit comments

Comments
 (0)