[[UIDevice currentDevice].model isEqualToString:@"iPad"]
- (CGFloat)initAutoScaleSize{
if (kScreenHeight==480) {
self.autoSizeScaleW = kScreenWith/736;
}else if(kScreenHeight==568) {
self.autoSizeScaleW =kScreenWith/736;
}else if(kScreenHeight==667){
self.autoSizeScaleW =kScreenWith/736;
}else if(kScreenHeight==736){
self.autoSizeScaleW =kScreenWith/736;
}else if (kScreenHeight==1024){
self.autoSizeScaleW =kScreenWith/736;
}else{
self.autoSizeScaleW=kScreenWith/736;
}
return self.autoSizeScaleW;
}
[[self getPreferredLanguage] isEqualToString:@"zh-Hans-CN"]
- (NSString*)getPreferredLanguage
{
NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];
NSArray* languages = [defs objectForKey:@"AppleLanguages"];
NSString* preferredLang = [languages objectAtIndex:0];
return preferredLang;
}