From 4fd723c665a2b828447fcc9476c752803f76ea35 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 2 Feb 2014 02:20:51 +0400 Subject: revealview improvements --- Juick/RevealPanelViewController.m | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Juick/RevealPanelViewController.m') 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; -- cgit v1.2.3