(Original) Xib picture simulator shows real machine does not show

Recently, the project has changed to a new welcome page. We use Xib. Originally, we used a large picture, but now it is a white background with a few pictures. I thought it was a matter of minutes, but it turned out to be a problem.

    After removing the original UIImageView, adding two UIImageViews and adding the corresponding pictures, I tried 6P in the simulator, 4s and 5 on the real machine, and there was no problem, but when I tested with the real machine 6s, the pictures were correct. never came out. First of all, I added a background color to the picture, and judged that the xib was loaded normally, and the position of the UIImageView was correct, but the picture was not loaded.

    So I guessed that it might be the problem of the picture, but after resizing the picture by 1.5 times, and after 2 times, there is no effect, I can only ask for help online and search for similar situations. Then, I saw someone say, encounter such a situation: restart the phone and Xcode.

    After restarting the phone, the Xcode debugging is displayed normally. So the reason for this problem is that Xcode does not load the image into the phone. If you encounter a similar situation, try it first and restart the phone . .

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327005028&siteId=291194637