one app for all coding for different ios variants mike oliver ios team lead [email protected]

16
One App for All Coding for different iOS variants Mike Oliver iOS Team Lead [email protected]

Post on 15-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

One App for AllCoding for different iOS variants

Mike OliveriOS Team [email protected]

Page 2: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

One App For All

Most iOS apps start with limited range• One iOS version (likely most recent)

• Optimized for low resolution devices

• No genuine iPad support (compatibility mode doesn’t count)

• Assumption of standard iPhone hardware (camera, accelerometer, etc.)

Page 3: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

Options to consider…

DevicesHardware

Version

Video

High ResolutionLow Resolution Accelerometer

GPS

Multitasking

Camera

HDMI Out

iPhone 4

iPad 2iPadiPod Touch

iPhone 3GS

4.3

3.2

4.24.0

3.1

4.1

Page 4: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

More to come

• NFC (Near Field Technology)

• High Resolution iPad

• iPhone 5

• Fingerprint scanning

• Mobile Payments

• Voice Integration

• …?

Page 5: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

The F-word…

RELAXThis isn’t Android….

Page 6: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

One App For All

iOS variances can be accounted for with minimal code

Page 7: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

One App For All

Demo 3 major topics today:1. Handling both high and low resolution devices

2. Coding for potentially unavailable API’s

3. Adding iPad specific code for Universal Apps.

Page 8: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

One App For All

Facebook Photos app:1. Log in using Facebook Connect

2. Show user’s photos at best resolution possible

3. Allow printing of photos using Airprint

4. Give best layout for iPhone and iPad

Page 9: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

One App For All: Best Practices

iMug

Page 10: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

One App For All: Best Practices

Don’t rely on exact screen dimensions

Courtesy of WWDC 2010 Session 130

Page 11: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

Don’t rely on device modelBad Code: Better Code:

One App For All: Best Practices

Courtesy of WWDC 2010 Session 130

Page 12: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

One App For All: Best Practices

UIRequiredDeviceCapabilities limits distribution based on hardware:

• Camera (front, video, etc.)

• Communication (sms, wifi, etc.)

• Motion (accelerometer, gyroscope)

Full list can be found at… UIRequiredDeviceCapabilities Documentation

Page 13: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

Best Practices

Always default your code to basics (low res

iPhone idiom)

Page 14: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information. Page 14

Pyxis Mobile

Pyxis Mobile is the only mobile application development platform designed to meet today’s constantly changing needs.

Page 15: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information. Page 15

Pyxis Mobile

A Platform for Building Mobile Applications

• Multi-Device Support - Easily develop rich, native Apps once and deploy on all smartphone and tablet devices. Support Local-Device Feature Superset, not Least Common Denominator

• Back-End System Integration - Seamlessly integrate with multiple back-end systems and standards – internal and public – for read and write access.

• Enterprise-Grade Features – User Authentication, Security, Usage and Performance Monitoring Tools, Language Support and Offline Access and Synchronization

• Support Agile Deployment - Quickly create, modify, update and expand Apps, and deploy those changes immediately.

Page 16: One App for All Coding for different iOS variants Mike Oliver iOS Team Lead moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

Resources

• Pyxis Mobile (http://www.pyxismobile.com)

• WWDC 2010 Session 130 – Future Proofing your application (can be downloaded through iTunes by registered developers)

• UIRequiredDeviceCapabilities documentation

• Supporting High-Resolution Screens

• Custom Icon and Image Creation Guidelines