[英]Yelp API ios getting a larger image
我目前正在为我的项目使用Yelp API,我需要获取企业的图像作为背景,显示在UIImageView中。 但是,所有图片都比获得的图片太小,因此背景模糊。 我使用此代码获取当前的业务图像:
[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[businessDict objectForKey:@"image_url"]]]];
反正有没有获得更大的图像?
用o.jpg
替换图像URL末尾的文件名,你将获得高达1000×1000像素。 其他尺寸是:
s.jpg
:高达40×40 ss.jpg
:40×40平方 m.jpg
:高达100×100 ms.jpg
:100×100平方 l.jpg
:高达600×400 ls.jpg
:250×250平方 o.jpg
:高达1000×1000 348s.jpg
:348×348平方
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.