Unable to solve issue in simulator device [duplicate] - ios

This question already has answers here:
iOS 9 Xcode 7 - Application appears with black bars on top and bottom
(17 answers)
Closed 6 years ago.
My project UI work well for simulator 4s and also splash screen showing while running
but when I run on 5s or 6s device splash screen not showing and blank spaces appears header and footer of the view...
here is my 4s device simulator UI-
and this is 5s simulator UI-

You need to create the different size of launch screen image or launch screen from interface builder.
Please have a look this link

Related

layout issue in iPad when running the iPhone app in iPad (Objective-c)

I have an issue with the iPhone app. I have implemented one iPhone app (not universal). When I am creating the new project I have deleted the Launch Screen,Story board from the project and implemented the MainWindow.xib like in the old format. I have designed the xibs for iPhone 5. So in iPhone 5,6 and 6 plus everything is working fine. But When I run the iPhone app in the iPad the bottom part got cut off. If I design the xibs for iPhone 4, eventhough I added the Default-568h#2x.png it is not supporting for iPhone 5 but working well in iPad.For reference I have attached the screenshot . The screenshot for iPhone 5 screen. It is not scaling to iPhone 5 after adding the Default-568h#2x.png. Black color part width is 568-480=88 pixels.
So please guide me to handle the iPhone 4,5,6,6 plus and iPad.Thank you for spending the valuable time. Please let me know if I am not clear.
I am using xcode 8.0 and iOS 10.0

IOS App starts with iPhone 4s layout on greater devices [duplicate]

This question already has answers here:
iOS 9 Xcode 7 - Application appears with black bars on top and bottom
(17 answers)
Closed 7 years ago.
I just wanted to ask why my app is starting with a too small size on devices other than iPhone 4s on my simulator? Is there something wrong related to the constraints I set or general project difficulties?
You must set your launch images. At least set them for iphone 6 and you should solve the issue

Compiling and older app to iPhone 6s shows a lower resolution [duplicate]

This question already has answers here:
Black bars on launch screen on iPhone5 (and iPhone6)
(2 answers)
Closed 7 years ago.
Just got an iPhone 6S and started adjusting my project to it.
Somehow, when compiled and debugged on my iPhone, the view seems much smaller (like 4s).
Xcode: 7.1.1
iOS: 9.0.1
IPHONE: 6S
Anyone knows that went wrong?
Thanks,
You need to include launch images for all the iPhone sizes if you want the app to use the native screen size. The easiest way to do this is to migrate your launch images into an asset catalog.

Xcode 6 App Stops AutoSizing When Launch Images Added

I began a calculator app for the iPhone 5/5s using xCode v5 with storyboard. I've since upgraded to xCode 6 and have nearly completed the app. I tested the app on my iPhone 5, and on the iPhone 6 and 6 plus using the xCode simulators. The app fills the screen of my iPhone 5 and autoscales to completely fill the simulator screens for the 6 and 6 plus. Exactly what I wanted! However, when I added launch images to my project, the app no longer autoscales when running on the 6 and 6 plus simulators. I've followed Apple's recommendations for launch image sizes, and have tried dragging the launch images into my project and using an asset catalog. Both stop the app from autoscaling. What I'm currently seeing is a launch image that completely fills the screen of the iPhone 5/6/6 plus for approximately 1 second. Then the calculator appears, completely filling the screen of my iPhone 5, but remains that same size, filling only a portion of the iPhone 6 and 6 plus screens. I want the calculator app to completely fill the screens when running on the iPhone 5, 6 and 6 plus. Why does autoscaling stop when launch images are added and how do I continue to enable autoscaling after the launch images are added to my project? Thanks in advance for guidance.
Turkey day morning: I solved my problem! With great skepticism, I tried the solution linked below and it solved my problem. I added launch images (drag and drop). The calculator displays correctly on my iPhone 5, and also displays correctly when running on the iPhone 6 and 6 plus simulators. Don't understand why the linked solution below works, so it's something I'll just have to accept. My thanks to Matt Palmer for posting this on his blog:
http://matthewpalmer.net/blog/2014/09/10/iphone-6-plus-launch-image-adaptive-mode/
using a LaunchScreen.xib as LaunchScreen is 'cleaner', instead of generating 6 different images for a LaunchScreen Asset in the Media Catalog.
Don't forget to check 'Use as Launch Screen'
You should try this.
Disable Auto Layout and Size Classes.
and do this for all subViews in you XIB

iPhone 6 vs >iPhone 5 nav bar heights [duplicate]

This question already has answers here:
How to enable native resolution for apps on iPhone 6 and 6 Plus?
(8 answers)
Closed 8 years ago.
When running one of my apps on the iPhone 6, I've noticed the nav bar height of my app is taller than the nav bar height of a system app (ex Settings). While looking at some third party apps, I've noticed some apps have the same nav bar height as system apps (Twitter), and some apps have the same problem I do (Instagram).
This makes me believe that some of the apps are explicitly optimizing for iPhone 6, and some apps are just being scaled by the platform. Is there a specific way to optimize for iPhone 6?
This isn't an iOS 8 problem, as I've ran my app on an iPhone 5 running iOS 8 and the nav bars matched.
You have to provide launch images for iPhone 6 and 6+ (or a launch xib file). See here: How to enable native resolution for apps on iPhone 6 and 6 Plus?

Resources