While running on device Screens doesn't comes Fill screen - ios

I have run an application in iPhone 5 device it doesn't comes in full screen. remaining top and bottom comes in black color.
In simulator it is working fine.
Edit :
I he used this side menu, RESidemenu
While using this having the problem with the window. The window is resizing.
I am using Xcode 6.1

I think that you must have your LaunchScreen.xib missing or deleted. Add your LaunchScreen.xib or Default-568h#2x.png to your project and set it to the Asset Catlog.

Related

blank view on top of Nav Bar in ios Simulator?

How do i get rid of this top and bottem blank view ?
Evrything is set to none.
This is a known issue. You can add a launch screen file that appears to work for multiple screen sizes. see How to enable native resolution for apps on iPhone 6 and 6 Plus?
Add proper launch screen files to resolve your issue

xcode only running 3.5 inch screen [duplicate]

We have an iPod app built with base SDK as 5.1.
App has a tabBarController with three tabs and each tab has a UIViewController to load a different view.
The app works fine for iOS 6.1 and iOS 7 (3.5 inch display) simulator and device but when we run the app on
iOS 7 (4 inch display simulator) or device we are getting black bars at the top and bottom of the view screen in all three tabs.
If anyone can suggest reason for this or some feasible solution to this problem, it would be really helpful for us.
Thanks
First thing is that you must add the required default image for 4 inch screen display. Check Properly in you project have image with name Default-568h#2x.png (640 × 1136 pixels)
This Default-568h#2x.png is Necessary for Support app in 4 inch Screen display
Ones you add this image in to you working Project, Remove old Build from device or Simulatore, clear Project and re build and check Hope you issue will solve.
Edit:-
After fix the black Bar issue you can check the device like my answer Give here check this:-
Detect device type
you have two choice if you can't use AutoLayout
First
Create two xib with same class one for 3.5 inch screen and one for 4 inch screen set using macro with checking which screen appear.
Second
Set Self.view frame using macro with checking which screen appear.
There are also other methods you can use for set self.view frame as using window frame or UIScreen
My problem was I accidentally deleted the value found here:
I added back LaunchScreen, and made sure there was a LaunchScreen.xib. Maybe it will help some others.
Ive had the same problem - black bars at the top and bottom. It was simply solved by setting the drop down in "App Icons and Launch Images" to Main_iPhone:
App Icons and Launch Images Screen Shot
I was facing same problem . I just added launch image and it worked for me.
XCode->Click on Project File -> Select Target-> App Icons and Launch Images -> Add launch image source
This worked!
Pay attention to Step#5 and Step#6 below:
1.In xcode, Click on the Project file in Project Navigator
2.Click General tab
3.Type "Main_iPhone" in the Launch Screen File field
4.Save
5.Remove the app from device or simulator
6.Then in Xcode go to Product Menu and then select Clean
7.Build again

iPhone 6 - app does not fill screen

Most of my apps scale up when run on an iPhone 6, but for some reason one of my apps looks like this:
What would cause it to not just scale up and fill the screen?
EDIT: Here are some repro steps:
Create a new project (Single View). Turn off size classes and just use iPhone.
Make the background orange.
Add a yellow UIView subview at (20,20,280,200).
In Xcode you get this:
Now simulate on iPhone 6. You get this:
Why doesn't it just scale up and look normal?
Not sure why this is getting downvoted. It's a legitimate question. And here's the legitimate answer:
Remove the "Launch Screen File" in Projects > General. Xcode 5 did not have this so older apps scale up automatically. Apps created with Xcode 6 get a default Launch Screen file created.
Removing it will make your app scale up on iPhone 6.
I have got the same problem and I managed to solve it by adding constraints to my ViewController in the storyboard.
Make sure that you clicked the ViewController of your scene. They yellow button in the this screenshot.
Click Editor-> Resolve Auto Layout issues -> Add Missing Constraints
Now you will find that the background image is scaled up to fill iPhone 6 or iPhone 6 plus.
Note that this solution works for me even if I did not provide any launch screen file.
I had the same issue. Searching for an answer, most of them mention the launch image. To me, what did the trick, was that I first enabled launch image for iOS8.0 and later in Xcode, which requires the native resolution sizes for 4.7" and 5.5". Adding these sizes didn't help, but when I re-disabled them, it started working!
If you do have any launch image, you will need launch images for all appropriate sizes. I was doing a minor update to an app, and it was not showing correctly on the iPhone 6 simulator. I created four launch images (.png files). Since the app should still run on iOS 7, I apparently could not use an asset catalog. I gave the images the correct names, and all is good.
Image sizes and names may be found here:
Sizes and Naming of Launch Image for iPhone app in iOS8

iOS Simulator Ignores Half of the Screen?

My app is working fine in iOS 7 , but when I simulate it in iOS 6 simulator , it seems , that it only loads top half of the screen. How can I solve this ?
This is an screenshot of how the view is in the storyboard builder and in the simulator :
set your iPhone retina 4 launch image 640*1136
You have to add a splash screen (Default.png) of (640 × 1136)... without this app treated app as its iphone 4s & below device
You need to set the UI for iOS7 as well as iOS6.
Just open your storyboard and then click on assistant editor.
Now open storyboard preview in assistant editor.
There is a button in assistant editor at right hand bottom corner which says iOS7 or later, click on it and select iOS6 or earlier.
Now you can see the UI for both iOS7 and iOS6 side by side on the screen.
Now select a particular view controller and then select size inspector.
In size inspector you just need to set the iOS6/7 Deltas for iOS6 screens.
That's it.
check this url too :
https://developer.apple.com/library/IOs/documentation/UserExperience/Conceptual/TransitionGuide/SupportingEarlieriOS.html
If you have any problem then let me know.
This happens because of the resolution of iOS6 is lesser than iOs 7 simulator. You can use Autolayout option to solve this issue.

4-inch simulator strange result

On right there is simulator and on the left you can see the ViewController in xcode5. Problem: black space at the top and bottom of the simulator.Even the Carrier and time not showing at top . Issue in 4-inch screen and in 3.5-inch screen its working perfectly
As discussed in the comments of your question, you are missing the Default-568h#2x.png launch image, for your app to utilities the whole iPhone 5 screen you need to include this launch image otherwise it will not launch in full screen.
Here is a link to the Apple documentation for Human User Interface for launch images
add a Default-568h#2x.png image to your project and problem will be gone.

Resources