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

后端 未结 3 794
死守一世寂寞
死守一世寂寞 2021-01-03 22:54

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 backg

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 23:36

    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

提交回复
热议问题