简体   繁体   English

3gs或3g手机上的视网膜图像

[英]retina image on a 3gs or 3g phone

I have a kind of problem where there are two set of photos in my photo viewer. 我有一个问题,我的照片查看器中有两组照片。 One is a retina image and another is a image with less resolution. 一个是视网膜图像,另一个是分辨率较低的图像。 the size of the placeholder is around 300X200. 占位符的大小约为300X200。 The no retina based image is exactly the same size 300X200 and retina images is almost double the size. 没有视网膜的图像大小完全相同,为300X200,而视网膜图像的大小几乎是原来的两倍。 My question is what problem will we face when a high resolution image is placed in a non retina image, i know the image will get displayed for sure, but i want to know what could be other hidden issues. 我的问题是,当将高分辨率图像放置在非视网膜图像中时,我们将面临什么问题,我知道该图像将得到确定显示,但是我想知道什么可能是其他隐藏问题。

can someone surely say that a high resolution image in the placeholder is not going to create any image that will be fine. 有人可以肯定地说占位符中的高分辨率图像不会创建任何可以的图像。 i know my question looks real silly, but want to clear that up. 我知道我的问题看起来很傻,但是想解决。

Well there is only one problem, memory. 好吧,只有一个问题,就是记忆。

Since the 3G and 3GS have less ram then 4/4S you will run out of memory faster. 由于3G和3GS的内存少于4 / 4S,因此您将更快地耗尽内存。

One more problem may arise, It is the frame size of your UIImageView. 可能还会出现另一个问题,这是UIImageView的帧大小。 If you are creating the frame dynamically (based on image size), it will create bigger frame (which is not accepted). 如果要动态创建框架(基于图像大小),则会创建更大的框架(不接受)。 However if you are creating the frame with hard code values, its fine. 但是,如果要使用硬代码值创建框架,则可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM