简体   繁体   中英

Problem! Add a .tiff image in my iOS4 app

I use Adobe Photoshop,created a .tiff image. Then I attach this image to an UIImageView.

Code Like:

UIImage *img = [UIImage imageNamed:@"xxx.tiff"];
UIImageView *imgView = [[UIImageView alloc] initWithImage:img];
[self.view addSubview:imgView];

But,the image is not completely displayed.It's very rough and lost many details!

How can I deal with it?

If you have access to Photoshop why would you choose to save a TIFF?

PNGs are the fastest and most supported image format on the iPhone, save it as a PNG instead!

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