I have an autolayout xib with Size Classes enabled. The view looks great in all the phone sizes under "Simulated Metrics" but when I install the app on the phone only the last layout that was selected under "Simulated Metrics" gets loaded. For example, if I choose iPhone 5.5-inch under simulated metrics and install it on an iPhone 4S the layout the iPhone 5.5-inch gets installed on the 4S, making it go off the screen.
Is there a setting or something I've messed up which says to only build the currently selected layout?
Related
So I upgraded to react native 0.41 and now when I run my app on a physical device (ipad pro) it looks pixelated and isn't full screen. It has black bars on the sides (iphone aspect ratio) and has a 1x button at the bottom right which i can tap to zoom out. I've been googling for an hour and the RN ecosystem moves so fast that google is useless in many cases.
Any ideas?
It's not exactly related to RN. Your app is probably set to run only on iPhone, not on iPad. Maybe it was reset when you upgraded.
An iPhone app that runs on an iPad is displayed in a special "compatibility mode" where you view it in a smaller iPhone-like viewport that you can zoom in and out (the x1 and x2 buttons you see).
If you want your iPhone app to also run natively on iPad:
open Xcode in the project navigator (left panel)
click the project file, then select your app target (will appear on the right side in the left pane under TARGETS once you select the project)
in the "General" tab, scroll to "Deployment info" settings and change the "Device" selector to "Universal".
Note that while it will run in native iPad resolution, if you're not optimizing your UI for larger screens, your existing UI will just stretch and fill up your whole screen.
I have a Universal application in Swift 2.0 developed in XCode 7.
On the storyboard simulated metrics, I have the 'size' set to 'iPhone 4.7-inch'.
When I run the application on my device (iPhone 5s), none of the labels are aligned and the toolbar is out of view. -This is also the case when I run using the iPad device in XCodes simulator.
Image of what the view controller contains ...
From the snippet above, when I run this VC on my iPhone there is no margin on the right side, and the toolbar is cropped off.
Can anyone advise how I can make a universal application show all the content in the VC, on all devices. Or how I would simply show the toolbar ...
That's what auto layout (constraints) is for.
On the storyboard simulated metrics, I have the 'size' set to 'iPhone 4.7-inch'.
That's irrelevant, and indeed misleading, since in means that only on the iPhone 4.7-inch will your app look like the storyboard design — unless you use auto layout.
iPhones come in many screen sizes. Basically, you have no way of knowing, as you design, what the screen size will actually be! Auto layout is the solution. Auto layout allows your interface elements to adjust automatically as the app launches on a particular size screen. iPads can serve as an extension of this — i.e., just an even larger size screen — or you can even use conditional constraints to make the interface quite different on the iPad from the iPhone, if desired - all designed in a single storyboard.
Maybe you are using auto layout and auto constraint. You could deactivate this in opening the storyboard, open up right panel , go to "show the file inspector" section and under Interface Builder Document uncheck auto layout and auto constraint
Image here
Select your item view, go into "Show the size inspector" and there you can set your autoresizing for all devices
I am working on updating an app for iOS8 and when building in XCode 6 and installing on my iPhone 6, the text throughout the app is still blurry. The status bar is also blurry.
What have I missed? Were there other steps that need to be taken?
You need to add the correct sized launch images for the 6/6+. To do so you need to use an asset catalog for your launch images. (If you aren't clicking use asset catalog will prompt you to migrate) In the asset catalog select the launch image set, open the inspector and be sure iOS 8 is checked. You'll see the new image size slots. Clicking a slot will show you the required size in the inspector.
I'm new to Xcode and I'm having a problem between interface builder and iphone simulator
As you see below, I set the imageview size for simulator, but some buttons places are changed, button texts disappeared or even buttons disappeared.
http://postimage.org/image/w9ej1c3z1/
I just open a new project and add buttons like the image below, then run the project. Same thing again! I'm doing something wrong?
http://postimage.org/image/6gl55tehd/
xcode version is: 4.5.2
Ios simulator version is 6.0
Please make validate your design by clicking on "Apply retina 4 form Factor" button at the bottom of view controller upon selection...
if you click on that button, It will change to simulator size and you can check the design
It looks like your view is for a 4" screen but you are running in the 3.5" simulator. You will probably just need to play with the autoresize a bit to make it work correctly.
Your interface builder is set for the resolution of an iPhone 5. Your simulator is on the resolution of an iPhone 4S. In the Simulator menu bar select Device -> Hardware - iPhone 5 (Retina) and you will see your additional buttons.
Here is a pretty good tutorial which explains how to support both the iPhone 5 and <= iPhone 4S screen resolutions. Working with iOS 6 Auto Layout Constraints in Interface Builder
How to make an iOS app support landscape orientation?
How do you make it support both landscape and portrait, where you can just press a button to activate it.
for any new people reading this old post just go to main.storyboard->click on the view controller click on simulated metrics (the fourth icon that pops up, looks kind of like a pentagon belt buckle)
then orientation->Landscape this is for Xcode 5