The latest iOS on which I worked was ios 4.3. However continuing with iOS development now, on switching to iOS 6 I found a lot of different features. One interesting and confusing feature is the new look of iphone simulator. It has a new shape and does not have home button. I was looking at this link and learnt that this was true for devices after iPhone 4 including it.
My question is, why is home button absent for new iphone simulators not considering that former would appear after scaling the latter.
there is a option of Home button
1) it gives shortcut for Home button = cmd + Shift + H
2) it gives three size of simulator = (cmd+1, cmd+2 and cmd+3)
you can switch size of ios simulator (cmd+1, cmd+2 and cmd+3)
It also depends on your screen resolution. On my MBP Retina it displays the frame for all the device, on my external monitor (1600 x 1200) it fails to show the frame for all the Retina simulated devices.
Related
I had this error already in Xcode 13 but it still persists
in the current version.
When I connect my iPhone XS to preview my SwiftUI app in the canvas, it shows the iPhone 14 Pro layout. However, when I check on Devices and Simulators, it's correctly recognised as iPhone XS.
So when I design my layout, I always have to switch between the iPhone XS simulator for designing, and my real device for testing.
Does anybody know a way to show the correct device in the canvas?
I have the same issue and I found out that if you want to see the specific device type to canvas, you have to download the simulator for this device.
From the "Windows" tab, choose "Device and Simulators", and then Simulators. At the bottom left of the window, you can add new simulators.
Then choose your device type and download it.
Once you've added a new simulator, you can use PreviewDevice(rawValue: "Your Device Type").
For example:
I added a new iPhone 12 Simulator and use HomeScreen().previewDevice(PreviewDevice(rawValue: "iPhone 12"))
add simulator window
After that, I am able to see my screen as an iPhone 12.
There are several questions that will resemble to this one but their solution is not quite what I'm looking for.
I have a Retina MBP (1920 x 1200), and previously I was able to run iOS Simulator 7 and simulate different devices (retina or not) and for all of them I was able to see the Home button. Now, with iOS simulator 8, I can no longer see the Home button. I don't want the Command-H functionality, I want to see the button because what I'm looking for is the orientation of the device (left, right, bottom or top). Without the Home button being visible, I cannot tell truly what orientation the device has.
I thought my Retina Mac was enough for the Home button to be displayed but I guess is something else.
Is there a way to show the Home button? or is something that my Retina MBP can no longer display.
p.s. Please, don't answer with "Why do you need/want to see the Home button?" if you don't have a solution for the question I'm asking.
If you have a Retina Display macbook, you must set set the display to the highest resolution to see the iPad/iPad Retina frame on the simulator.
This answer from: iOS Simulator v5.1 window is missing device frame and Home Button
I am new here. I have an iOS 6.1 iPhone application. When I try to run it in iPad running iOS 7, the x2 zoom button at the right corner is gone and my iPhone application UI mess up with the wrong position. The UIWebView is stretched over size for iPad. How can I solve this problem? Should I change it manually?
As my comment seems to be the actual answer, I post it again as an answer.
Setting the App to be an Universal App and only providing a Storyboard for iPhone/iPod will result in this behavior. The iPad tries to use the iPhone Storyboard to display the App on the whole screen in full size without the 2x button. Thus all elements in the App will be positioned according to their positions defined for iPhone size display.
The solution here is to set the App available for iPhone only (in App target > Deployment info > Devices > [select iPhone here]) instead of Universal. This will result in the iPad to display the App on iPhone size and provide the 2x button to zoom in.
When I run the iOS Simulator (iPhone running iOS 6.0), it does not show the home button or frames.
I have installed Mac OS X and Xcode on a VMware instance.
Increase the scale of iPhone simulator to 100% Or
other option is Use Command window+shift+h
this will work like you press home button
There isn't any Home button or Frame for iPhone 5 (iOS 6).
To go to the Home Screen do these Steps:
Simulator
Hardware
Home
The only Possible way to get the frame is taking the iPhone simulator screenshot and then Cropping it in a iPhone 5 frame in Photoshop.
Once the simulator is open press Command+1
Try clicking command+2 button to enlarge try for command+1, command+3. see the different sizes. Check if the simulator app is selected.
I built and ran an iOS 4.3 app in Simulator. It initially brings up an iPhone 4 shell. Although all real iPhone 4s have retina display, this simulated iPhone 4 only has a resolution of 320x480.
I look in Hardware > Device. There's a checkmark next to the normal iPhone. So I'm using an iPhone 4 case but displaying normal iPhone resolution? I'm already confused!
iPad
✔ iPhone
iPhone (Retina)
I then switch over to iPhone (Retina). Strangely, it opens iPad with the same 320x480 resolution. Both the shell and the resolution are wrong here!
How am I supposed to turn Retina on and off and show it in the right shell?
iPhone (Retina) is the correct device to be choosing, but I'm not sure why Apple decided to use the iPad shell for that one. To enter 640x960 mode, go to Window > Scale and set it to 100%.
The iOS Simulator does indeed scale. I have no real reason to present on why it would choose the iPad shell, but the purpose of the scaling is to make sure it fits on your screen and stays (relatively) close to handset sizes. Be sure to check Window -> Scale and set it to whatever you find appropriate.