From faaf37a2b0c182f0826b490a34ab375a31b6f580 Mon Sep 17 00:00:00 2001 From: Jordan Morgan Date: Wed, 4 Jan 2017 15:13:52 -0600 Subject: [PATCH] Styling tweaks --- BFRTableReorder/BFRTableReorder/ViewController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BFRTableReorder/BFRTableReorder/ViewController.m b/BFRTableReorder/BFRTableReorder/ViewController.m index 060f772..dc4cc2e 100644 --- a/BFRTableReorder/BFRTableReorder/ViewController.m +++ b/BFRTableReorder/BFRTableReorder/ViewController.m @@ -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]; } @@ -100,6 +101,7 @@ - (ASCellNodeBlock)tableNode:(ASTableNode *)tableNode nodeBlockForRowAtIndexPath return ^{ ASTextCellNode *textCellNode = [ASTextCellNode new]; textCellNode.text = itemText; + textCellNode.backgroundColor = [UIColor whiteColor]; return textCellNode; }; }