Seeing black bars at the top and bottom of the iPhone X Simulator

Multi tool use
Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects:
- the App does not use the full screen space (top and bottom area is black)
- a strange white bar beneath the title bar
Does anybody know what is happening here and how to resolve this? I can't find any new settings in Interface Builder.
ios uinavigationbar ios-simulator xcode9 iphone-x
|
show 9 more comments
Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects:
- the App does not use the full screen space (top and bottom area is black)
- a strange white bar beneath the title bar
Does anybody know what is happening here and how to resolve this? I can't find any new settings in Interface Builder.
ios uinavigationbar ios-simulator xcode9 iphone-x
1
Are you using a Launch Screen file or launch images? Are you using auto layout?
– rmaddy
Sep 12 '17 at 20:38
1
Launch images and auto layout
– Darko
Sep 12 '17 at 20:38
3
Why are you using the old style launch images instead of the much easier Launch Screen file? Anyway, have you added the new launch image needed for the new screen size?
– rmaddy
Sep 12 '17 at 20:39
I can't find a launch image for the iPhone X size. But using a launch screen solved both issues. Please edit your response and I will mark it as answered. Thanks!
– Darko
Sep 12 '17 at 20:44
5
You SHOULDN'T USE launch images. USELaunch Screen.storyboard
instead
– onmyway133
Sep 13 '17 at 7:52
|
show 9 more comments
Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects:
- the App does not use the full screen space (top and bottom area is black)
- a strange white bar beneath the title bar
Does anybody know what is happening here and how to resolve this? I can't find any new settings in Interface Builder.
ios uinavigationbar ios-simulator xcode9 iphone-x
Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects:
- the App does not use the full screen space (top and bottom area is black)
- a strange white bar beneath the title bar
Does anybody know what is happening here and how to resolve this? I can't find any new settings in Interface Builder.
ios uinavigationbar ios-simulator xcode9 iphone-x
ios uinavigationbar ios-simulator xcode9 iphone-x
edited Sep 22 '17 at 10:01
Paolo Forgia
4,52262849
4,52262849
asked Sep 12 '17 at 20:30


