[ios] Guide images naming fix

This commit is contained in:
Igor Khmurets 2014-03-25 19:13:26 +03:00 committed by Alex Zolotarev
parent b249e72bdb
commit 7b11cb3874
51 changed files with 57 additions and 110 deletions

View file

@ -117,7 +117,8 @@ using namespace::storage;
{
NSDictionary * guide = self.guideRegions[indexPath.row];
cell.textLabel.text = guide[@"Country"];
cell.imageView.image = [self iconImageWithImage:[UIImage imageNamed:guide[@"GuideName"]]];
NSString * imageName = [[guide[@"GuideName"] stringByReplacingOccurrencesOfString:@" " withString:@""] lowercaseString];
cell.imageView.image = [self iconImageWithImage:[UIImage imageNamed:imageName]];
[cell setFree:YES];
}
return cell;

View file

@ -431,7 +431,7 @@
{
NSString * urlString = [NSString stringWithUTF8String:framework.GetMapApiBackUrl().c_str()];
NSString * lastComponent = [urlString componentsSeparatedByString:@"-"][1];
NSString * imageName = [[lastComponent substringWithRange:NSMakeRange(0, [lastComponent length] - 3)] capitalizedString];
NSString * imageName = [[lastComponent substringWithRange:NSMakeRange(0, [lastComponent length] - 3)] lowercaseString];
self.guideLeftLabel.text = NSLocalizedString(@"more_info", nil);
[self.guideLeftLabel sizeToFit];

View file

@ -1,18 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Czech Republic.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Czech Republic@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -1,18 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "New Zealand.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "New Zealand@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -1,18 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Russia.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Russia@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -1,18 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Switzerland.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Switzerland@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -1,18 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Turkey.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Turkey@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

Before

Width:  |  Height:  |  Size: 6 KiB

After

Width:  |  Height:  |  Size: 6 KiB

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

Before

Width:  |  Height:  |  Size: 6 KiB

After

Width:  |  Height:  |  Size: 6 KiB

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "California.png"
"filename" : "california.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "California@2x.png"
"filename" : "california@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View file

@ -0,0 +1,18 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "czechrepublic.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "czechrepublic@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Hawaii.png"
"filename" : "france.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Hawaii@2x.png"
"filename" : "france@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Germany.png"
"filename" : "germany.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Germany@2x.png"
"filename" : "germany@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Greece.png"
"filename" : "greece.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Greece@2x.png"
"filename" : "greece@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "France.png"
"filename" : "hawaii.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "France@2x.png"
"filename" : "hawaii@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Japan.png"
"filename" : "italy.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Japan@2x.png"
"filename" : "italy@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

Before

Width:  |  Height:  |  Size: 6 KiB

After

Width:  |  Height:  |  Size: 6 KiB

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Spain.png"
"filename" : "japan.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Spain@2x.png"
"filename" : "japan@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

@ -0,0 +1,18 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "newzealand.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "newzealand@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "Italy.png"
"filename" : "spain.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "Italy@2x.png"
"filename" : "spain@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View file

@ -3,12 +3,12 @@
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "UK.png"
"filename" : "uk.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "UK@2x.png"
"filename" : "uk@2x.png"
}
],
"info" : {

View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB