简体   繁体   中英

Why use normal, @2x and @3x size images in iPhone when you can use only @3x and set the constraints in different size classes?

我对此话题感到困惑。

Resizing images has a couple of costs including:

Scaling images is an imperfect process. A 3x image scaled to 1x pixel density can have visual artifacts or fail to communicate it's purpose to the user effectively.

Scaling images requires you to load the full size image on older devices with less memory and computing power available to perform those operations which can lead to slower performance. Especially during animations like scrolling views.

As always consider if these are concerns for your specific use case and act accordingly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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