File tree Expand file tree Collapse file tree
TableViewCellWithAutoLayout/TableViewController Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments