Skip to content
This repository
tree: 925662ff65
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 60 lines (41 sloc) 1.49 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
//
// DTLicenseAgreementViewController.m
// DTKit
//
// Created by Daniel Tull on 25.04.2009.
// Copyright 2009 Daniel Tull. All rights reserved.
//

#import "DTLicenseAgreementViewController.h"


@implementation DTLicenseAgreementViewController

@synthesize webView;

- (id)init {
if (!(self = [self initWithNibName:@"DTLicenseAgreementView" bundle:nil]))
return nil;

self.title = @"Source License";

    return self;
}

/*
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
}
*/


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
NSString *webString = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"license" ofType:@"html"] encoding:NSUTF8StringEncoding error:NULL];
[self.webView loadHTMLString:webString baseURL:nil];
}



// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return YES; //(interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
    // Release anything that's not essential, such as cached data
}


- (void)dealloc {
[webView release]; webView = nil;
    [super dealloc];
}


@end
Something went wrong with that request. Please try again.