DarkoDarko
5,15352135
5,15352135
1
Are you using a Launch Screen file or launch images? Are you using auto layout?
– rmaddy
Sep 12 '17 at 20:38
1
Launch images and auto layout
– Darko
Sep 12 '17 at 20:38
3
Why are you using the old style launch images instead of the much easier Launch Screen file? Anyway, have you added the new launch image needed for the new screen size?
– rmaddy
Sep 12 '17 at 20:39
I can't find a launch image for the iPhone X size. But using a launch screen solved both issues. Please edit your response and I will mark it as answered. Thanks!
– Darko
Sep 12 '17 at 20:44
5
You SHOULDN'T USE launch images. USELaunch Screen.storyboard
instead
– onmyway133
Sep 13 '17 at 7:52
|
show 9 more comments
1
Are you using a Launch Screen file or launch images? Are you using auto layout?
– rmaddy
Sep 12 '17 at 20:38
1
Launch images and auto layout
– Darko
Sep 12 '17 at 20:38
3
Why are you using the old style launch images instead of the much easier Launch Screen file? Anyway, have you added the new launch image needed for the new screen size?
– rmaddy
Sep 12 '17 at 20:39
I can't find a launch image for the iPhone X size. But using a launch screen solved both issues. Please edit your response and I will mark it as answered. Thanks!
– Darko
Sep 12 '17 at 20:44
5
You SHOULDN'T USE launch images. USELaunch Screen.storyboard
instead
– onmyway133
Sep 13 '17 at 7:52
1
1
Are you using a Launch Screen file or launch images? Are you using auto layout?
– rmaddy
Sep 12 '17 at 20:38
Are you using a Launch Screen file or launch images? Are you using auto layout?
– rmaddy
Sep 12 '17 at 20:38
1
1
Launch images and auto layout
– Darko
Sep 12 '17 at 20:38
Launch images and auto layout
– Darko
Sep 12 '17 at 20:38
3
3
Why are you using the old style launch images instead of the much easier Launch Screen file? Anyway, have you added the new launch image needed for the new screen size?
– rmaddy
Sep 12 '17 at 20:39
Why are you using the old style launch images instead of the much easier Launch Screen file? Anyway, have you added the new launch image needed for the new screen size?
– rmaddy
Sep 12 '17 at 20:39
I can't find a launch image for the iPhone X size. But using a launch screen solved both issues. Please edit your response and I will mark it as answered. Thanks!
– Darko
Sep 12 '17 at 20:44
I can't find a launch image for the iPhone X size. But using a launch screen solved both issues. Please edit your response and I will mark it as answered. Thanks!
– Darko
Sep 12 '17 at 20:44
5
5
You SHOULDN'T USE launch images. USE
Launch Screen.storyboard
instead– onmyway133
Sep 13 '17 at 7:52
You SHOULDN'T USE launch images. USE
Launch Screen.storyboard
instead– onmyway133
Sep 13 '17 at 7:52
|
show 9 more comments
8 Answers
8
active
oldest
votes
When using launch images (instead of the much easier Launch screen file), you need to provide the properly sized launch image for each device size you wish to support. Once you add the additional launch image, your app should take advantage of the new screen size.
The new iPhone X requires a launch image sized at 1125px × 2436px which is a 3x image for 375pt × 812pt.
Of course if you switch over to using a Launch screen file instead of individual launch images, your app will automatically adapt to all device sizes without any additional work.
2
can you go into more detail on how to integrate the new iphoneX image into a Launch Screen? Any Image Sets I add to Xcode 9 don't have iphoneX slots, only Launch Image sets.
– Christian Cerri
Sep 13 '17 at 6:49
1
@ChristianCerri Image sets are not tied to devices. They just give you 1x, 2x, and 3x options. I was referring to launch images. Those are the only device specific images. If you have a question about adding different sized images to a Launch screen then please post your own question specific to that issue.
– rmaddy
Sep 13 '17 at 6:52
just did as you asked: stackoverflow.com/questions/46191522/…
– Christian Cerri
Sep 13 '17 at 8:19
7
How the hell launch images related to blackbar on top and bottom of iPhone X simulator ??!
– TomSawyer
Sep 23 '17 at 18:46
1
See answer from @sabiland if you're still seeing black bars and using a launch screen. Would be great if this answer could be supplemented with the tidbit about how to design the launch screen properly for iPhone X.
– Crashalot
Nov 9 '17 at 10:03
|
show 4 more comments
I have figured out this issues in iPhone X. Launch image size (1125*2436px)
Please flow this below steps.
1.i)Choose your project name in Xcode.
ii)Select your project target
iii)Then select Launch images source
- You can get Migrate popup
i) Choose Assets
ii)Select Migrate
After that select your Assets.xcassets in your project
Then select Launch image in assets
i)Then select attribute inspectorfinally check your Launch image source. you can see set Launch image.
Upvoted for the pictures. But you should clear out the "LaunchScreen" Text from the Launch Screen File text field in your last image.
– NadtheVlad
Oct 28 '17 at 18:51
Thank's @NadtheVlad. Please clear the "LaunchScreen" text from Launch Screen File and delete LaunchScreen.Storyboard file from Xcode.
– Karthickkck
Oct 31 '17 at 12:37
Thanks! It was landscape checkbox from Launch Image that was causing problem since my app is only portrait.
– green0range
Jan 4 '18 at 19:20
add a comment |
iPhone X needs different launch image sized 1125px x 2436px (375pt x 812pt @3x).
Check human interface guidelines for more details.
add a comment |
I have figured out how to fix (though I still don't understand why this happened only on iPhone X) LaunchScreen storyboard on iPhone X with seeing black top&bottom bars.
I have LaunchScreen storyboard with one UIImageView.
UIImageView's top&bottom has to be pinned to SuperView's top&bottom. NOT to SafeArea.
This solved my problem with LauchScreen with Autolayout. But instead of pin to the borders, I centered horizontally and vertically and equal the width/height to SuperView.
– Yuri Natividade
Sep 27 '17 at 14:00
This only worked after also pinning views in other storyboards to the view top/bottom as opposed to the layout guides. Be sure to check storyboards while in iPhone X mode.
– Crashalot
Nov 9 '17 at 10:29
why i can't see superview in my storyboard when i go to give that constraint
– rd_
Oct 8 '18 at 6:44
add a comment |
I fixed it by simply inserting some random text in the Lanch Screen File
textfield. I dont even have a Launch Screen File... XCode is so buggy.
update
Although this fixes it in simulator (still very weird and unexpected) when uploading a binary to iTunes Connect it will fail due to not finding a LanchScreen file of name "random-name"
Right its working for iphone x . but its not working for any other devices bro.
– Govaadiyo
Nov 28 '17 at 6:11
Yes yes! this fixes it in xcode. Thanks! That's good enough for testing. Will buy a real iphone X to avoid the xcode issue in future to test on.
– Phyllis Sutherland
Aug 31 '18 at 16:22
add a comment |
If you already have a 1125px × 2436px launch image but the app is still not using the full screen check to make sure that your image is PNG.
add a comment |
if you removed LaunchScreen.storyboard; Choose your project, select your project target, General -> App Icons and Launch Images -> Launch Screen File: Select here Main.storyboard instead of LaunchScreen.storyboard
add a comment |
Just ran into this while trying to update an app I hadn't worked on in a while.
On Xcode 9.4, I was able to fix this by doing the following:
- Add a launch screen by going to File -> New -> File... -> Launch Screen
- Make sure the newly added launch screen storyboard is selected as the launch screen file under project settings.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46184859%2fseeing-black-bars-at-the-top-and-bottom-of-the-iphone-x-simulator%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
8 Answers
8
active
oldest
votes
8 Answers
8
active
oldest
votes
active
oldest
votes
active
oldest
votes
When using launch images (instead of the much easier Launch screen file), you need to provide the properly sized launch image for each device size you wish to support. Once you add the additional launch image, your app should take advantage of the new screen size.
The new iPhone X requires a launch image sized at 1125px × 2436px which is a 3x image for 375pt × 812pt.
Of course if you switch over to using a Launch screen file instead of individual launch images, your app will automatically adapt to all device sizes without any additional work.
2
can you go into more detail on how to integrate the new iphoneX image into a Launch Screen? Any Image Sets I add to Xcode 9 don't have iphoneX slots, only Launch Image sets.
– Christian Cerri
Sep 13 '17 at 6:49
1
@ChristianCerri Image sets are not tied to devices. They just give you 1x, 2x, and 3x options. I was referring to launch images. Those are the only device specific images. If you have a question about adding different sized images to a Launch screen then please post your own question specific to that issue.
– rmaddy
Sep 13 '17 at 6:52
just did as you asked: stackoverflow.com/questions/46191522/…
– Christian Cerri
Sep 13 '17 at 8:19
7
How the hell launch images related to blackbar on top and bottom of iPhone X simulator ??!
– TomSawyer
Sep 23 '17 at 18:46
1
See answer from @sabiland if you're still seeing black bars and using a launch screen. Would be great if this answer could be supplemented with the tidbit about how to design the launch screen properly for iPhone X.
– Crashalot
Nov 9 '17 at 10:03
|
show 4 more comments
When using launch images (instead of the much easier Launch screen file), you need to provide the properly sized launch image for each device size you wish to support. Once you add the additional launch image, your app should take advantage of the new screen size.
The new iPhone X requires a launch image sized at 1125px × 2436px which is a 3x image for 375pt × 812pt.
Of course if you switch over to using a Launch screen file instead of individual launch images, your app will automatically adapt to all device sizes without any additional work.
2
can you go into more detail on how to integrate the new iphoneX image into a Launch Screen? Any Image Sets I add to Xcode 9 don't have iphoneX slots, only Launch Image sets.
– Christian Cerri
Sep 13 '17 at 6:49
1
@ChristianCerri Image sets are not tied to devices. They just give you 1x, 2x, and 3x options. I was referring to launch images. Those are the only device specific images. If you have a question about adding different sized images to a Launch screen then please post your own question specific to that issue.
– rmaddy
Sep 13 '17 at 6:52
just did as you asked: stackoverflow.com/questions/46191522/…
– Christian Cerri
Sep 13 '17 at 8:19
7
How the hell launch images related to blackbar on top and bottom of iPhone X simulator ??!
– TomSawyer
Sep 23 '17 at 18:46
1
See answer from @sabiland if you're still seeing black bars and using a launch screen. Would be great if this answer could be supplemented with the tidbit about how to design the launch screen properly for iPhone X.
– Crashalot
Nov 9 '17 at 10:03
|
show 4 more comments
When using launch images (instead of the much easier Launch screen file), you need to provide the properly sized launch image for each device size you wish to support. Once you add the additional launch image, your app should take advantage of the new screen size.
The new iPhone X requires a launch image sized at 1125px × 2436px which is a 3x image for 375pt × 812pt.
Of course if you switch over to using a Launch screen file instead of individual launch images, your app will automatically adapt to all device sizes without any additional work.
When using launch images (instead of the much easier Launch screen file), you need to provide the properly sized launch image for each device size you wish to support. Once you add the additional launch image, your app should take advantage of the new screen size.
The new iPhone X requires a launch image sized at 1125px × 2436px which is a 3x image for 375pt × 812pt.
Of course if you switch over to using a Launch screen file instead of individual launch images, your app will automatically adapt to all device sizes without any additional work.
answered Sep 12 '17 at 20:41


rmaddyrmaddy
241k27315379
241k27315379
2
can you go into more detail on how to integrate the new iphoneX image into a Launch Screen? Any Image Sets I add to Xcode 9 don't have iphoneX slots, only Launch Image sets.
– Christian Cerri
Sep 13 '17 at 6:49
1
@ChristianCerri Image sets are not tied to devices. They just give you 1x, 2x, and 3x options. I was referring to launch images. Those are the only device specific images. If you have a question about adding different sized images to a Launch screen then please post your own question specific to that issue.
– rmaddy
Sep 13 '17 at 6:52
just did as you asked: stackoverflow.com/questions/46191522/…
– Christian Cerri
Sep 13 '17 at 8:19
7
How the hell launch images related to blackbar on top and bottom of iPhone X simulator ??!
– TomSawyer
Sep 23 '17 at 18:46
1
See answer from @sabiland if you're still seeing black bars and using a launch screen. Would be great if this answer could be supplemented with the tidbit about how to design the launch screen properly for iPhone X.
– Crashalot
Nov 9 '17 at 10:03
|
show 4 more comments
2
can you go into more detail on how to integrate the new iphoneX image into a Launch Screen? Any Image Sets I add to Xcode 9 don't have iphoneX slots, only Launch Image sets.
– Christian Cerri
Sep 13 '17 at 6:49
1
@ChristianCerri Image sets are not tied to devices. They just give you 1x, 2x, and 3x options. I was referring to launch images. Those are the only device specific images. If you have a question about adding different sized images to a Launch screen then please post your own question specific to that issue.
– rmaddy
Sep 13 '17 at 6:52
just did as you asked: stackoverflow.com/questions/46191522/…
– Christian Cerri
Sep 13 '17 at 8:19
7
How the hell launch images related to blackbar on top and bottom of iPhone X simulator ??!
– TomSawyer
Sep 23 '17 at 18:46
1
See answer from @sabiland if you're still seeing black bars and using a launch screen. Would be great if this answer could be supplemented with the tidbit about how to design the launch screen properly for iPhone X.
– Crashalot
Nov 9 '17 at 10:03
2
2
can you go into more detail on how to integrate the new iphoneX image into a Launch Screen? Any Image Sets I add to Xcode 9 don't have iphoneX slots, only Launch Image sets.
– Christian Cerri
Sep 13 '17 at 6:49
can you go into more detail on how to integrate the new iphoneX image into a Launch Screen? Any Image Sets I add to Xcode 9 don't have iphoneX slots, only Launch Image sets.
– Christian Cerri
Sep 13 '17 at 6:49
1
1
@ChristianCerri Image sets are not tied to devices. They just give you 1x, 2x, and 3x options. I was referring to launch images. Those are the only device specific images. If you have a question about adding different sized images to a Launch screen then please post your own question specific to that issue.
– rmaddy
Sep 13 '17 at 6:52
@ChristianCerri Image sets are not tied to devices. They just give you 1x, 2x, and 3x options. I was referring to launch images. Those are the only device specific images. If you have a question about adding different sized images to a Launch screen then please post your own question specific to that issue.
– rmaddy
Sep 13 '17 at 6:52
just did as you asked: stackoverflow.com/questions/46191522/…
– Christian Cerri
Sep 13 '17 at 8:19
just did as you asked: stackoverflow.com/questions/46191522/…
– Christian Cerri
Sep 13 '17 at 8:19
7
7
How the hell launch images related to blackbar on top and bottom of iPhone X simulator ??!
– TomSawyer
Sep 23 '17 at 18:46
How the hell launch images related to blackbar on top and bottom of iPhone X simulator ??!
– TomSawyer
Sep 23 '17 at 18:46
1
1
See answer from @sabiland if you're still seeing black bars and using a launch screen. Would be great if this answer could be supplemented with the tidbit about how to design the launch screen properly for iPhone X.
– Crashalot
Nov 9 '17 at 10:03
See answer from @sabiland if you're still seeing black bars and using a launch screen. Would be great if this answer could be supplemented with the tidbit about how to design the launch screen properly for iPhone X.
– Crashalot
Nov 9 '17 at 10:03
|
show 4 more comments
I have figured out this issues in iPhone X. Launch image size (1125*2436px)
Please flow this below steps.
1.i)Choose your project name in Xcode.
ii)Select your project target
iii)Then select Launch images source
- You can get Migrate popup
i) Choose Assets
ii)Select Migrate
After that select your Assets.xcassets in your project
Then select Launch image in assets
i)Then select attribute inspectorfinally check your Launch image source. you can see set Launch image.
Upvoted for the pictures. But you should clear out the "LaunchScreen" Text from the Launch Screen File text field in your last image.
– NadtheVlad
Oct 28 '17 at 18:51
Thank's @NadtheVlad. Please clear the "LaunchScreen" text from Launch Screen File and delete LaunchScreen.Storyboard file from Xcode.
– Karthickkck
Oct 31 '17 at 12:37
Thanks! It was landscape checkbox from Launch Image that was causing problem since my app is only portrait.
– green0range
Jan 4 '18 at 19:20
add a comment |
I have figured out this issues in iPhone X. Launch image size (1125*2436px)
Please flow this below steps.
1.i)Choose your project name in Xcode.
ii)Select your project target
iii)Then select Launch images source
- You can get Migrate popup
i) Choose Assets
ii)Select Migrate
After that select your Assets.xcassets in your project
Then select Launch image in assets
i)Then select attribute inspectorfinally check your Launch image source. you can see set Launch image.
Upvoted for the pictures. But you should clear out the "LaunchScreen" Text from the Launch Screen File text field in your last image.
– NadtheVlad
Oct 28 '17 at 18:51
Thank's @NadtheVlad. Please clear the "LaunchScreen" text from Launch Screen File and delete LaunchScreen.Storyboard file from Xcode.
– Karthickkck
Oct 31 '17 at 12:37
Thanks! It was landscape checkbox from Launch Image that was causing problem since my app is only portrait.
– green0range
Jan 4 '18 at 19:20
add a comment |
I have figured out this issues in iPhone X. Launch image size (1125*2436px)
Please flow this below steps.
1.i)Choose your project name in Xcode.
ii)Select your project target
iii)Then select Launch images source
- You can get Migrate popup
i) Choose Assets
ii)Select Migrate
After that select your Assets.xcassets in your project
Then select Launch image in assets
i)Then select attribute inspectorfinally check your Launch image source. you can see set Launch image.
I have figured out this issues in iPhone X. Launch image size (1125*2436px)
Please flow this below steps.
1.i)Choose your project name in Xcode.
ii)Select your project target
iii)Then select Launch images source
- You can get Migrate popup
i) Choose Assets
ii)Select Migrate
After that select your Assets.xcassets in your project
Then select Launch image in assets
i)Then select attribute inspectorfinally check your Launch image source. you can see set Launch image.
answered Oct 25 '17 at 6:47


