How can I re-enable the letterbox mode using the i

2019-09-24 13:37发布

问题:

I'd like to re-enable the letterbox mode on the iPhone 5 for my app. Using Xcode 4.5.2 and building an app for iPhone 5, I generated an 1136x640 launch image and it was named Default-568h@2x.png. I have sinced removed the launch screen and in the project summary the space for that image is empty. Also, I have removed any instances I found within the project folder. However, my app continues to be displayed using the full screen on the iPhone 5 and what I want is to be able to use the letterbox mode again. I believe this can be accomplished by deleting the app, but how can I re-enable the letterbox mode using the iPhone 5 and Xcode 4.5.2 without deleting the app from the phone?

回答1:

Tap 'Product'->'Clean' in Xcode and remove the application from your phone. Then rebuild your project and there shouldn't be any cached version of the Default-568h@2x.png anywhere.



回答2:

Have you tried deleting the app from the device and redeploying it? I have had issues with icon files etc not being refreshed unless the app is removed and freshly deployed.

Alternatively you can connect your iPhone and open organiser. Select the device and app and hit 'Download'.

Then add the archive you just saved back to your project. Then go to the Project Scheme Drop Down Edit Schemes>Run and select the app data package.

Redeploy your app from scratch and it will contain the saved state.



回答3:

I had the same problem.

I disconnected my iPhone, removed the App from the iPhone's installed Apps, did a Project Clean in XCode, reconnected the iPhone and did a full build and redeploy to the iPhone.

Success! Letterboxing!