Thursday, December 5, 2013

@ @ Uiimageview setimage not display photographs @ @

First, the file is a jpg format, hand-in sandbox document which built a doc directory, pictures on the doc directory inside;
Second, to judge by NSFileManager's fileExistsAtPath when determining file exists;
Third, the program flow is as follows:
Obtained by self.view viewWithTag imageview to be set, then set by setimage, that does not show up, consult experts, thank you!

Png files are saved to the test, while paying attention to the case, that is not displayed, thank you!
Reply:
Is definitely wrong path.
Reply:
First with imageWithContentsOfFile: path can look to produce a uiimage object

If you can produce uiimage object, that is the question
imageview
If you can not produce uiimage object that path there is a problem or not the image file format

No comments:

Post a Comment