From a4d2e426a36111a2da3683025ab129ef701d5a3f Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Tue, 17 Dec 2013 11:49:37 +0400
Subject: FontAwesome
---
Juick/Juick-Info.plist | 6 ++++++
Juick/RevealPanelViewController.h | 1 +
Juick/RevealPanelViewController.m | 18 +++++++++++-------
3 files changed, 18 insertions(+), 7 deletions(-)
(limited to 'Juick')
diff --git a/Juick/Juick-Info.plist b/Juick/Juick-Info.plist
index 3776ab8..2f29b33 100644
--- a/Juick/Juick-Info.plist
+++ b/Juick/Juick-Info.plist
@@ -48,6 +48,12 @@
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
+ UIAppFonts
+
+ FontAwesome.ttf
+
+ NSHumanReadableCopyright
+
UIViewControllerBasedStatusBarAppearance
diff --git a/Juick/RevealPanelViewController.h b/Juick/RevealPanelViewController.h
index a8196fe..5a90b99 100644
--- a/Juick/RevealPanelViewController.h
+++ b/Juick/RevealPanelViewController.h
@@ -7,6 +7,7 @@
//
#import
+#import
@interface RevealPanelViewController : UITableViewController
diff --git a/Juick/RevealPanelViewController.m b/Juick/RevealPanelViewController.m
index ec575a0..ecac5df 100644
--- a/Juick/RevealPanelViewController.m
+++ b/Juick/RevealPanelViewController.m
@@ -59,21 +59,25 @@
UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
NSInteger row = indexPath.row;
if (cell == nil) {
- cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
+ cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:cellIdentifier];
[cell setBackgroundColor:[ColorsAndButtons navbarBackground]];
+ cell.textLabel.font = [UIFont fontWithName:kFontAwesomeFamilyName size:20.f];
cell.textLabel.textColor = [ColorsAndButtons navbarFont];
+ cell.detailTextLabel.textColor = [ColorsAndButtons navbarFont];
}
if (row == 0) {
- cell.textLabel.text = @"My feed";
- [cell.imageView setImage:[ColorsAndButtons homeImage]];
+ cell.detailTextLabel.text = @"My feed";
+ cell.textLabel.text = [NSString fontAwesomeIconStringForEnum:FAIconHome];
} else if (row == 1) {
- cell.textLabel.text = @"Popular";
+ cell.detailTextLabel.text = @"Popular";
+ cell.textLabel.text = [NSString fontAwesomeIconStringForEnum:FAIconComments];
} else if (row == 2) {
- cell.textLabel.text = @"Discover";
- [cell.imageView setImage:[ColorsAndButtons discoverImage]];
+ cell.detailTextLabel.text = @"Discover";
+ cell.textLabel.text = [NSString fontAwesomeIconStringForEnum:FAIconSearch];
} else if (row == 3) {
- cell.textLabel.text = @"Images";
+ cell.detailTextLabel.text = @"Images";
+ cell.textLabel.text = [NSString fontAwesomeIconStringForEnum:FAIconPicture];
}
return cell;
}
--
cgit v1.2.3