// // RevealPanelViewController.m // Juick // // Created by Vitaly Takmazov on 04.11.13. // Copyright (c) 2013 com.juick. All rights reserved. // #import "RevealPanelViewController.h" #import "Colors.h" @interface RevealPanelViewController () @end @implementation RevealPanelViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization } return self; } - (void)viewDidLoad { [super viewDidLoad]; self.title = @"Juick"; [self.view setBackgroundColor:[Colors mainBackground]]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } - (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 4; } - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @"MenuCell"; UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; NSInteger row = indexPath.row; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier]; cell.textLabel.textColor = [Colors linkColor]; } if (row == 0) { cell.textLabel.text = @"My feed"; } else if (row == 1) { cell.textLabel.text = @"Popular"; } else if (row == 2) { cell.textLabel.text = @"Discover"; } else if (row == 3) { cell.textLabel.text = @"Images"; } return cell; } @end