1) suggest to use localeIdentifier as language to match the parameter format in itunes search API
//get language and country
//self.appStoreLanguage = [[NSLocale preferredLanguages] objectAtIndex:0];
self.appStoreLanguage = [[NSLocale currentLocale] localeIdentifier];
NSLog(@"language1:%@", [[NSLocale preferredLanguages] objectAtIndex:0]);
NSLog(@"language2:%@", [[NSLocale currentLocale] localeIdentifier]);
2) The return result from itunes search API may contain special characters, so make replacement and UTF8 conversion before show in alert would be better
1) suggest to use localeIdentifier as language to match the parameter format in itunes search API //get language and country //self.appStoreLanguage = [[NSLocale preferredLanguages] objectAtIndex:0]; self.appStoreLanguage = [[NSLocale currentLocale] localeIdentifier]; NSLog(@"language1:%@", [[NSLocale preferredLanguages] objectAtIndex:0]); NSLog(@"language2:%@", [[NSLocale currentLocale] localeIdentifier]);
SAMPLE: iVersion[744:707] language1:zh-Hans iVersion[744:707] language2:zh_CN
2) The return result from itunes search API may contain special characters, so make replacement and UTF8 conversion before show in alert would be better
SAMPLE: -\U201c本地报纸\U201d更名为\U201c离线报纸\U201d