-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakePrintCont.m
59 lines (54 loc) · 1.88 KB
/
MakePrintCont.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
//
// MakePrintCont.m
// photocopier
//
// Created by Zhansaya on 04.12.15.
// Copyright © 2015 Zhansaya. All rights reserved.
//
#import "MakePrintCont.h"
@interface MakePrintCont ()
@property (weak, nonatomic) IBOutlet UITextField *onefield;
@property (weak, nonatomic) IBOutlet UITextField *twofield;
@property (weak, nonatomic) IBOutlet UITextField *threefield;
@end
@implementation MakePrintCont
- (IBAction)one:(id)sender {
self.onefield.text = @"one side";
}
- (IBAction)both:(id)sender {
self.onefield.text = @"two sides";
}
- (IBAction)hor:(id)sender {
self.twofield.text = @"horizontal";
}
- (IBAction)ver:(id)sender {
self.twofield.text = @"vertical";
}
- (IBAction)black:(id)sender {
self.threefield.text = @"black";
}
- (IBAction)color:(id)sender {
self.threefield.text = @"colorful";
}
- (IBAction)print:(id)sender {
[self.kr1 startAnimating];
[self.kr1 setBackgroundColor:[UIColor grayColor]];
[self performSelector:@selector(mymethod1) withObject:nil afterDelay:3.0];
}
- (void) mymethod1 {
[self.kr1 stopAnimating];
self.kr1.hidden = YES;
UIAlertView *theAlert1 = [[UIAlertView alloc] initWithTitle:@""
message:@"This file is saved as 1.doc on memory"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[theAlert1 show];
UIAlertView *theAlert = [[UIAlertView alloc] initWithTitle:@""
message:@"This file is copied successfully"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[theAlert show];
}
@end