-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTut1ViewController.m
64 lines (49 loc) · 1.98 KB
/
Tut1ViewController.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
//
// Tut1ViewController.m
// wtbtest
//
// Created by Jack Ryder on 24/02/2016.
// Copyright © 2016 Jack Ryder. All rights reserved.
//
#import "Tut1ViewController.h"
@interface Tut1ViewController ()
@end
@implementation Tut1ViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self.startButton setHidden:YES];
self.mainLabel.adjustsFontSizeToFitWidth = YES;
self.mainLabel.minimumScaleFactor=0.5;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}
-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
[self.pageControl setCurrentPage:self.index];
if (self.index == 0) {
self.mainTitle.text = @"Selling";
self.mainLabel.text = @"Listings show how much the buyer is willing to pay and the condition of the item they wantobuy";
self.imageView.image = [UIImage imageNamed:@"pic1"];
}
else if (self.index == 1){
self.mainTitle.text = @"Selling";
self.mainLabel.text = @"Hit the filter button to refine your search results when looking for items people wantobuy";
self.imageView.image = [UIImage imageNamed:@"pic2"];
}
else if (self.index == 2){
self.mainTitle.text = @"Buying";
self.mainLabel.text = @"Create listings for items you wantobuy. By telling sellers what you want, you can sit back & wait for them to send you offers to purchase their items";
self.imageView.image = [UIImage imageNamed:@"pic3"];
}
else if (self.index == 3){
self.mainTitle.text = @"Buying";
self.mainLabel.text = @"We offer authenticity checks for any item bought for a small fee. You can decide right before you pay. All Payments are made securely using PayPal";
self.imageView.image = [UIImage imageNamed:@"paypal"];
[self.startButton setHidden:NO];
}
}
- (IBAction)startPressed:(id)sender {
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
}
@end