Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Universal iPhone/iPad Apps

Universal iPhone/iPad Apps

In this talk, I covered how to create a universal iPad/iPhone applications. Most of the extra work in creating a universal application is due to the iPad and iPhone running different versions of iPhone OS. I covered how to gracefully support both versions of iPhone OS using various techniques as described in the iPad Programming Guide.

I showed an example application that shows a view controller as a modal on the iPhone or a popover on the iPad. You can download the example project's code from my GitHub.

Sam Soffes

April 16, 2010
Tweet

More Decks by Sam Soffes

Other Decks in Programming

Transcript

  1. Me

  2. Class popoverClass = NSClassFromString(@"UIPopoverController"); if (popoverClass) { UIPopoverController *popover =

    [[popoverClass alloc] initWithContentViewController:someViewController]; [popover presentPopoverFromRect:[sender frame] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; } 1 2 3 4 5