Attempt to load at least jpg images for versions lower than 9

This commit is contained in:
Vladimir Enchev
2016-03-24 14:00:13 +02:00
parent bbfd5a6867
commit 50b83dab61

View File

@ -11,7 +11,7 @@ export class ImageSource implements definition.ImageSource {
public ios: UIImage;
public loadFromResource(name: string): boolean {
this.ios = UIImage.imageNamed(name);
this.ios = UIImage.imageNamed(name) || UIImage.imageNamed(`${name}.jpg`);
return this.ios != null;
}