Setting iPad Pro launch image without supporting iPad Pro - ipad

I have an old app, designed without auto layout, that works on iPad and appears to run fine also in iPad Pro because all view controller layouts are getting automatically scaled up. The only issue is that iPad Pro uses the app icon as launch screen which looks bad. This is of course because I have not provided a dedicated launch image for the device.
But if I add the launch image through assets catalog or by using a storyboard then the app assumes that iPad Pro is supported and stops upscaling the view controllers. Now, it would be a huge task to modify all view controllers for iPad Pro and that work also seems futile since the automatic upscaling already works just fine.
So, is there any way to make iPad Pro not use the app icon as launch image and yet let it run the regular iPad layout upscaled? I'm trying to update the app for iOS 10 in Xcode 8.2.

Related

iOS app not displaying correctly iPad

I am working on an App which should be able to run on iPhones and iPads.
I have been able to run it on iPhones and it is displaying perfectly. But when I run it on an iPad the App itself is very zoomed in. I am not sure what main issue.
This is how it displays on iPad:
And this is how it comes up on an iPhone:
Any idea how to fix it or what the issue is?
Your app isn't made to run on the iPad. When displayed on the iPad, it just stretches the display of the iPhone version (you can see that by the 1x button on the lower right corner of the screen). You need to setup your XCode project as a Universal App (instead of it being just for iPhone) and then you'll be able to take advantage of the entire iPad screen and design the display especially for it.
You can set the app as Universal on your project properties in XCode:

Why my iPhone app runs in fullscreen on iPad

I have an iPhone app which works fine on iPhone 5 and 4s, when i run it on iPad2 i am expecting it to run in small window with 2x resolution but instead it runs fullscreen messing up all the layouts, apple has rejected my app and i need a fix.
I have created this app as iPhone only and built on Xcode 6 with ios8.0 sdk,
Please help
thanks
If you set a launch screen for your app, it will be fullscreen on iPad.
In Xcode, select your app target, then select General tab, scroll to App Icons and Launch Images, checkout the Launch Screen File.
Ok so finally deleted the xib file which i was using as launch screen and used the default images instead that solved the issue for me now , app runs in 2x mode on iPad with launch screen.

iPhone app compiled with Xcode 6 on runs as Universal on iPad

I have got an app developed for iPhone family only, and I used to run it on iPad to test how it will look on iPhone 4s (since it launched with iPhone 4s resolution, size, and else '2x' round button for fullscreen support). However, now when I run it on my iPad with iOS 8, Xcode ignores all build settings and runs it as for iPad. My storyboard constraints were not projected for iPad screen.
I have:
Devices option set to iPhone on General tab in project settings
Main storyboard file name and Main storyboard file name are removed from Info-plist
All App Icons and Launch Images for iPad are deleted
In Launch Screen File the option Use Size Classes set to NO, and the assets are generated for iPhone only
Is that a normal behavior? I want to use my iPad as before to test iPhone 4s resolution. I am sure that my app won't become universal because of that, but nevertheless I think this is a problem.
The use of Launch Screen File in iOS 8.0, 8.0.1 and 8.0.2 will make you universal.
This is a know bug and fixed in iOS 8.1, for you only option is to use assets catalog with a launch images.
Or you can add the device modifier in the Launch file name, like <launchNib>~iphone.nib

iPhone-only app isn't iPhone only for some reason [duplicate]

I have got an app developed for iPhone family only, and I used to run it on iPad to test how it will look on iPhone 4s (since it launched with iPhone 4s resolution, size, and else '2x' round button for fullscreen support). However, now when I run it on my iPad with iOS 8, Xcode ignores all build settings and runs it as for iPad. My storyboard constraints were not projected for iPad screen.
I have:
Devices option set to iPhone on General tab in project settings
Main storyboard file name and Main storyboard file name are removed from Info-plist
All App Icons and Launch Images for iPad are deleted
In Launch Screen File the option Use Size Classes set to NO, and the assets are generated for iPhone only
Is that a normal behavior? I want to use my iPad as before to test iPhone 4s resolution. I am sure that my app won't become universal because of that, but nevertheless I think this is a problem.
The use of Launch Screen File in iOS 8.0, 8.0.1 and 8.0.2 will make you universal.
This is a know bug and fixed in iOS 8.1, for you only option is to use assets catalog with a launch images.
Or you can add the device modifier in the Launch file name, like <launchNib>~iphone.nib

Invoke iPad application from iPhone app

I developed one iPhone application that runs in iPad in 1x/2x mode. In the same application i have a module that is designed specific to iPAD.
How should i invoke these iPAD screens?
Thanks
Sudha
You can't have half an iPhone app and half an iPad app, even if you could that would be terrible for the users and you shouldn't! storyboards enable you to have 2 files, one for iPhone and one for iPad and you can simply load whichever is applicable.
Xcode even handles this for you by allowing you to specify which is which in the project settings.
There is no way to switch between the 1x/2x as you have mentioned. The app is either set to run in this mode on iPad (because its an iPhone app), or its not because its universal and supports both, or is iPad only

Resources