Skip to content

Commit 3578dbc

Browse files
author
Joey Lorich
committed
Merge in menu changes
2 parents d67fe45 + b3fb8ac commit 3578dbc

24 files changed

Lines changed: 568 additions & 283 deletions

EasyReader.xcodeproj/project.pbxproj

Lines changed: 48 additions & 14 deletions
Large diffs are not rendered by default.

EasyReader/Application/AppDelegates/CSAppDelegate.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ - (void)setUpApplicationWindow
4747
{
4848
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
4949

50-
CSMenuLeftViewController *leftMenuViewController = [[CSMenuLeftViewController alloc] init];
50+
UIStoryboard *mainStoryBoard = [UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil];
51+
52+
CSMenuLeftViewController *leftMenuViewController = (CSMenuLeftViewController*)[mainStoryBoard instantiateViewControllerWithIdentifier:@"LeftMenu"];
53+
5154
CSRootViewController *rootVC = [[CSRootViewController alloc] init];
5255

5356
MFSideMenuContainerViewController *container = [MFSideMenuContainerViewController

EasyReader/Application/AppDelegates/CSRegisterRoutesService.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1616
[[APIRouter shared] registerRoute:@"feedDefaults" path:@"/feeds/default/" requestMethod:kAPIRequestMethodGET];
1717
[[APIRouter shared] registerRoute:@"feedCreate" path:@"/feeds/" requestMethod:kAPIRequestMethodPOST];
1818
[[APIRouter shared] registerRoute:@"feedSearch" path:@"/feeds/search/" requestMethod:kAPIRequestMethodGET];
19-
[[APIRouter shared] registerRoute:@"feedItems" path:@"/feeds/" requestMethod:kAPIRequestMethodGET];
19+
[[APIRouter shared] registerRoute:@"feedItems" path:@"/feed_items/" requestMethod:kAPIRequestMethodGET];
2020

2121
return YES;
2222
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//
2+
// UIColor+EZRSharedColorAdditions.h
3+
// EasyReader
4+
//
5+
// Created by Michael Beattie on 3/24/14.
6+
// Copyright (c) 2014 Cloudspace. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
/**
12+
* Extends UIColor to provide a set of standard colors used across the application
13+
*/
14+
@interface UIColor (EZRSharedColorAdditions)
15+
16+
#pragma mark - Color Methods
17+
18+
/// The menu background color
19+
+ (UIColor *) EZR_menuBackground;
20+
21+
/// The menu input background color
22+
+ (UIColor *) EZR_menuInputBackground;
23+
24+
/// The gradient background color
25+
+ (UIColor *) EZR_charcoal;
26+
+ (UIColor *) EZR_charcoalWithOpacity:(float)opacity;
27+
28+
@end
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// UIColor+EZRSharedColorAdditions.m
3+
// EasyReader
4+
//
5+
// Created by Michael Beattie on 3/24/14.
6+
// Copyright (c) 2014 Cloudspace. All rights reserved.
7+
//
8+
9+
#import "UIColor+EZRSharedColorAdditions.h"
10+
11+
@implementation UIColor (EZRSharedColorAdditions)
12+
13+
#pragma mark - Color Methods
14+
15+
+ (UIColor *) EZR_menuBackground { return [UIColor colorWithRed:51/255.0 green:58/255.0 blue:74/255.0 alpha:1.0]; }
16+
+ (UIColor *) EZR_menuInputBackground { return [UIColor colorWithRed:67/255.0 green:74/255.0 blue:94/255.0 alpha:1.0]; }
17+
18+
+ (UIColor *) EZR_charcoal { return [UIColor EZR_charcoalWithOpacity:1]; }
19+
+ (UIColor *) EZR_charcoalWithOpacity:(float)opacity {
20+
return [UIColor colorWithRed:39/255.0f green:42/255.0f blue:44/255.0f alpha:opacity];
21+
}
22+
23+
@end

EasyReader/Application/Controllers/CSRootViewController.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
3838
return self;
3939
}
4040

41+
- (BOOL)shouldAutorotate
42+
{
43+
return NO;
44+
}
45+
46+
- (NSUInteger)supportedInterfaceOrientations
47+
{
48+
return UIInterfaceOrientationPortrait;
49+
}
50+
4151
/**
4252
* If the left menu is open, it closes it
4353
* Otherwise it opens to the left menu

0 commit comments

Comments
 (0)