5 Ways iOS is better and worse than Flash
-
Upload
arpit-mathur -
Category
Technology
-
view
2.347 -
download
0
description
Transcript of 5 Ways iOS is better and worse than Flash
![Page 1: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/1.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/2.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/3.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/4.jpg)
iOS Application Architecture
Views(UIViews)
XIBs
View Controllers(UIViewControlle
r)
Application(UIApplicationDelegate
)
Models
![Page 5: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/5.jpg)
Quick Example
![Page 6: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/6.jpg)
The Good
![Page 7: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/7.jpg)
#1: Enforced MVC
![Page 8: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/8.jpg)
UIView
![Page 9: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/9.jpg)
UIViewController
![Page 10: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/10.jpg)
#2: NSNotificationCenter
![Page 11: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/11.jpg)
#2: NSNotificationCenter
![Page 12: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/12.jpg)
BEWARE OVERUSE !!!
![Page 13: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/13.jpg)
#3 User Interface Experience Framework
![Page 14: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/14.jpg)
#3 User Interface Experience Framework
![Page 15: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/15.jpg)
“Make Designing the right way the path of
least resistance.”
![Page 16: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/16.jpg)
#4 Animation Blocks and Core Animation
![Page 17: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/17.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/18.jpg)
#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](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/19.jpg)
The Bad
![Page 20: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/20.jpg)
#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](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/21.jpg)
#2: No guaranteed constructor
Init
InitWithNibName
InitWithFrame
InitWithRect
InitWithCoder
![Page 22: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/22.jpg)
#3: Memory Management
![Page 23: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/23.jpg)
Object
Copy Retain
Assign
![Page 24: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/24.jpg)
#4: Touch Event Propagation
![Page 25: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/25.jpg)
#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](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/26.jpg)
Linkshttp://goo.gl/ZBsYC
![Page 27: 5 Ways iOS is better and worse than Flash](https://reader035.fdocuments.in/reader035/viewer/2022062701/55388cca550346722e8b4842/html5/thumbnails/27.jpg)
Thanks
Twitter: @arpit
Blog: http://arpitonline.com/blog/