Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
Styling tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Morgan committed Jan 4, 2017
1 parent ed6910a commit faaf37a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BFRTableReorder/BFRTableReorder/ViewController.m
Expand Up @@ -28,12 +28,13 @@ - (void)viewDidLoad {
NSMutableArray *section2 = [[NSMutableArray alloc] initWithObjects:@"3", @"4", nil];
NSMutableArray *section3 = [[NSMutableArray alloc] initWithObjects:@"5", @"6", nil];
self.multipleItems = [[NSMutableArray alloc] initWithArray:@[section1, section2, section3]];

self.tableNode = [[ASTableNode alloc] initWithStyle:self.useMultipleSections ? UITableViewStyleGrouped : UITableViewStylePlain];
self.tableNode.delegate = self;
self.tableNode.dataSource = self;
self.tableNode.reorder.delegate = self;
self.tableNode.allowsSelection = NO;
self.tableNode.view.separatorStyle = UITableViewCellSeparatorStyleNone;
self.tableNode.backgroundColor = [UIColor groupTableViewBackgroundColor];

[self.view addSubnode:self.tableNode];
}
Expand Down Expand Up @@ -100,6 +101,7 @@ - (ASCellNodeBlock)tableNode:(ASTableNode *)tableNode nodeBlockForRowAtIndexPath
return ^{
ASTextCellNode *textCellNode = [ASTextCellNode new];
textCellNode.text = itemText;
textCellNode.backgroundColor = [UIColor whiteColor];
return textCellNode;
};
}
Expand Down

0 comments on commit faaf37a

Please sign in to comment.