I'm building an app with the latest version of Xcode.
all of my views in the storyboard are based on the iPhone 6 frame (4 ,7'' screen)
I have an iPhone 6 (4.7'' screen)
Here is the problem:
if I open the assistant editor > preview > add iPhone 5 and add iPhone 6, the iPhone 6 view looks exactly how it should look.
if I run the app on the iPhone 6 simulator, again it looks exactly how it should look.
I run the app on my own device (iPhone 6) – it looks exactly how it would look on an iPhone 5 (4'' screen)!
I know some of you are gonna tell me add constrains but I'm not there yet. I usually do that at the end. What I want to know is why does everything work and look just fine (simulator and preview ) until I run in my device and how do I fix that?
I mean even without constraints my phone should run as it looks on my storyboard since it's all built on iPhone 6 frame and I'm running it on an iPhone 6... and it should run on my device as it runs on the simulator... why is my phone acting like an iPhone 5?
Related
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
Normally when I create an XCode project and run it the iPhone simulator looks normal, here's a picture:
This time I have used a Parse Starter Project, so that I can implement parse in my app, but for some reason it is scaled down to what seems to be an iPhone 4s, which looks like this:
If I go to any other project the simulator looks normal, but when I run the Parse Starter Project the simulator does the iPhone 4s scaling.
The problem is that you have forgotten to give your project a launch screen (e.g. LaunchScreen.storyboard). The presence of this is what tells the runtime that your app runs natively on the 6 / 6 Plus. Without it, as you have rightly deduced, you are running in "zoomed" mode.
I´ve made an app, and I tested it on my iPhone 5, iOS 8.1.2 It worked perfectly there, however when i tested it on my fathers iPhone 5s, iOS 7.1.2, the top and bottom of the screen were cut off, as if it was tested on an iPhone 4. Does anyone know what could cause this? Thanks in advance.
You need the 4" launch image. You must have the launch screen file which only works on iOS 8. iOS 7 requires the standard launch images.
You need to add your launch screen image Default-568h#2x.png to your project and set it to the Asset Catalog. This will work in both iOS 7 and iOS 8
I made my entire app in Xcode 5.1.1. Saturday I downloaded Xcode 6.1 to make my app on iPhone 6 and 6+. I already placed the proper launch images and app icons for iPhone 6 and 6+. (For this app i'm not using size classes because Auto Layout doesn't work for me in this app.) I changed some of my code to fit iPhone 6 and 6+ but the simulator clearly isn't playing iPhone 6 and 6+ because none of the UIImageViews moved according to where I placed them with the code. It's still playing the zoomed in version of iPhone 5. How do I load the iPhone 6 and 6+ simulators according to my code and not the zoomed in version of iPhone 5?
I was told to place launch images for iPhone 6 and 6+ and it'd work, but it didn't.
here's what worked for me:
From the xcode pull down menus, Xcode > Open Developer Tool > iOS Simulator (if you get a pop up error just dismiss it)
Once in the Simulator go to Hardware > Device > Manage Devices.
Delete everything listed under simulator.
Reboot your machine.
After that navigate back to Manage Devices in the simulator and click the plus to add back your simulators. Then the iOS 8 simulators will show up. Hope that also helps you.
The old launch image asset doesn't provide the necessary support for iphone 6/6+. Remove your old LaunchImage item in your images.xcassets and create a new one. There will be additional options for adding the proper launch images for iphone 6/6+.
My hard drive crashed, and I had to re-install all the development software.
It seems like when I create a new project, it is targeted for the iPhone 5 (The UI editor has a taller screen in the layout) but the simulator is an iPhone 4 (the screen is not as long) All so When I layout the UI in Xcode, the simulator sometimes draws things at different vertical positions.
Is there a way to get a simulator for iPhone 5?
Can you create a project that has it so the UI editor is targeted for the older iPhone, iPhone 4?
You can select either of the simulators you want for your project:
iPhone Retina (3.5-inch) is for iPhone 4 or iPhone 4S and iPhone Retina (4-inch) is for iPhone 5.