diff options
author | Vitaly Takmazov | 2013-11-05 00:10:01 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2013-11-05 00:10:01 +0400 |
commit | fad0e1e93e1f2e145970829f81a0c20e42eba09a (patch) | |
tree | 2f69b3fb901e66e9fa01f876b110649ac4acef41 /Juick/RevealPanelViewController.m | |
parent | 08574251153406e4755f58c2ee5548ee32e308fb (diff) |
RevealViewController and small other additions
Diffstat (limited to 'Juick/RevealPanelViewController.m')
-rw-r--r-- | Juick/RevealPanelViewController.m | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Juick/RevealPanelViewController.m b/Juick/RevealPanelViewController.m new file mode 100644 index 0000000..3381e28 --- /dev/null +++ b/Juick/RevealPanelViewController.m @@ -0,0 +1,69 @@ +// +// RevealPanelViewController.m +// Juick +// +// Created by Vitaly Takmazov on 04.11.13. +// Copyright (c) 2013 com.juick. All rights reserved. +// + +#import "RevealPanelViewController.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:[UIColor colorWithRed:238/255.0f green:238/255.0f blue:229/255.0f alpha:1.0f]]; +} + +- (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 setBackgroundColor:[UIColor colorWithRed:236/255.0f green:237/255.0f blue:227/255.0f alpha:1]]; + cell.textLabel.textColor = [UIColor colorWithRed:0 green:102/255.0f blue:153/255.0f alpha:1.0f]; + } + 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 |