diff options
| author | Ronny Fenrich <Fenrich@Gmail.com> | 2013-06-13 16:21:41 -0600 |
|---|---|---|
| committer | Ronny Fenrich <Fenrich@Gmail.com> | 2013-06-13 16:21:41 -0600 |
| commit | 2b581c85487287d3fb03396e4b13c304bdffa6ab (patch) | |
| tree | d10e325aee2e9f3e1b3a808bbd8dd301f8e92d74 /Volta/Views | |
| parent | b1dc9d1458dcc1d4220e961d1b50169b660efac6 (diff) | |
Finished Login and basic UI for Stats selection
Diffstat (limited to 'Volta/Views')
| -rw-r--r-- | Volta/Views/LoginViewController.m | 2 | ||||
| -rw-r--r-- | Volta/Views/StatsViewController.h | 13 | ||||
| -rw-r--r-- | Volta/Views/StatsViewController.m | 53 |
3 files changed, 67 insertions, 1 deletions
diff --git a/Volta/Views/LoginViewController.m b/Volta/Views/LoginViewController.m index 4f3b10a..4ae5862 100644 --- a/Volta/Views/LoginViewController.m +++ b/Volta/Views/LoginViewController.m @@ -164,7 +164,7 @@ NSLog(@"%@", JSON); // check if login was successfull - NSString *token = [JSON objectForKey:@"token"]; + NSString *token = [JSON objectForKey:@"auth_token"]; if (!token || [token isEmpty]) { [self.HUD hide:YES]; diff --git a/Volta/Views/StatsViewController.h b/Volta/Views/StatsViewController.h new file mode 100644 index 0000000..87bf054 --- /dev/null +++ b/Volta/Views/StatsViewController.h @@ -0,0 +1,13 @@ +// +// StatsViewController.h +// Volta +// +// Created by Ronny Fenrich on 2013-06-13. +// Copyright (c) 2013 Decoder. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface StatsViewController : UIViewController + +@end diff --git a/Volta/Views/StatsViewController.m b/Volta/Views/StatsViewController.m new file mode 100644 index 0000000..baa1976 --- /dev/null +++ b/Volta/Views/StatsViewController.m @@ -0,0 +1,53 @@ +// +// StatsViewController.m +// Volta +// +// Created by Ronny Fenrich on 2013-06-13. +// Copyright (c) 2013 Decoder. All rights reserved. +// + +#import "StatsViewController.h" + +@interface StatsViewController () + +@property (weak, nonatomic) IBOutlet UITextField *startDate; +@property (weak, nonatomic) IBOutlet UITextField *endDate; +@property (weak, nonatomic) IBOutlet UIScrollView *content; + +@end + +@implementation StatsViewController + + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + self.navigationController.navigationBarHidden = NO; + self.navigationItem.hidesBackButton = YES; + self.navigationController.navigationBar.barStyle = UIBarStyleBlack; +} + +- (IBAction)statsCurrentMonth:(id)sender +{ + +} + +- (IBAction)statsLast30days:(id)sender { +} + +- (IBAction)statsLast60days:(id)sender { +} + +- (IBAction)statsCurrentYear:(id)sender { +} + +- (IBAction)statsStartdateEnddate:(id)sender { +} +- (void)viewDidUnload { + [self setStartDate:nil]; + [self setEndDate:nil]; + [self setContent:nil]; + [super viewDidUnload]; +} +@end |
