In iOS6 the bottom of the screen gets cut - ios

I have a UIWebView build in Xcode 5, I load a page with a form, but the bottom of the screen is cut, if I enter a text in the form and press "done" the bottom of the screen appears again but the top of the screen is cut now.
I'm work with xcode5, builds for iOs 6 and later and view as iOs7 and later.
The problem happens only with iPhone 4 -iOS6 but it work fine with iPhone 4&5 with iOS7.
Image 1: Bottom screen is missing
Then I enter text in the first field and press "done" and....
Image 2: Top screen is missing now (and bottom is ok)

In your .xib file I assume that you do not use Autolayout. Navigate to the size inspector tab (the one with the ruler) and set the Delta Y property to -20.
See this answer here for screenshots regarding these settings.

Related

iOS/Xib: Easiest way to show a button in the middle of different iPhone

In my iOS app, I just want to have a button located in the middle of screens of multiple devices (like iPhone 6, iPhone SE, iPad Air).
However, surprisingly, it seems not intuitive to do (at least not as Android) in XCode + Xib.
Following shows a trivial example of this problem where I put the button aligned to the middle:
However, unless the "dimension" of the view is set identical to fit the installed device, there is no way to display the button in the middle.
Add horizontal and vertical center constraints as follows and it will always keep your button at center of any screen as shown in the image below
You can also add distance constraints to borders of the screen :
Example

Horizontal slider disappears when using constraints in Xcode Swift 3

I have a horizontal slider that appears and works fine. But when I add any constraint, it disappears from the build. I've also done an archive and tried it on my real iPhone 5c device.
Any ideas what could be causing this and how to fix it?
Screen in Xcode, showing constraints:
Screen in preview (same on real device), and it does not appear:
It looks like you haven't set the y position of the slider view. You need to hook that up too, that should fix it.
On the left side of the storyboard, there is the overview of your ViewControllers. In the upper right hand corner of the one, you're currently in, there should be a tiny warning symbol:
If you click on it, you will be presented with what might be the issue:

Label as Splash Screen

I've been searching for hours now about my first task in my job. Today, I'm familiarising myself in using Macbook. It is really hard for me to adapt to changes, because I'm a Windows user. I used to be a freelance C# programmer.
Anyway, what I've learned in the first hour is the Storyboard. How to add a segue, for example, clicking a button from View1 and then the View2 will show. However, the program returns an error, I think I need to have a code first.
But let's go to the question: (How to make a splash screen with just a label not with an image)... I need to have a 1st screen which has a hello world label, and then after 2 seconds, the 2nd screen will show.
What I have done so far:
learned Story board.
checked the "Is initial view controller" of my first screen.
For the Splash Screen in iOS Application You don't need to do code. You just need to following dimension Splash image and add it to asset.catalog.
iPhone 4 & 4s size:
Default.png (320px X 480px)
Default#2x.png (640px X 960px)
iPhone 5 & 5s size:
Default-568h.png (320px X 568px)
Default-568h#2x.png (640px X 1136px)
iPhone 6
Default-667h#2x.png (750px X 1334px)
iPhone 6 Plush
Default-736h#3x.png (1242px X 2208px)
This All iPhone Application splash screen size and its name conversation. now you can set Splash with two way:
Fist:
when you tap the right small arrow near of launchImage (->) you can see the following window:
Currently there is empty because from right side there is no any target selected so if your deployment target is 6.0 you need to set check mark like following screenshot so you can see the all image need box :
See when you add wrong dimension image in catalog you can get warning at top right corner and when you tap on this warning you can get actually dimension. see the following screenshot for:
So from the warning log you can know which dimension image need for which splash screen.
Other way
No need to use Asses Catalog and no need to use LaunchScreen.xib you can still use old way:
In plist you need to add following data:
Add one row by tap (+) its called UILaunchImages
and you need to fill this row like following
that's it no need to do any thing hope that answer helps to other as well.
When you create a new project it automatically create LaunchScreen.xib
1.) Now from Toolbar window select UILabel drag it to launchScreen.
2.)
Go to Your Project(Right click) -> New File - >iOS -> User Interface -> View(Give any name to it).
This will create nib file with label(as your project name)
Now Open the Right Inspector of Xcode and check the Use as Launch Screen that's it ur work done.
Below i have attached screenshot which may help you
Go to Launch Screen.xib(this is the splash screen which gets called automatically by xcode after an app is launched) --> clear everything u see inside the xib except the xib itself--> drag and drop a label in any position, write a text.

App Content not filling simulator window

Just having an Xcode issue that I'm sure is tied to some setting I can't find. Im my storyboard, my content fills the entire view (i.e a background image), but then when I run my app in the iPhone 6 simulator, the background image and all the content don't fill the entire screen. There is white space to the right of and below the content on the simulated "screen".
When I run the app in the iPhone 5 simulator, this isn't an issue and it fills the entire simulated view.
So, what did I miss? I want to make my app work on all models of the iPhone.
Thanks for any help!
There are several ways to solve this, and I guess you are using View Size as Inferred or iPhone4 Inch in Attribute Inspector.
First way is to use AutoLayout at Storyboard to add Constraint.
If you don't want to use this, you should at least set the Autoresizing at Size Inspector.
"White space to the right of and below the content" sounds like there are scroll bars being displayed in your window. The iPhone 6 simulator is a different size, as well, which would account for them not being there on the iPhone 5 sim.
Have you tried going to the Home Screen (Shift + Command + H) in your simulator, and seeing if the white bars remain? On my computer, the white bars are always visible. Annoying, yes, but they don't cover anything or hide any part of the view. It's just a bit of white padding on two sides.

Xcode 5 - Switched to Landscape orientation, content not centered anymore

I switched to landscape orientation and I have a button and slider in my very simple app. In the live view in Xcode, the content is exactly in the middle of the screen (snapped into place). However when I run the app, the content is slightly shifted to the right in the Simulator. Anybody have any idea how to fix this?
http://imgur.com/vfdO6N8
http://imgur.com/vS816p2
If you're using auto-layout try to add Constraint like this.
Click the issues Button
Then click on 'Reset to suggested constraints in Window'.

Resources