How can i make my iPhone application universal (iPhone - iPad) application? - iphone

I have my iPhone appliction, using same application i want to make it universal (iPhone / iPad). Is there any way to get success for the above mentioned task?
I want to do only using the previous MainWindow.XIB file & Custom ccode if neccessary.
I am totally unknown to this concept, this is totally new to me.
If possible then please suggest me the code / link to make the universal application.

When building new project in Xcode 4.1 and above you can chose if you want iPhone application, iPad application or iPhone/iPad application.
Cheers.

Related

Creating Universal application from existing iPhone application

I'm developing iPhone application which was created on Xcode 4.6. Now I'm running same application in Xcode 5.0 which works fine for me on iOS 7 also. Now I have to create an Universal application from existing application. I have google for it and found 2-3 solutions which talks about creating new xibs for iPad and change target to universal application. I want to know what is the easiest way to achieve this. My application was created on Xcode 4.6 with xibs for iPhone.
If you are building a universal app that supported for both iPhone and iPad then the best approach is to use Size classes. You can also customize your layout for a specific device (iPhone/iPad) by using size classes.
You can not do create new xibs for ipad and use exists xib, but then you need to hope what autoresizing work good. Anyway most often ipad have different design. So, if you want different design you need make him (using new xibs or new code).

How to make iPhone app searchable when search from an iPad

I created an iPhone app and published to the iTunes. Now my client complainig when he search it from the iPad it doesn't display under iPad apps. He asked me to make it search under iPad also. Then how I can do this plz help me.
Thanks
You can find it if you tap the iPhone tab on your iPad. If you want it to show up under iPad apps, it has to be an iPad app (or a Universal app, meaning it is designed for both iPhone and iPad). If you are looking to optimize your app for iPad and make it a Universal app, here are some resources to get you started:
Apple's Advanced App Tricks Guide
Creating a Universal iOS App Tutorial
Creating a Universal iOS Application
If you go to Xcode and start a new project, and click "Universal", Apple will have most of the work done for you. You will also find that it is a lot more straightforward than it sounds; basically you use the same code with different nib files. If you need more advanced control, you can always detect which device you are running on to do stuff programatically.

Iphone/Ipad app developement

Hi I have wrote an application which is suitable for iphone (haven't uploaded to appstore yet)
I want this app to be supported on iPad as well.
Do I need to open a new project and create a separate app for iPad or is there a way to create a single app for both ?
Thanks
Nice tutorial to start porting of app from iphone to ipad.
http://www.raywenderlich.com/1111/how-to-port-an-iphone-application-to-the-ipad
no need to create a new project, if u like to release for iPad also you need to resize for the all the classes, whichever view suits for the iPad, and also check it in your ipad,then deploy target should be both for iPad and iphone

How to refactor an iPhone App to run natively on the iPad

I have an iPhone application and I want to run it on the iPad in normal mode (not in the mini small emulation mode)
How do I compile my program to show up in full screen mode?
Any easy tutorial?
You want to refactor you current iPhone only app in to a Universal app.
iPhone SDK 3.2 [and later] supports the
development of Universal applications.
A Universal app is optimized to run on
all iPhone OS devices—itʼs essentially
an iPhone app and an iPad app built as
a single binary.
More details can be found in the Introducing Universal Applications for iPhone OS documentation.
In order to achieve your design goals
for a Universal application, you will
need to use conditional coding to
determine the availability of features
when your app is running. Conditional
coding allows you to make sure youʼre
loading the right resources, using
functionality thatʼs supported by the
device and properly leveraging
hardware thatʼs available.
In Xcode 4 you can set the device type, be sure to create iPad specific UI for you app.
Once you select Universal xcode will try and help you out by creating some interface-bilder files.
The iPhone views are created with the size 480×320px in case of pre-iphone 4, and the iphone 4 has 960x480px. The iPad has 1024x768, so you need to change the views for that size. There's no automatic way of doing it. In Xcode 4 you have some sort of "change this view to ipad", but the position of the elements in the view, but you will have to do some tunning on the final views, because the ipad UI of an App should give a different UX than the iPhone.

Adding an iPhone app binary to my current ipad app

I gave an app in the app store got ipad. I also made a app for the iPhone now.
What you guys suggest should I create a new app for the iPhone or is there way to add my iPhone binary to my current ipad app?
Thanks for your help.
There is no way to include the iPad and iPhone binary together. If you want to put them together, you'll need to create a universal application. You will have checks at run time that will determine whether or not your app is running on an iPad or iPhone, this will determine which set of ViewControllers your app will display.
There is a lot of information out there on creating universal apps.