KarthickkckKarthickkck
1,0401211
1,0401211
Upvoted for the pictures. But you should clear out the "LaunchScreen" Text from the Launch Screen File text field in your last image.
– NadtheVlad
Oct 28 '17 at 18:51
Thank's @NadtheVlad. Please clear the "LaunchScreen" text from Launch Screen File and delete LaunchScreen.Storyboard file from Xcode.
– Karthickkck
Oct 31 '17 at 12:37
Thanks! It was landscape checkbox from Launch Image that was causing problem since my app is only portrait.
– green0range
Jan 4 '18 at 19:20
add a comment |
Upvoted for the pictures. But you should clear out the "LaunchScreen" Text from the Launch Screen File text field in your last image.
– NadtheVlad
Oct 28 '17 at 18:51
Thank's @NadtheVlad. Please clear the "LaunchScreen" text from Launch Screen File and delete LaunchScreen.Storyboard file from Xcode.
– Karthickkck
Oct 31 '17 at 12:37
Thanks! It was landscape checkbox from Launch Image that was causing problem since my app is only portrait.
– green0range
Jan 4 '18 at 19:20
Upvoted for the pictures. But you should clear out the "LaunchScreen" Text from the Launch Screen File text field in your last image.
– NadtheVlad
Oct 28 '17 at 18:51
Upvoted for the pictures. But you should clear out the "LaunchScreen" Text from the Launch Screen File text field in your last image.
– NadtheVlad
Oct 28 '17 at 18:51
Thank's @NadtheVlad. Please clear the "LaunchScreen" text from Launch Screen File and delete LaunchScreen.Storyboard file from Xcode.
– Karthickkck
Oct 31 '17 at 12:37
Thank's @NadtheVlad. Please clear the "LaunchScreen" text from Launch Screen File and delete LaunchScreen.Storyboard file from Xcode.
– Karthickkck
Oct 31 '17 at 12:37
Thanks! It was landscape checkbox from Launch Image that was causing problem since my app is only portrait.
– green0range
Jan 4 '18 at 19:20
Thanks! It was landscape checkbox from Launch Image that was causing problem since my app is only portrait.
– green0range
Jan 4 '18 at 19:20
add a comment |
iPhone X needs different launch image sized 1125px x 2436px (375pt x 812pt @3x).
Check human interface guidelines for more details.
add a comment |
iPhone X needs different launch image sized 1125px x 2436px (375pt x 812pt @3x).
Check human interface guidelines for more details.
add a comment |
iPhone X needs different launch image sized 1125px x 2436px (375pt x 812pt @3x).
Check human interface guidelines for more details.
iPhone X needs different launch image sized 1125px x 2436px (375pt x 812pt @3x).
Check human interface guidelines for more details.
answered Sep 15 '17 at 4:30


