@@ -27,10 +27,6 @@ - (instancetype)initWithFrame:(CGRect)frame{
27
27
self = [super initWithFrame: frame];
28
28
if (self){
29
29
30
- UIImageView *backgroundImageView = [[UIImageView alloc ] initWithFrame: self .frame];
31
- backgroundImageView.image = [UIImage imageNamed: @" Intro_Screen_Background" ];
32
- [self addSubview: backgroundImageView];
33
-
34
30
[self addSubview: self .scrollView];
35
31
[self addSubview: self .pageControl];
36
32
@@ -64,7 +60,7 @@ -(UIView *)viewOne {
64
60
UILabel *titleLabel = [[UILabel alloc ] initWithFrame: CGRectMake (0 , self .frame.size.height*.05 , self .frame.size.width*.8 , 60 )];
65
61
titleLabel.center = CGPointMake (self.center .x , self.frame .size .height *.1 );
66
62
titleLabel.text = [NSString stringWithFormat: @" Pixifly" ];
67
- titleLabel.font = [UIFont fontWithName: @" HelveticaNeue " size :40.0 ];
63
+ titleLabel.font = [UIFont systemFontOfSize :40.0 ];
68
64
titleLabel.textColor = [UIColor whiteColor ];
69
65
titleLabel.textAlignment = NSTextAlignmentCenter;
70
66
titleLabel.numberOfLines = 0 ;
@@ -77,7 +73,7 @@ -(UIView *)viewOne {
77
73
78
74
UILabel *descriptionLabel = [[UILabel alloc ] initWithFrame: CGRectMake (self .frame.size.width*.1 , self .frame.size.height*.7 , self .frame.size.width*.8 , 60 )];
79
75
descriptionLabel.text = [NSString stringWithFormat: @" Description for First Screen." ];
80
- descriptionLabel.font = [UIFont fontWithName: @" HelveticaNeue-Thin " size :18.0 ];
76
+ descriptionLabel.font = [UIFont systemFontOfSize :18.0 ];
81
77
descriptionLabel.textColor = [UIColor whiteColor ];
82
78
descriptionLabel.textAlignment = NSTextAlignmentCenter;
83
79
descriptionLabel.numberOfLines = 0 ;
@@ -102,7 +98,7 @@ -(UIView *)viewTwo {
102
98
UILabel *titleLabel = [[UILabel alloc ] initWithFrame: CGRectMake (0 , self .frame.size.height*.05 , self .frame.size.width*.8 , 60 )];
103
99
titleLabel.center = CGPointMake (self.center .x , self.frame .size .height *.1 );
104
100
titleLabel.text = [NSString stringWithFormat: @" DropShot" ];
105
- titleLabel.font = [UIFont fontWithName: @" HelveticaNeue " size :40.0 ];
101
+ titleLabel.font = [UIFont systemFontOfSize :40.0 ];
106
102
titleLabel.textColor = [UIColor whiteColor ];
107
103
titleLabel.textAlignment = NSTextAlignmentCenter;
108
104
titleLabel.numberOfLines = 0 ;
@@ -115,7 +111,7 @@ -(UIView *)viewTwo {
115
111
116
112
UILabel *descriptionLabel = [[UILabel alloc ] initWithFrame: CGRectMake (self .frame.size.width*.1 , self .frame.size.height*.7 , self .frame.size.width*.8 , 60 )];
117
113
descriptionLabel.text = [NSString stringWithFormat: @" Description for Second Screen." ];
118
- descriptionLabel.font = [UIFont fontWithName: @" HelveticaNeue-Thin " size :18.0 ];
114
+ descriptionLabel.font = [UIFont systemFontOfSize :18.0 ];
119
115
descriptionLabel.textColor = [UIColor whiteColor ];
120
116
descriptionLabel.textAlignment = NSTextAlignmentCenter;
121
117
descriptionLabel.numberOfLines = 0 ;
@@ -140,7 +136,7 @@ -(UIView *)viewThree{
140
136
UILabel *titleLabel = [[UILabel alloc ] initWithFrame: CGRectMake (0 , self .frame.size.height*.05 , self .frame.size.width*.8 , 60 )];
141
137
titleLabel.center = CGPointMake (self.center .x , self.frame .size .height *.1 );
142
138
titleLabel.text = [NSString stringWithFormat: @" Shaktaya" ];
143
- titleLabel.font = [UIFont fontWithName: @" HelveticaNeue " size :40.0 ];
139
+ titleLabel.font = [UIFont systemFontOfSize :40.0 ];
144
140
titleLabel.textColor = [UIColor whiteColor ];
145
141
titleLabel.textAlignment = NSTextAlignmentCenter;
146
142
titleLabel.numberOfLines = 0 ;
@@ -154,7 +150,7 @@ -(UIView *)viewThree{
154
150
155
151
UILabel *descriptionLabel = [[UILabel alloc ] initWithFrame: CGRectMake (self .frame.size.width*.1 , self .frame.size.height*.7 , self .frame.size.width*.8 , 60 )];
156
152
descriptionLabel.text = [NSString stringWithFormat: @" Description for Third Screen." ];
157
- descriptionLabel.font = [UIFont fontWithName: @" HelveticaNeue-Thin " size :18.0 ];
153
+ descriptionLabel.font = [UIFont systemFontOfSize :18.0 ];
158
154
descriptionLabel.textColor = [UIColor whiteColor ];
159
155
descriptionLabel.textAlignment = NSTextAlignmentCenter;
160
156
descriptionLabel.numberOfLines = 0 ;
@@ -179,7 +175,7 @@ -(UIView *)viewFour {
179
175
UILabel *titleLabel = [[UILabel alloc ] initWithFrame: CGRectMake (0 , self .frame.size.height*.05 , self .frame.size.width*.8 , 60 )];
180
176
titleLabel.center = CGPointMake (self.center .x , self.frame .size .height *.1 );
181
177
titleLabel.text = [NSString stringWithFormat: @" Punctual" ];
182
- titleLabel.font = [UIFont fontWithName: @" HelveticaNeue " size :40.0 ];
178
+ titleLabel.font = [UIFont systemFontOfSize :40.0 ];
183
179
titleLabel.textColor = [UIColor whiteColor ];
184
180
titleLabel.textAlignment = NSTextAlignmentCenter;
185
181
titleLabel.numberOfLines = 0 ;
@@ -192,7 +188,7 @@ -(UIView *)viewFour {
192
188
193
189
UILabel *descriptionLabel = [[UILabel alloc ] initWithFrame: CGRectMake (self .frame.size.width*.1 , self .frame.size.height*.7 , self .frame.size.width*.8 , 60 )];
194
190
descriptionLabel.text = [NSString stringWithFormat: @" Description for Fourth Screen." ];
195
- descriptionLabel.font = [UIFont fontWithName: @" HelveticaNeue-Thin " size :18.0 ];
191
+ descriptionLabel.font = [UIFont systemFontOfSize :18.0 ];
196
192
descriptionLabel.textColor = [UIColor whiteColor ];
197
193
descriptionLabel.textAlignment = NSTextAlignmentCenter;
198
194
descriptionLabel.numberOfLines = 0 ;
@@ -220,23 +216,21 @@ -(UIScrollView *)scrollView {
220
216
221
217
-(UIPageControl *)pageControl {
222
218
if (!_pageControl) {
223
- _pageControl = [[UIPageControl alloc ] initWithFrame: CGRectMake (0 , self .frame.size.height*. 8 , self .frame.size.width, 10 )];
224
- [_pageControl setCurrentPageIndicatorTintColor: [UIColor colorWithRed: 0.153 green: 0.533 blue: 0.796 alpha: 1.000 ]];
219
+ _pageControl = [[UIPageControl alloc ] initWithFrame: CGRectMake (0 , self .frame.size.height- 80 , self .frame.size.width, 10 )];
220
+ [_pageControl setCurrentPageIndicatorTintColor: [UIColor colorWithRed: 0.129 green: 0.588 blue: 0.953 alpha: 1.000 ]];
225
221
[_pageControl setNumberOfPages: 4 ];
226
222
}
227
223
return _pageControl;
228
224
}
229
225
230
226
-(UIButton *)doneButton {
231
227
if (!_doneButton) {
232
- _doneButton = [[UIButton alloc ] initWithFrame: CGRectMake (self .frame.size.width*. 1 , self .frame.size.height*. 85 , self .frame.size.width*. 8 , 60 )];
228
+ _doneButton = [[UIButton alloc ] initWithFrame: CGRectMake (0 , self .frame.size.height- 60 , self .frame.size.width, 60 )];
233
229
[_doneButton setTintColor: [UIColor whiteColor ]];
234
230
[_doneButton setTitle: @" Let's Go!" forState: UIControlStateNormal];
235
- [_doneButton.titleLabel setFont: [UIFont fontWithName: @" HelveticaNeue-Thin " size :18.0 ]];
236
- [_doneButton setBackgroundColor: [UIColor colorWithRed: 0.153 green: 0.533 blue: 0.796 alpha: 1.000 ]];
231
+ [_doneButton.titleLabel setFont: [UIFont systemFontOfSize :18.0 ]];
232
+ [_doneButton setBackgroundColor: [UIColor colorWithRed: 0.129 green: 0.588 blue: 0.953 alpha: 1.000 ]];
237
233
[_doneButton addTarget: self .delegate action: @selector (onDoneButtonPressed ) forControlEvents: UIControlEventTouchUpInside];
238
- [_doneButton.layer setCornerRadius: 5 ];
239
- [_doneButton setClipsToBounds: YES ];
240
234
}
241
235
return _doneButton;
242
236
}
0 commit comments