开发者

Splash screen appears on Debug mode but not on Release (iOS4) [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago. 开发者_如何学C

I have iPhone 3GS, iOS4, xcode 3.2.3.

After loading the Default.png, I add a little splash screen the looks exactly like the application start view. This splash screen appears animating in Debug mode, but do not show at all in Release mode(I get a blank screen), this of course rules out any problems with the image, like size or name. I have tried clean all targets, no luck, I also tried to make the release configuration to look exactly like the debug configuration (like strip debug symbols during copy and optimization level) for the sake of troubleshooting, I am going no where.

Any ideas?


Check your copy resources build phase to see if the Default.png is in there. Perhaps it has been deleted but the phone is using a cached image (due to not cleaning your build) thus giving you false indication that it is working on Debug.

To test, fully clean all builds and run debug, or just check that Default.png is being copied over.


Ok, Solved. Thanks for coneybeare for the hints.

The problem had nothing to do with Debug or Release mode, I made a clean all only under Release but not under Debug. When I have done it for both, I got the same behavior from both modes. Because of the fact that the splash screen was working under Debug (before doing a clean all), I tended to overlook my code. Now, I had to look again into my code, I figured out that [window makeKeyAndVisible] was removed during previous modifications, and thus, the splash screen view was not showing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