|
|
@@ -21,43 +21,43 @@
|
|
|
-(void)drawAnyView
|
|
|
{
|
|
|
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
|
|
|
- imageView.image = [UIImage imageNamed:@"login_bg"];
|
|
|
+ imageView.image = [UIImage imageNamed:@"customLaunch"];
|
|
|
[self addSubview:imageView];
|
|
|
|
|
|
- UIImageView *imageView111 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
|
|
|
-
|
|
|
- [self addSubview:imageView111];
|
|
|
-
|
|
|
- //NSString *preferredLanguage = [[[NSBundle mainBundle] preferredLocalizations] firstObject];
|
|
|
- ///获取设备当前地区的代码和APP语言环境
|
|
|
- NSString *languageCode = [NSLocale preferredLanguages][0];
|
|
|
-
|
|
|
- NSString *imageNameStr = @"customLaunch_en";
|
|
|
-
|
|
|
- //if([languageCode isEqualToString:@"zh-Hans-US"])
|
|
|
- if([languageCode rangeOfString:@"zh-Hans"].location != NSNotFound)
|
|
|
- {
|
|
|
- imageNameStr = @"customLaunch_Hans";
|
|
|
- }
|
|
|
- //else if([languageCode isEqualToString:@"zh-Hant-HK"])
|
|
|
- else if([languageCode rangeOfString:@"zh-Hant"].location != NSNotFound)
|
|
|
- {
|
|
|
- imageNameStr = @"customLaunch_Hans_HK";
|
|
|
- }
|
|
|
- //else if([languageCode isEqualToString:@"ja-US"])
|
|
|
- else if([languageCode rangeOfString:@"ja-"].location != NSNotFound)
|
|
|
- {
|
|
|
- imageNameStr = @"customLaunch_ja";
|
|
|
- }
|
|
|
-
|
|
|
- imageView111.image = [UIImage imageNamed:imageNameStr];
|
|
|
-
|
|
|
- [imageView111 mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.centerX.mas_equalTo(0);
|
|
|
- make.centerY.mas_equalTo(0);
|
|
|
- make.width.mas_equalTo(375.0);
|
|
|
- //make.height.mas_equalTo(320.0);
|
|
|
- }];
|
|
|
+// UIImageView *imageView111 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
|
|
|
+//
|
|
|
+// [self addSubview:imageView111];
|
|
|
+//
|
|
|
+// //NSString *preferredLanguage = [[[NSBundle mainBundle] preferredLocalizations] firstObject];
|
|
|
+// ///获取设备当前地区的代码和APP语言环境
|
|
|
+// NSString *languageCode = [NSLocale preferredLanguages][0];
|
|
|
+//
|
|
|
+// NSString *imageNameStr = @"customLaunch_en";
|
|
|
+//
|
|
|
+// //if([languageCode isEqualToString:@"zh-Hans-US"])
|
|
|
+// if([languageCode rangeOfString:@"zh-Hans"].location != NSNotFound)
|
|
|
+// {
|
|
|
+// imageNameStr = @"customLaunch_Hans";
|
|
|
+// }
|
|
|
+// //else if([languageCode isEqualToString:@"zh-Hant-HK"])
|
|
|
+// else if([languageCode rangeOfString:@"zh-Hant"].location != NSNotFound)
|
|
|
+// {
|
|
|
+// imageNameStr = @"customLaunch_Hans_HK";
|
|
|
+// }
|
|
|
+// //else if([languageCode isEqualToString:@"ja-US"])
|
|
|
+// else if([languageCode rangeOfString:@"ja-"].location != NSNotFound)
|
|
|
+// {
|
|
|
+// imageNameStr = @"customLaunch_ja";
|
|
|
+// }
|
|
|
+//
|
|
|
+// imageView111.image = [UIImage imageNamed:imageNameStr];
|
|
|
+//
|
|
|
+// [imageView111 mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
+// make.centerX.mas_equalTo(0);
|
|
|
+// make.centerY.mas_equalTo(0);
|
|
|
+// make.width.mas_equalTo(375.0);
|
|
|
+// //make.height.mas_equalTo(320.0);
|
|
|
+// }];
|
|
|
|
|
|
// guide_up_icon
|
|
|
UIImageView *upImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"guide_up_icon"]];
|
|
|
@@ -65,7 +65,7 @@
|
|
|
[upImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.bottom.mas_equalTo(-60);
|
|
|
make.centerX.mas_equalTo(0);
|
|
|
- make.width.mas_equalTo(132*1.3);
|
|
|
+ make.width.mas_equalTo(100*1.3);
|
|
|
make.height.mas_equalTo(28*1.3);
|
|
|
}];
|
|
|
}
|