-
Notifications
You must be signed in to change notification settings - Fork 0
/
DocumentViewer.m
168 lines (105 loc) · 4.27 KB
/
DocumentViewer.m
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
//
// DocumentViewer.m
// Formulae
//
// Created by Sam Vale on 31/08/13.
// Copyright (c) 2013 David McAfee. All rights reserved.
//
#import "DocumentViewer.h"
@interface DocumentViewer ()
@end
@implementation DocumentViewer
@synthesize Label8,Label7,Label6,Label5,Label4,Label3,Label2,Label;
@synthesize scroll;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
-(IBAction)usub {
NSString *name = @"Integration By Substitution";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
-(IBAction)exponent {
NSString *name = @"Year 10 Exponents Quiz";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
-(IBAction)diffCalc {
NSString *name = @"Differential Calculus Quiz";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
-(IBAction)quads {
NSString *name = @"Year 11 Quadratics Elicitation";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
-(IBAction)stats {
NSString *name = @"Statistics";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
-(IBAction)binomialRevision {
NSString *name = @"Mathematics Binomial Revision";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
-(IBAction)fractions {
NSString *name = @"Fractions Examination";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
-(IBAction)moles {
NSString *name = @"An introduction to moles";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
-(IBAction)physics {
NSString *name = @"Physics Textbook";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:name forKey:@"name"];
[defaults synchronize];
self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Viewer"];
}
- (void)viewDidLoad
{
[super viewDidLoad];
[Label setFont:[UIFont fontWithName:@"Kefa" size:14]];
[Label2 setFont:[UIFont fontWithName:@"Kefa" size:14]];
[Label3 setFont:[UIFont fontWithName:@"Kefa" size:14]];
[Label4 setFont:[UIFont fontWithName:@"Kefa" size:14]];
[Label5 setFont:[UIFont fontWithName:@"Kefa" size:14]];
[Label6 setFont:[UIFont fontWithName:@"Kefa" size:14]];
[Label7 setFont:[UIFont fontWithName:@"Kefa" size:14]];
[Label8 setFont:[UIFont fontWithName:@"Kefa" size:14]];
}
-(IBAction)returnToPreviousView{
[self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end