diff options
author | Vitaly Takmazov | 2014-01-30 17:16:06 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2014-01-30 17:16:17 +0400 |
commit | 63f9e9576991fa8e50ca728836c6ba6917bbbc26 (patch) | |
tree | fed956ca4f77869f37ddd561d7fc3e4129d66317 /Juick/AppDelegate.m | |
parent | c0a5f540950dcf34eb08dc990ec753df6ae98ede (diff) |
LoginView
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r-- | Juick/AppDelegate.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index 7ccaf13..779de12 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -10,6 +10,7 @@ #import "MessagesViewController.h" #import "RevealPanelViewController.h" #import "SWRevealViewController.h" +#import "LoginViewController.h" #import "ColorScheme.h" #import "Message.h" @@ -30,6 +31,11 @@ AFNetworkActivityIndicatorManager.sharedManager.enabled = YES; + NSURL *baseURL = [NSURL URLWithString:@"https://api.juick.com"]; + AFHTTPClient* client = [[AFHTTPClient alloc] initWithBaseURL:baseURL]; + RKObjectManager *objectManager = [[RKObjectManager alloc] initWithHTTPClient:client]; + [RKObjectManager setSharedManager:objectManager]; + MessagesViewController *messages = [[MessagesViewController alloc] init]; RevealPanelViewController *rear = [[RevealPanelViewController alloc] init]; @@ -51,7 +57,7 @@ split.delegate = messages; self.viewController = split; } - [messages loadFromURL:[NSURL URLWithString:[Message messagesUrl]] withTitle:@"Discover"]; + [messages loadFromPath:[Message messagesUrl] withParams:nil withTitle:@"Discover"]; self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.rootViewController = self.viewController; |