ios - Set UIImage to cover the screen for all device screens, xib file -


i have view controller , ui view controller represented through xib file instead of main.storyboard. here how looks like. can see have uiimage view acts background image , suppose cover whole screen.

i trying add 4 constraints: make 4 spacing nearest neighbors equal 0. when use pin constraint option , set pin sides 0, doesn't make spacing nearest neighbor 0 gives me following 4 constraints:

enter image description here

so tried control drag uiimage edge of frame can't either. how can solve issue?

also forgot mention important thing. when run app there black spaces in top , bottom of screen. uiimage not cover whole screen. here picture while app running:

enter image description here

your problem launchscreen.

you need check launchscreen ,if not in correct format or there no launchscreen means kind of problem occurs .


Comments