Is there a way to show the entire simulator screen? - ios

This is what the screen displays on my MacBook. After I updated Xcode, it changed from showing the entire screen of the device to showing part of the screen. I now have to scroll to see everything that would be displayed on the screen.

Bring the simulator app to the front, select the window menu, and choose scale. Pick progressively smaller scales values until the whole simulator fits on your screen. (It should really have a "fit to screen" option, but it doesn't.)

You can resize simulator using
command+1
command+2
command+3
if it doesn't fit.. u will need a bigger screen.

Related

Close one of the device screens in assistant editor's preview mode

I'm testing an app in multiple screen sizes in Xcode's preview mode in the assistant editor. I can add devices but I haven't been able to figure out how to remove the device after I know it is aligned properly. The Main.Storyboard is on the left. You can see in the picture below that the three devices on the right are aligned properly, but now I can't get rid of them and it's a bit crowded. Right clicking doesn't work and neither does the x in the top right corner.
My question is: Is there a command or shortcut on the keyboard that allows us to get rid of that device size once we've tested it? For example, if I wanted to leave the two Iphones on the right but get rid of the Ipad?
Been there done that... Turns out to be a really easy:
Select the view you wish to delete and press the Backspace button on your keyboard.
Done!

iOS Simulator Displaying App Incorreclty

I have no idea why, but all of a sudden my iOS simulator is displaying my app funny. It is cut off and seems to be zoomed in. Below is a screen of my story board and my simulator.
Check on the output window if there are any constraints being broken.
Remove all constraint which are added in size inspector. As default it stick to left and up with size fit. So remove it.

Launch screen image not displaying correctly

Working with the iOS launch screen and it's a very painful experience.
Finally got it to appear, but no matter what I do it won't align properly. It's either stretched too far, or in a weird position off the screen.
What values for mode and stretching should I use to display this image viewer in my .xib?
If you're using the Launch Screen.xib or Launch Screen.storyboard, you need to set the correct AutoLayout constraint in your IB file.
If you're not, you need to set the Launch Images Source in your project general settings page.

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.

iPhone app loading

When I load my iPhone app it always loads a black screen first then pops up the main window. This happens even with a simple empty app with a single window loaded.
I've noticed that when loading, most apps zoom in on the main window (or scale it to fit the screen, however you want to think about it) and then load the content of the screen, with no black screen (see the Contacts app for an example).
How do I achieve this effect?
Add a Default.png to your project. This should be the image you want shown instead of the black launch screen.
Also just to save you some time, there is no way to change this image during the runtime of your application. If you look at Apple's Clock application you can see how depending on the last state of the application, the Default.png changes. You cannot do this in your own app because of permission limits. Also, make sure to read the iPhone HIG for best practices on Default.png use, in short, dont use it as a splash screen like Twitteriffic.
You can also take a screenshot of your app as an aid to creating the Default.png - while holding the Home button, press and release the Lock Sleep/Wake button. The screenshot can be find in your Camery Roll library in the Photos app and can be synced back to your desktop.
When the app transitions from the launch image to the actual app content, it should not be jarring to a user - content (text/images) can be added to the screen, but content should never change. If all this leaves you with is an empty blue header, a white body, and a blue footer - then that's all you should have. If you have a persistent tab bar on the bottom & a localized app (different text descriptions), then then launch image should appear with icons but no text. (See Clock.app & Facebook.app for examples.)
Screenshots can also be taken in XCode using the Screenshot tab in the Organizer window and a plugged-in device.

Resources