How do I set my app for both iphone and ipad using xcode 8.1?
When I go to Targets -> General -> Deployment Info -> Devices and select Universal, I again get a tab below as iphone and ipad. Does that mean a single build will not generate an app that is compatible for both ipad and iphone?
If I select the deployment device as only iphone, then the app when loaded on the ipad is not full screen and has a black border.
How can I build an app that is full screen on both ipad and iphone ?
In order to make an application work in both iPhone & iPad then need to follow below steps.
*Before create an project please select universal in device section.
*
In application: didFinishLaunchingWithOptions: put a condition to check the device.
If the device is iPad then load the iPad screen and if the device is iPhone then load the iPhone screen.
Make sure follow the MVC pattern, So that it is easy to populate the data in both the screens.
In application: didFinishLaunchingWithOptions: put a condition to check the device.
If the device is iPad then load the iPad screen and if the device is iPhone then load the iPhone screen.
Make sure follow the MVC pattern, So that it is easy to populate the data in both the screens.
Related
My app is and iPhone based App, and it can run on iPad device, though UI is designed for 640x960 device.
When I search the app in iPad, it will show no this app by default. There're two tab in the app store. One is iPad app, the other one is iPhone app. How could I make my app show on these two tabl?
Because changing app into universal take effort. Is any other methods ?
I noticed other app uses the same UI like me, but it can show on iPad tab.
No there is no easier way than changing it to universal, your app needs to be built for iPad to be displayed in the iPad app section.
I'm building an iPhone app, and it works fine when I test it in the simulator. I don't have an iPhone for testing, but my app is configured to be iPhone only, so I'm trying to run it in the iPad. When I run it either in the iPad simulator or the iPad itself all I get is a blank screen, any idea what could be happening?
My app use to be a Universal app, but I switched it to iPhone only to test on the iPad since I don't have an iPhone to test.
Check your build settings.
Change "Targeted Device Family" from "iPhone/iPad" to "iPhone" and you will see it in your small iPhone "simulator" on your iPad.
Check my screenshot:
I have created a Universal (iPhone/ipad) application .I have created separate Xib designs for iPhone and iPad both works well. When i build the app it should give a single .APP(build).I installed in iPhone and iPad tested correctly.
Now i want to give a two separate builds (for user to test), one for iPhone and another one for iPad.So in project settings i changed a target device family (iPhone/ipad -> into iPhone) and (iPhone/ipad -> into iPad). So it gives two separate builds.One for iPhone and another one for iPad.
My problem is when i build with iPhone(as target device family) and installed in iPad means it loads a iPad design not an iPhone design.What could be the mistake i did here ? I search a lot and could not find any solution.
If any one did like this? or do it for me?(testing)
Thanks in advance.....
It's because (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) if you run iPhone-designed app on iPad. And thats why iPad version of xib file is selected. So you need to attach correct .xib file manually, or exclude iPad version of it from iPhone resources.
The tester can install the same build in both iPhone and iPad. The concept of universal build is that, the same app will work on both iPad and iPhone.
how do you make the Iphone app run as 2X on Ipad automatically?
Building the app as both Iphone and Ipad would require you to build the Ipad from scratch right?
I prefer the 2x mode on IPad, but the build says its only geared toward Iphone. I like the user to use this app for both Iphone and Ipad, and 2x inside IPAD.
Any app built for the iPhone will run on iPad either at default size or zoomed in to 2X size, but you can't control what the user selects.
It is possible to create a universal application where you design an interface for both the iPhone and the iPad within the same app. The alternative is creating an entirely separate app for the iPad.
Whether to run an iPhone app in 1x or 2x mode on an iPad is entirely up to the user. It's not something you can control. If you want it to be fullscreen always on an iPad, you'll need to make your app handle iPads.
I already have an application which i have built for iphone only. I need to change it to work in both iphone and ipad.the upgrade to ipad application option in project tab of xcode is faded.. which I means I cant do that... I tried to run the project in ipad simulator but it gets automatically run in iphone simulator.
What are the proper steps to change my project to work in iphone and ipad.
Initially change the build setting,ie change the Targeted Device Family field to iPhone/iPad. To write logic for iPad use "UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad" this condition.