diff options
author | Vitaly Takmazov | 2014-02-02 02:20:51 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2014-02-02 02:20:51 +0400 |
commit | 4fd723c665a2b828447fcc9476c752803f76ea35 (patch) | |
tree | f4bd728cba48b69b659c2f986d12e7360d7b7141 /Juick/RevealPanelViewController.m | |
parent | d52c86da9751f221a24c21ec903656e279ba885a (diff) |
revealview improvements
Diffstat (limited to 'Juick/RevealPanelViewController.m')
-rw-r--r-- | Juick/RevealPanelViewController.m | 15 |
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; |