Slide 1

Slide 1 text

Universal iPhone/iPad Apps

Slide 2

Slide 2 text

Me

Slide 3

Slide 3 text

Sam Soffes @samsoffes

Slide 4

Slide 4 text

I write software (and music)

Slide 5

Slide 5 text

What I made

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

5.6MM+ unique users

Slide 8

Slide 8 text

So, universal apps

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Let’s get along

Slide 12

Slide 12 text

But...

Slide 13

Slide 13 text

Dang you Apple

Slide 14

Slide 14 text

3.2 3.1.3

Slide 15

Slide 15 text

So what does this mean?

Slide 16

Slide 16 text

Lots of annoying extra stuff

Slide 17

Slide 17 text

Have no fear, it’s not hard just annoying

Slide 18

Slide 18 text

The future is bright and far away

Slide 19

Slide 19 text

Let’s get started

Slide 20

Slide 20 text

The project

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Conditional classes

Slide 25

Slide 25 text

UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:someViewController]; [popover presentPopoverFromRect:[sender frame] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; 1 2 3

Slide 26

Slide 26 text

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

Slide 27

Slide 27 text

User interface idiom

Slide 28

Slide 28 text

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // Do iPad stuff } else { // Do iPhone stuff } 1 2 3 4 5

Slide 29

Slide 29 text

Responds to selector

Slide 30

Slide 30 text

if ([self respondsToSelector:@selector(setContentSizeForViewInPopover:)]) { self.contentSizeForViewInPopover = CGSizeMake(320.0, 300.0); } 1 2 3

Slide 31

Slide 31 text

Demo

Slide 32

Slide 32 text

More work Don’t worry, it’s way easy

Slide 33

Slide 33 text

Images and such

Slide 34

Slide 34 text

Default.png Icon.png

Slide 35

Slide 35 text

Read the iPad Programming Guide

Slide 36

Slide 36 text

Questions?

Slide 37

Slide 37 text

Thanks! Get my slides and code at http:/ /samsoff.es/mobilex

Slide 38

Slide 38 text

No content