iOS – explicitly add @ 2X to non-visual equipment

We have a mystery!

In our application, we only use retina images (@2x mark).
Until yesterday, non-retina devices displayed images well, even if we called without @2x at the end Image.

For example, if the file name is’[email protected]’, we call [UIImage imageWithName:@”fun”].

Today it stopped working, now we You must call [UIImage imageWithName:@“fun @ 2x”] to display the image. (The device is iPhone 3GS iOS 5.1).

We are now worried that we don’t know anything about retina naming.

What has changed?
What is the correct way to deal with it?

Thank you

Shaney

You should provide Non-retina images! Downscaling is not a good choice. The problem here is that iOS is trying to find the fun.png image and can’t find it. So it can’t render something.

I didn’t explain why it worked before. Are you sure NS?

We have a mystery!

In our application, we only use retina images (@2x mark).
Until yesterday, non-retina devices displayed images well, even if we called without @2x at the end Image.

For example, if the file name is’[email protected]’, we call [UIImage imageWithName:@”fun”].

Today it stopped working, now we You must call [UIImage imageWithName:@“fun @ 2x”] to display the image. (The device is iPhone 3GS iOS 5.1).

We are now worried that we don’t know anything about retina naming.

What has changed?
What is the correct way to deal with it?

Thank you

Shaney

You should provide non-retina images! Downscaling is not a good choice. The problem here is that iOS is trying to find the fun.png image and can’t find it. So it can’t render something.

I didn’t explain why it worked before. Are you sure NS?

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3904 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.