Lal KrishnaLal Krishna
6,09012745
6,09012745
add a comment |
add a comment |
I have figured out how to fix (though I still don't understand why this happened only on iPhone X) LaunchScreen storyboard on iPhone X with seeing black top&bottom bars.
I have LaunchScreen storyboard with one UIImageView.
UIImageView's top&bottom has to be pinned to SuperView's top&bottom. NOT to SafeArea.
This solved my problem with LauchScreen with Autolayout. But instead of pin to the borders, I centered horizontally and vertically and equal the width/height to SuperView.
– Yuri Natividade
Sep 27 '17 at 14:00
This only worked after also pinning views in other storyboards to the view top/bottom as opposed to the layout guides. Be sure to check storyboards while in iPhone X mode.
– Crashalot
Nov 9 '17 at 10:29
why i can't see superview in my storyboard when i go to give that constraint
– rd_
Oct 8 '18 at 6:44
add a comment |
I have figured out how to fix (though I still don't understand why this happened only on iPhone X) LaunchScreen storyboard on iPhone X with seeing black top&bottom bars.
I have LaunchScreen storyboard with one UIImageView.
UIImageView's top&bottom has to be pinned to SuperView's top&bottom. NOT to SafeArea.
This solved my problem with LauchScreen with Autolayout. But instead of pin to the borders, I centered horizontally and vertically and equal the width/height to SuperView.
– Yuri Natividade
Sep 27 '17 at 14:00
This only worked after also pinning views in other storyboards to the view top/bottom as opposed to the layout guides. Be sure to check storyboards while in iPhone X mode.
– Crashalot
Nov 9 '17 at 10:29
why i can't see superview in my storyboard when i go to give that constraint
– rd_
Oct 8 '18 at 6:44
add a comment |
I have figured out how to fix (though I still don't understand why this happened only on iPhone X) LaunchScreen storyboard on iPhone X with seeing black top&bottom bars.
I have LaunchScreen storyboard with one UIImageView.
UIImageView's top&bottom has to be pinned to SuperView's top&bottom. NOT to SafeArea.
I have figured out how to fix (though I still don't understand why this happened only on iPhone X) LaunchScreen storyboard on iPhone X with seeing black top&bottom bars.
I have LaunchScreen storyboard with one UIImageView.
UIImageView's top&bottom has to be pinned to SuperView's top&bottom. NOT to SafeArea.
answered Sep 23 '17 at 6:44
sabilandsabiland
9511818
9511818
This solved my problem with LauchScreen with Autolayout. But instead of pin to the borders, I centered horizontally and vertically and equal the width/height to SuperView.
– Yuri Natividade
Sep 27 '17 at 14:00
This only worked after also pinning views in other storyboards to the view top/bottom as opposed to the layout guides. Be sure to check storyboards while in iPhone X mode.
– Crashalot
Nov 9 '17 at 10:29
why i can't see superview in my storyboard when i go to give that constraint
– rd_
Oct 8 '18 at 6:44
add a comment |
This solved my problem with LauchScreen with Autolayout. But instead of pin to the borders, I centered horizontally and vertically and equal the width/height to SuperView.
– Yuri Natividade
Sep 27 '17 at 14:00
This only worked after also pinning views in other storyboards to the view top/bottom as opposed to the layout guides. Be sure to check storyboards while in iPhone X mode.
– Crashalot
Nov 9 '17 at 10:29
why i can't see superview in my storyboard when i go to give that constraint
– rd_
Oct 8 '18 at 6:44
This solved my problem with LauchScreen with Autolayout. But instead of pin to the borders, I centered horizontally and vertically and equal the width/height to SuperView.
– Yuri Natividade
Sep 27 '17 at 14:00
This solved my problem with LauchScreen with Autolayout. But instead of pin to the borders, I centered horizontally and vertically and equal the width/height to SuperView.
– Yuri Natividade
Sep 27 '17 at 14:00
This only worked after also pinning views in other storyboards to the view top/bottom as opposed to the layout guides. Be sure to check storyboards while in iPhone X mode.
– Crashalot
Nov 9 '17 at 10:29
This only worked after also pinning views in other storyboards to the view top/bottom as opposed to the layout guides. Be sure to check storyboards while in iPhone X mode.
– Crashalot
Nov 9 '17 at 10:29
why i can't see superview in my storyboard when i go to give that constraint
– rd_
Oct 8 '18 at 6:44
why i can't see superview in my storyboard when i go to give that constraint
– rd_
Oct 8 '18 at 6:44
add a comment |
I fixed it by simply inserting some random text in the Lanch Screen File
textfield. I dont even have a Launch Screen File... XCode is so buggy.
update
Although this fixes it in simulator (still very weird and unexpected) when uploading a binary to iTunes Connect it will fail due to not finding a LanchScreen file of name "random-name"
Right its working for iphone x . but its not working for any other devices bro.
– Govaadiyo
Nov 28 '17 at 6:11
Yes yes! this fixes it in xcode. Thanks! That's good enough for testing. Will buy a real iphone X to avoid the xcode issue in future to test on.
– Phyllis Sutherland
Aug 31 '18 at 16:22
add a comment |
I fixed it by simply inserting some random text in the Lanch Screen File
textfield. I dont even have a Launch Screen File... XCode is so buggy.
update
Although this fixes it in simulator (still very weird and unexpected) when uploading a binary to iTunes Connect it will fail due to not finding a LanchScreen file of name "random-name"
Right its working for iphone x . but its not working for any other devices bro.
– Govaadiyo
Nov 28 '17 at 6:11
Yes yes! this fixes it in xcode. Thanks! That's good enough for testing. Will buy a real iphone X to avoid the xcode issue in future to test on.
– Phyllis Sutherland
Aug 31 '18 at 16:22
add a comment |
I fixed it by simply inserting some random text in the Lanch Screen File
textfield. I dont even have a Launch Screen File... XCode is so buggy.
update
Although this fixes it in simulator (still very weird and unexpected) when uploading a binary to iTunes Connect it will fail due to not finding a LanchScreen file of name "random-name"
I fixed it by simply inserting some random text in the Lanch Screen File
textfield. I dont even have a Launch Screen File... XCode is so buggy.
update
Although this fixes it in simulator (still very weird and unexpected) when uploading a binary to iTunes Connect it will fail due to not finding a LanchScreen file of name "random-name"
edited Nov 30 '17 at 1:53
answered Nov 4 '17 at 11:43
ArbiturArbitur
21.5k1970103
21.5k1970103
Right its working for iphone x . but its not working for any other devices bro.
– Govaadiyo
Nov 28 '17 at 6:11
Yes yes! this fixes it in xcode. Thanks! That's good enough for testing. Will buy a real iphone X to avoid the xcode issue in future to test on.
– Phyllis Sutherland
Aug 31 '18 at 16:22
add a comment |
Right its working for iphone x . but its not working for any other devices bro.
– Govaadiyo
Nov 28 '17 at 6:11
Yes yes! this fixes it in xcode. Thanks! That's good enough for testing. Will buy a real iphone X to avoid the xcode issue in future to test on.
– Phyllis Sutherland
Aug 31 '18 at 16:22
Right its working for iphone x . but its not working for any other devices bro.
– Govaadiyo
Nov 28 '17 at 6:11
Right its working for iphone x . but its not working for any other devices bro.
– Govaadiyo
Nov 28 '17 at 6:11
Yes yes! this fixes it in xcode. Thanks! That's good enough for testing. Will buy a real iphone X to avoid the xcode issue in future to test on.
– Phyllis Sutherland
Aug 31 '18 at 16:22
Yes yes! this fixes it in xcode. Thanks! That's good enough for testing. Will buy a real iphone X to avoid the xcode issue in future to test on.
– Phyllis Sutherland
Aug 31 '18 at 16:22
add a comment |
If you already have a 1125px × 2436px launch image but the app is still not using the full screen check to make sure that your image is PNG.
add a comment |
If you already have a 1125px × 2436px launch image but the app is still not using the full screen check to make sure that your image is PNG.
add a comment |
If you already have a 1125px × 2436px launch image but the app is still not using the full screen check to make sure that your image is PNG.
If you already have a 1125px × 2436px launch image but the app is still not using the full screen check to make sure that your image is PNG.
answered Mar 28 '18 at 15:16


BlagoBlago
3,99612623
3,99612623
add a comment |
add a comment |
if you removed LaunchScreen.storyboard; Choose your project, select your project target, General -> App Icons and Launch Images -> Launch Screen File: Select here Main.storyboard instead of LaunchScreen.storyboard
add a comment |
if you removed LaunchScreen.storyboard; Choose your project, select your project target, General -> App Icons and Launch Images -> Launch Screen File: Select here Main.storyboard instead of LaunchScreen.storyboard
add a comment |
if you removed LaunchScreen.storyboard; Choose your project, select your project target, General -> App Icons and Launch Images -> Launch Screen File: Select here Main.storyboard instead of LaunchScreen.storyboard
if you removed LaunchScreen.storyboard; Choose your project, select your project target, General -> App Icons and Launch Images -> Launch Screen File: Select here Main.storyboard instead of LaunchScreen.storyboard
answered Jun 25 '18 at 19:22


Bedri KeskinBedri Keskin
1
1
add a comment |
add a comment |
Just ran into this while trying to update an app I hadn't worked on in a while.
On Xcode 9.4, I was able to fix this by doing the following:
- Add a launch screen by going to File -> New -> File... -> Launch Screen
- Make sure the newly added launch screen storyboard is selected as the launch screen file under project settings.
add a comment |
Just ran into this while trying to update an app I hadn't worked on in a while.
On Xcode 9.4, I was able to fix this by doing the following:
- Add a launch screen by going to File -> New -> File... -> Launch Screen
- Make sure the newly added launch screen storyboard is selected as the launch screen file under project settings.
add a comment |
Just ran into this while trying to update an app I hadn't worked on in a while.
On Xcode 9.4, I was able to fix this by doing the following:
- Add a launch screen by going to File -> New -> File... -> Launch Screen
- Make sure the newly added launch screen storyboard is selected as the launch screen file under project settings.
Just ran into this while trying to update an app I hadn't worked on in a while.
On Xcode 9.4, I was able to fix this by doing the following:
- Add a launch screen by going to File -> New -> File... -> Launch Screen
- Make sure the newly added launch screen storyboard is selected as the launch screen file under project settings.
answered Dec 23 '18 at 6:26
MyxticMyxtic
4,65243765
4,65243765
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46184859%2fseeing-black-bars-at-the-top-and-bottom-of-the-iphone-x-simulator%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
7AlfT4fhc,xHa Srs4s9s4J5dEr,NS,lIaf,RzpG7HqvdI 3IxM P w2N2BTd ESh0VNS8gPiDrJsc gm5 tW 5tnomF8y
1
Are you using a Launch Screen file or launch images? Are you using auto layout?
– rmaddy
Sep 12 '17 at 20:38
1
Launch images and auto layout
– Darko
Sep 12 '17 at 20:38
3
Why are you using the old style launch images instead of the much easier Launch Screen file? Anyway, have you added the new launch image needed for the new screen size?
– rmaddy
Sep 12 '17 at 20:39
I can't find a launch image for the iPhone X size. But using a launch screen solved both issues. Please edit your response and I will mark it as answered. Thanks!
– Darko
Sep 12 '17 at 20:44
5
You SHOULDN'T USE launch images. USE
Launch Screen.storyboard
instead– onmyway133
Sep 13 '17 at 7:52