2012-02-02 13:56:09 +00:00
|
|
|
//
|
|
|
|
// OPGuideViewController.m
|
|
|
|
// OnePassword
|
|
|
|
//
|
|
|
|
// Created by Maarten Billemont on 30/01/12.
|
|
|
|
// Copyright (c) 2012 Lyndir. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "OPGuideViewController.h"
|
|
|
|
#import "OPAppDelegate.h"
|
|
|
|
|
|
|
|
@implementation OPGuideViewController
|
|
|
|
@synthesize scrollView;
|
|
|
|
|
|
|
|
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
|
|
|
|
|
|
|
|
return (interfaceOrientation == UIInterfaceOrientationPortrait);
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)viewDidLoad {
|
|
|
|
|
|
|
|
[super viewDidLoad];
|
|
|
|
|
|
|
|
[UIUtils autoSizeContent:self.scrollView];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)viewWillDisappear:(BOOL)animated {
|
|
|
|
|
|
|
|
[super viewWillDisappear:animated];
|
|
|
|
|
2012-02-02 23:10:58 +00:00
|
|
|
[OPConfig get].showQuickstart = [NSNumber numberWithBool:NO];
|
2012-02-02 13:56:09 +00:00
|
|
|
[[OPAppDelegate get] loadKeyPhrase];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)viewDidUnload {
|
|
|
|
|
|
|
|
[self setScrollView:nil];
|
|
|
|
[super viewDidUnload];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (IBAction)close {
|
|
|
|
|
|
|
|
[self.presentingViewController dismissModalViewControllerAnimated:YES];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|