5 ways ios is better and worse than flash

27
5 Ways iOS is better and worse than Flash Arpit Mathur Philadelphia Flex User Group

Upload: arpit-mathur

Post on 22-Apr-2015

2.347 views

Category:

Technology


0 download

DESCRIPTION

Comparing iOS and Flash development.

TRANSCRIPT

Page 1: 5 Ways iOS is better and worse than Flash

5 Ways iOS is better and worse than Flash

Arpit MathurPhiladelphia Flex User Group

Page 2: 5 Ways iOS is better and worse than Flash

Some introductions…Software Engineer at Comcast Innovation Labs

Flash/Flex developer for 5 years

Experience with very different UI technologies including Java Swing/AWT, SWT, JavaScript/DHTML, etc

Developer on the XfinityTV Application

Page 3: 5 Ways iOS is better and worse than Flash

Setting the stage

Xcode ~ Flex Builder

Interface Builder ~ Flash IDE

Objective C ~ ActionScript

Core Graphics ~ flash.graphics.*

Core Animation ~ TweenLite / fl.transitions.*

XIBs ~ Flash Symbols

UIKit ~ Flex / Fl Component Framework

Page 4: 5 Ways iOS is better and worse than Flash

iOS Application Architecture

Views(UIViews)

XIBs

View Controllers(UIViewControlle

r)

Application(UIApplicationDelegate

)

Models

Page 5: 5 Ways iOS is better and worse than Flash

Quick Example

Page 6: 5 Ways iOS is better and worse than Flash

The Good

Page 7: 5 Ways iOS is better and worse than Flash

#1: Enforced MVC

Page 8: 5 Ways iOS is better and worse than Flash

UIView

Page 9: 5 Ways iOS is better and worse than Flash

UIViewController

Page 10: 5 Ways iOS is better and worse than Flash

#2: NSNotificationCenter

Page 11: 5 Ways iOS is better and worse than Flash

#2: NSNotificationCenter

Page 12: 5 Ways iOS is better and worse than Flash

BEWARE OVERUSE !!!

Page 13: 5 Ways iOS is better and worse than Flash

#3 User Interface Experience Framework

Page 14: 5 Ways iOS is better and worse than Flash

#3 User Interface Experience Framework

Page 15: 5 Ways iOS is better and worse than Flash

“Make Designing the right way the path of

least resistance.”

Page 16: 5 Ways iOS is better and worse than Flash

#4 Animation Blocks and Core Animation

Page 17: 5 Ways iOS is better and worse than Flash

Core Animation

Layer Backed (cache’s the last appearance of the view)

Potentially thousands of layers

Filters, Transitions

OpenGL backed

Don’t clip to bounds by default!

While animating, it’s the cached image that’s moving around. So unlike Flash, you cant interact with it.

Page 18: 5 Ways iOS is better and worse than Flash

#5 Objective C Gravy

Class + Interface Declarations

Enums

Messaging null objects (mixed feelings)

Key Value Observing (a-la AS2 watch)

Page 19: 5 Ways iOS is better and worse than Flash

The Bad

Page 20: 5 Ways iOS is better and worse than Flash

#1: Device Provisioning

http://www.bunnyhero.org/2011/02/21/an-ios-dev-comic/

Page 21: 5 Ways iOS is better and worse than Flash

#2: No guaranteed constructor

Init

InitWithNibName

InitWithFrame

InitWithRect

InitWithCoder

Page 22: 5 Ways iOS is better and worse than Flash

#3: Memory Management

Page 23: 5 Ways iOS is better and worse than Flash

Object

Copy Retain

Assign

Page 24: 5 Ways iOS is better and worse than Flash

#4: Touch Event Propagation

Page 25: 5 Ways iOS is better and worse than Flash

#5: Tooling

Device testing against multiple OS versions

Interface Builder craziness

Window management

.proj file conflicts

Folders in Xcode

Download size

Page 26: 5 Ways iOS is better and worse than Flash

Linkshttp://goo.gl/ZBsYC