Porting iPhone Application To Universal Application

Reading Time: 4  min

Apple has launched iPad device and developers are busy with exploring and observing iPhone SDK 3.2 from a 360 degree perspective. iPad comes with unique, awesome features and challenges for developing common application development for iPhone and iPad devices. Apple introduced “Universal Application” concept with iPad launch. Universal Application refers to common binary (application) development for iPhone devices and iPad.

At present, a large number of applications are available on AppStore which can be successfully launched on iPad. But it will run in compatibility mode so failing to utilize native support and unique features of iPad like Split view and Popovers. So it becomes very important to make available an application on iPad to utilize iPad features.

Here I would like to discuss few points for Porting an existing application To Universal Application to make that process simple and straight-forward.

è Re-design User Interface:

This is more related to application layout and graphics like orientation, images etc.

  • Layout the app in such a way so it can provide more content/information to utilize real estate on iPad.
  • Try to reduce screen transitions
  • Design views considering all available orientations
  • Possibly, layout to flatten hierarchy of screens
  • Take care of multi-touch facility
  • Utilizes device specific UI controls effectively like SplitterView in iPad and TabBar/Navigation controller in iPhone
  • Device specific hardware features

è Implement Conditional-Coding Technique:

This is more related to runtime check for availability of specific class, method and device specific function.

  • Check for device specific class e.g. UIDocumentInteractionController
  • Check for device specific Methods and Functions e.g. NSRegularExpressionSearch
  • Check for device specific new APIs in existing frameworks e.g. PDF APIs in UIGraphics Framework

Let me share few examples to get better understanding of run-time code check:

Runtime Check Example-1:

Following code-snippet performs runtime check, if specific class is available for the underlying device or not.

Class documentVCClass = NSClassFromString(@"UIDocumentInteractionController ");

if (documentVCClass)

{

UIDocumentInteractionController * myDocumentController = [[documentVCClass alloc] init];

// Configure the document interaction view controller.

}

Runtime Check Example-2:

Following code-snippet performs run-time check, if specific method is available for the underlying device or not.

if (UIGraphicsBeginPDFPage != NULL){
       UIGraphicsBeginPDFPage();
}

Reference: Creating Universal Applications @ http://developer.apple.com/ipad/sdk/index.html

Stay Updated
Please enable JavaScript in your browser to complete this form.
LinkedIn
Share
Copy link
URL has been copied successfully!

Other stories you may enjoy...

One Year In: Technology Success Stories from the Pandemic

This time last year, US companies were forced to face a new and unsettling reality: business as usual was no longer an option. I wrote then about how businesses could shift their...

Healthcare Apps and the Need for Security

One of the most exciting areas in tech right now promises to be “the most personal” ever. A key aspect of making wearable devices like the Apple Watch personal is through...

Developing an App for the 2020 General Election?

Here is a thought: With the UK General Election having just finished, could the next one in 2020 be the first to use a mobile app to allow people to vote? The polling...