Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: Launch image gets wrinkled in the center during a call/recording/hot-spot session

I use a set of launch images for my app and noticed that when I'm having a call, recording a voice note or sharing my Internet connection and put that activity in the background and launch my app, the launch screen is wrinkled in the center. Is there anything I can do to make the image look ok or is it just a standard iOS behavior?

enter image description here

like image 621
toobiz Avatar asked Aug 11 '16 09:08

toobiz


3 Answers

Just define a key in plist file will solve your problem

Status bar is initially hidden = YES

like image 190
Valeriy Avatar answered Nov 16 '22 17:11

Valeriy


OK, the solution I found is to hide status when launching the app, just like here

like image 3
toobiz Avatar answered Nov 16 '22 16:11

toobiz


Seems like Apple "take" 4% of screen space from the middle of the screen (as far as I tested) to give it to status bar. Personally I faced this problem when using iPhone modem mode.

So if it is not critical for image to be centered vertically - the solution would be to place image above/below this "4% middle screen area".

Examples when image is cropped:

How image should look(image centered vertically & horizontally, width & height are fixed size)

How it actually looks

Example when image looks as supposed to (but not centered) :

Constraints example

Image with new constraints example

like image 2
Danylo Polishchuk Avatar answered Nov 16 '22 15:11

Danylo Polishchuk