summaryrefslogtreecommitdiff
path: root/Juick/RevealPanelViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/RevealPanelViewController.m')
-rw-r--r--Juick/RevealPanelViewController.m15
1 files changed, 9 insertions, 6 deletions
diff --git a/Juick/RevealPanelViewController.m b/Juick/RevealPanelViewController.m
index 563e06d..3b6a446 100644
--- a/Juick/RevealPanelViewController.m
+++ b/Juick/RevealPanelViewController.m
@@ -47,8 +47,9 @@ static NSString *CellIdentifier = @"NavCell";
[self.tableView setBackgroundColor:[ColorScheme navbarBackground]];
self.tableView.delegate = self;
self.tableView.dataSource = self;
- self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
- self.tableView.separatorColor =[UIColor blackColor];
+ [self.tableView setSeparatorInset:UIEdgeInsetsZero];
+ self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
+ self.tableView.separatorColor =[UIColor darkGrayColor];
[self.tableView registerClass:[NavCell class] forCellReuseIdentifier:CellIdentifier];
[self.view addSubview:self.tableView];
self.signButton = [[UIButton alloc] init];
@@ -116,8 +117,8 @@ static NSString *CellIdentifier = @"NavCell";
[cell.contentView setBackgroundColor:[ColorScheme navbarBackground]];
cell.iconLabel.font = [UIFont fontWithName:kFontAwesomeFamilyName size:32.f];
cell.iconLabel.textColor = [ColorScheme navbarFont];
- cell.iconLabel.backgroundColor = [ColorScheme navbarBackground];
- cell.descriptionTextLabel.backgroundColor = [ColorScheme navbarBackground];
+ //cell.iconLabel.backgroundColor = [ColorScheme navbarBackground];
+ //cell.descriptionTextLabel.backgroundColor = [ColorScheme navbarBackground];
cell.descriptionTextLabel.textColor = [ColorScheme navbarFont];
if (row == 0) {
cell.descriptionTextLabel.text = @"My feed";
@@ -133,8 +134,10 @@ static NSString *CellIdentifier = @"NavCell";
cell.descriptionTextLabel.text = @"Images";
cell.iconLabel.text = [NSString fontAwesomeIconStringForEnum:FAIconPicture];
}
- [cell setNeedsUpdateConstraints];
- [cell updateConstraintsIfNeeded];
+ UIView *bgColorView = [[UIView alloc] init];
+ bgColorView.backgroundColor = [UIColor blackColor];
+ bgColorView.layer.masksToBounds = YES;
+ [cell setSelectedBackgroundView:bgColorView];
[cell.contentView setNeedsLayout];
[cell.contentView layoutIfNeeded];
return cell;