Why is the device viewer different than the simulator? - ios

I have constraints for my iOS application and I run the simulator an this is how it runs on the iPad Pro simulator...
9.7 inch iPad Pro Simulator
And then when I view the device in Xcode as a 9.7 inch iPad Pro, it looks exactly how I want it to. I cleaned the build and restarted Xcode and the simulator but each show a different result.
View as 9.7 inch device
So if I was to run the program on an actual 9.7 inch iPad, which one would it run like?

Your app is not fullscreen on the iPad, because it is not a Universal app. It is running in the iPhone mode and just stretched.
To make your app a Universal app, select the Project in Xcode, select the Target, go to the General Tab and change Devices from iPhone to Universal.
Without any changes the app on a real device would look like the app running in the simulator.

Related

Test app for iPad mini

I am developing application for ipad. I have tested application for ipad 9.7 inch. I want to test app for ipad-mini which is a client requirement. How can i test my app for iPad mini. Although ipad-mini and ipad 9.7 inch have same pixel ratio but according to client there is still an issue on ipad-mini.
I am currently using xcode 8.3.
There is no simulator device available for iPad mini.
You will have to download simulators for iOS 9 from the XCode-Preferences-Components as shown in the below image because iPad mini is not updatable to iOS 10. Thats why it is not showing up in the simulator list. Once you will download the components for iOS 9 you will get it in your simulator list.
There's no simulator for iPad mini. Either get one physical device or test on older version of ipad with similar resolution (or screen ratio)

App not displayed in full screen on iPad Pro Simulator

I have created an iPad app in Xcode 7.3. Every works fine on iPad 2, iPad Retina etc.. but my problem is when my app is loaded with the iPad Pro simulator. The app works fine but is not zoomed to display at full screen (approx 2 3rds of the screen). When creating my app I did not set and constraints as on previous versions of Xcode, iPad apps would automatically zoom there native size to fit on the iPad Pro. I do not have a iPad Pro to check if my app will zoom to fill the screen on an actual device. If I were to submit my app to the App Store would it be refused ?
If required, is it possible to submit an iPad App without supporting the iPad pro ? (possibly by not suppling iPad pro screen shots in iTunes Connect).
If required I can post some screen shots

How to test iPad Pro on the iOS simulator

It's been hinted at that the iOS simulator can be resized to show the full size keyboard in the iPad Pro (http://www.fastcompany.com/3047871/tech-forecast/the-ipad-pro-doesnt-need-a-physical-keyboard), which presumably would allow for the testing of an app in that screen size, but I haven't found a way to do it. The GM seed of Xcode 7 even has the iPhone 6S and 6S Plus, but no iPad Pro in sight. Anybody have any ideas?
If you run on the iPad Pro simulator in Xcode 7.1 Beta and use a storyboard (not an assets file) as your launch screen, it works great.
Check this thread:
iPad Pro launch image and App icon

iPad3 treats my iPad app as an iPhone app

I had an iPhone app that I needed to convert to be iPad compatible.
I added an iPad stroyboard as per this answer and even changed it so that it could be iPad only.
The iPad layout shows up fine on all iPad simulators and when i run it on an ipad2 device. But when i run it on an iPad 3 device, it shows the iPhone layout instead and the scale factor (x2, x1) shows up in the upper right corner of the screen.
I already added an iPad launchImage, and App icon. my info.plist contains both iPhone and iPad storyboard names.
what could cause the iPad3 to treat the app as iPhone given that it works fine on iPad2 device and all simulators ?
UPDATE:
Turned out the iPad was jailbroken and had RetinaPad installed (from cydia). Removed it and everything worked well.
Probably you have an older version of your app in your iPad or your resources are cached.
First of all be sure that in your project definitions the devices is set to "Universal".
Then, if this is set, remove the app from the iPad then do a force clean in XCode (go to Product then press alt and then click "Clean Build Folder"). Then run in the iPad again.

Run app on iPad Mini Retina on Xcode 6

I build app for iPad and sent to my client, and gave me feedback that it runs on every iPad devices which we supported(compatible with iOS5+ iPad 1G, 2G, 3G, 4G, mini, mini 2, Air) except iPad Mini Retina, he said that App install fine but doesn't. I don't have iPad Mini Retina but I want to check this on my side. I install latest Xcode 6 but still I am not able to see iPad Mini Simulator which you can see attached image. So kindly any one give me suggestion how to accomplish this task. Thanks in advance.
Although an iPad mini isn’t an option for a simulated device in iOS
Simulator, you can still test apps for the iPad mini in the simulator.
To do this, run your app on the simulated iPad without Retina display.
via Testing for the iPad mini
So, the scoop is that you have to build apps for iPad 2 resolution. The iPad Mini is non-retina with a resolution of 1024x768 which means apps that already worked on an iPad 2 automatically work on iPad Mini. This is another useful thread.
You can test it on iPad Mini in Xcode by choosing Resizable iPad from the iOS simulators and then you can configure the pixel resolution in the simulator. The resolution in landscape is 1024x768 but on iPad Mini 2 and 3 it's 2048×1536. More info here.
For Xcode 7 one should use Ipad 2 and iPad Air.
See the Reply from apple-staff-user "jeremyhu" on
https://forums.developer.apple.com/thread/12567
i don't think thats an adequate solution although.

Resources