SlideShare a Scribd company logo
iPhone App Dev
Overview for Vietnamese coders




                    Huy @ multinc.com


                                        1
Warning !

This presentation may contain information on
unethical activities, possibly illegal in certain
                 jurisdictions.

       Listen & act at your own risk.



                                                    2
Note about Demos
This presentation makes significant use of live
 demos, which are not included in the slides.




                                                 3
Why this talk?


Global opportunity

Few coders in Vietnam

iPhone leads the mobile future

The entire process is quite complex




                                      4
Outline


Part 1 - getting ready

Part 2 - designing

Part 3 - coding

Part 4 - releasing




                            5
Get ready
   Part 1




            6
Which dev device?
                    iPhone   iPhone   iPhone iPod
                      3GS      3G       2G   Touch
   App Store,
  multitouch,        Yes      Yes      Yes    Yes
 accelerometer
 cellular data,
                     Yes      Yes      Yes
    camera
 GPS, 3G data        Yes      Yes
video, autofocus,
 compass, more       Yes
 speed & RAM
                                                     7
Getting a dev device
Choices:

1. iPhone 3GS ($589 new in US)

2.iPhone 3G/2G (3G $300 on US craigslist)

3.iPod Touch (about $160 on US craigslist)

4.iPhone Simulator (free)

Alternative: test at MultiNC in Q.1 (free++)


                                               8
Apple restrictions
Phone: any carrier Unlocked iPhone or iTouch

  Any web apps          iPhone or iTouch


 App Store apps         iPhone or iTouch


    Any apps       Jailbroken iPhone or iTouch



                                                 9
Shhh...
jailbreaking device
PRO: required for software unlock

PRO: install any app

PRO: dev tools

PRO: access to private APIs

CON: have to wait for updates
http://iphone-dev.org


                                    10
SDK requirements

Choice of computer:

1. Mac
   CON: expensive

2.PC with “Hackintosh”, “OSX86”
  CON: time-consuming, maybe not possible,
  not legal

Alternative: open-source toolchain


                                             11
Mac

Macbook 2.4GHz is fine - $800 on US
craigslist

Mac Mini 2GHz should be fine - $500? on US
craigslist

4GB of RAM is cheap

Speed bottleneck is not building -- it’s
transferring to device


                                            12
Hackintossshhh...
New PC

  Choose carefully
  http://osx86.org

Existing PC

  Desktop - may need to buy video card

  Notebook - may need to buy Wi-Fi, maybe
  not possible

  AMD - forget it

                                            13
Learning to code

Lots of books

Apple’s extensive documentation

Stanford CS193p course
-> Google [stanford iphone]

Upcoming MultiUni courses
http://multiuni.org


                                  14
iPhone Dev Program
Why?

  To test on non-jailbroken devices

  To release to App Store

How much? $99 per year

Workarounds?

  Test/deploy on jailbroken devices

  Share certs with other coders

                                      15
DEMO: iPhone Dev Program




                           16
Design
 Part 2




          17
Why design?



To sell more

To avoid rejection from the App Store




                                        18
Design Resources

Guides

  Apple’s Human Interface Guidelines (HIG)

Stencils
  http://theresaneil.wordpress.com/2009/09/16/iphone3g-
  design-resources/




                                                          19
Design Worflow
Common:

TapTapTap’s process:




  Iterate UI design with a graphic designer
  http://www.taptaptap.com/blog/the-design-session/

     If remote, use Skitch

                                                      20
Design Process


Iterate:

  DEMO: Convert design evolution
  http://www.taptaptap.com/blog/convert-design-
  evolution/




                                                  21
Type of app

Web app

  PRO: no approval needed

  CON: requires net, slower response, no
  games

Native app

  App Store vs. jailbroken

  more later during Release part...
                                           22
Code
Part 3




         23
Web App

Toolkits

  DEMO: jQTouch

  iui

The rest of this talk is about native apps




                                             24
Languages & Tools
Objective-C -> XCode

Alternatives:

  Javascript/HTML -> Appcelerator Titanium,
  PhoneGap, Ansca Corona (good for games)

     careful, Apple hates Phonegap

  Ruby -> Rhodes Rhomobile

  .NET -> MonoTouch

  others...
                                              25
Objective-C

Superset of C, can be mixed with C, C++

Distinctions

  Message-passing for method calls

  Alloc/release/autorealease

  Categories



                                          26
Set up Xcode
DEMO

 Files, targets, configurations

 Layered settings: project vs. target

 GCC

   Set up warnings

 Subversion (but consider Git)


                                        27
Interface Builder


Not required, can be done programatically

But rapid prototyping of views

DEMO




                                            28
Code structure
  DEMO of simple app




                       29
iPhone Simulator
iPhone Simulator

  Missing: location, many preferences,
  multi-touch (has pinch)

iSimulate

  Multi-touch

  Accelerometer

  Location/GPS


                                         30
Coding style



Apple’s coding guidelines for Cocoa

Google’s Objective-C Style Guide




                                      31
Debugging
NSLog

UIAlertView

  NOTE: popups are stacked

Debugger

  DEMO

NSZombieEnabled


                             32
Running static analyzer


 Choices:

   Download LLVM/CLang Static Analyzer

   Bundled in Xcode 3.2 (OS X 10.6)

 DEMO




                                         33
Running Xcode Leaks
        DEMO




                      34
Deploying for testing

Distribution choices:

a) collect devices’ UDIDs & distribute Ad Hoc

b)share your certificates

c) jailbroken phones don’t require signing

IMPORTANT: keep copy of .dSYM files



                                                35
Beta testing
Collect console logs using iPhone
Configuration Utility

Collect console logs and user data using
Flurry or others

Collect crash logs from users

  Users need to sync and find files on Mac

  Analyze using symbolicate and .dSYM files


                                             36
Release
  Part 4




           37
Release to App Store


PRO: Easier access, greater exposure

PRO: Apple handles billing, gives you 70%

CON: infamous App Store approval process
(weeks or months, possibly never)




                                            38
Release to Cydia Store
 (jailbroken devices)

 PRO: No approval needed

 PRO: Unique markets, especially Vietnam

 PRO: Access to more functionality

 CON: Smaller market, exposure




                                           39
App Store rejection
      examples

Bugs

Private APIs

Downloaded code

Non-working test account




                           40
App Store rejection
      examples

Bad design (e.g. deselected tableview); re-
using system icons; connectivity handling;
feature-limited

Excess vibration, bandwidth

Uploading user data without warning

  But exceptions: “Don’t ask, don’t tell”


                                              41
App Store rejection
      examples
Objectional content, e.g. Me So Holy, Baby
Shaker, StarTime, Eucalyptus, Ninjawords,
NIN

Competing with Apple & carriers, e.g. Google
Voice & Skype

Trademark, e.g. iPhone icon & name, Polaroid

Icons that match, icons that don’t match

Bad descriptions (“dragons”, competitor

                                               42
Marketing
App Store ranking

Online reviews, Public Relations

Video demos, using iSimulate

Word-of-mouth

Excellence -> Apple featured, marketing

Free “lite” version

Pricing strategy

Appirater?
                                          43
TapTapTap’s advertising
    of “Where To”




                          44
What kind of apps?
Utility, productivity

Business?

  Careful because officially not allowed

Casual games, e.g. Pee monkey

Arcade games, e.g. Meteor Blitz

  DEMO: Meteor Blitz video demo


                                          45
Retire rich
   Part 5




              46
What now?


Get a Mac/Hackintosh

Download the SDK

Learn from Stanford course, MultiUni




                                       47
Free 6-day course:
 Intro to iPhone &
    Objective-C
Go to http://multiuni.org/ for details




                                         48

More Related Content

Viewers also liked (6)

PPT
iPhone & Android App Dev - BarCamp Saigon 1
huyzing
 
PPT
Improving IT Education In Vietnam
huyzing
 
PPT
echo-o & Android App Dev - BarCamp Saigon 1
huyzing
 
PPT
Jimmmy
guest886bd
 
PPT
Rakuraku Contact Network Award Presentation
yukisnowing
 
PPT
echo-o & Adobe Air App Dev - BarCamp Saigon 1
huyzing
 
iPhone & Android App Dev - BarCamp Saigon 1
huyzing
 
Improving IT Education In Vietnam
huyzing
 
echo-o & Android App Dev - BarCamp Saigon 1
huyzing
 
Jimmmy
guest886bd
 
Rakuraku Contact Network Award Presentation
yukisnowing
 
echo-o & Adobe Air App Dev - BarCamp Saigon 1
huyzing
 

Similar to iPhone App Dev Overview - Mobile Dev Camp Vietnam 1 (20)

KEY
Introduction to iPhone App Development - midVentures DESIGN+DEVELOP
KeyLimeTie
 
PDF
Developing Applications on iOS
Francisco Ramos
 
PPTX
How to be an Independent Mobile Dev by TJ Grant
TJ Grant
 
PDF
Preparing for Release to the App Store
Geoffrey Goetz
 
PDF
MSR iOS Tranining
Prabin Datta
 
KEY
Life cycle of iPhone application
Siva Prasad K V
 
PDF
iOS App Development and Marketing
Changwon National University
 
PDF
Apps vs. Sites vs. Content - a vendor-agnostic view on building stuff for the...
Kai Koenig
 
PDF
YOW Mobile Night 2011 - The realestate.com.au mobile story
Kevin O'Neill
 
KEY
Life Cycle of an iPhone App
John McKerrell
 
PPTX
Lecture1
redwan1795
 
PDF
Citibank
thepragmaticlab
 
PPTX
iOS platform
maya_slides
 
PPTX
Mobile apps idea to making money
David Bozward
 
PDF
iPhone OS Platform
Jussi Pohjolainen
 
PDF
Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...
Bala Subra
 
PDF
bol.com Partner event 2013 - Presentatie Pieter Siekerman
bolcompp
 
PDF
iPhone App Development Overview
Brian Knittel
 
PPTX
Ios
abiramimaya
 
PDF
Cost of iPhone Apps - InfoBeans iPhone app development practice
InfoBeans Technologies Ltd.
 
Introduction to iPhone App Development - midVentures DESIGN+DEVELOP
KeyLimeTie
 
Developing Applications on iOS
Francisco Ramos
 
How to be an Independent Mobile Dev by TJ Grant
TJ Grant
 
Preparing for Release to the App Store
Geoffrey Goetz
 
MSR iOS Tranining
Prabin Datta
 
Life cycle of iPhone application
Siva Prasad K V
 
iOS App Development and Marketing
Changwon National University
 
Apps vs. Sites vs. Content - a vendor-agnostic view on building stuff for the...
Kai Koenig
 
YOW Mobile Night 2011 - The realestate.com.au mobile story
Kevin O'Neill
 
Life Cycle of an iPhone App
John McKerrell
 
Lecture1
redwan1795
 
Citibank
thepragmaticlab
 
iOS platform
maya_slides
 
Mobile apps idea to making money
David Bozward
 
iPhone OS Platform
Jussi Pohjolainen
 
Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...
Bala Subra
 
bol.com Partner event 2013 - Presentatie Pieter Siekerman
bolcompp
 
iPhone App Development Overview
Brian Knittel
 
Cost of iPhone Apps - InfoBeans iPhone app development practice
InfoBeans Technologies Ltd.
 
Ad

Recently uploaded (20)

PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Python basic programing language for automation
DanialHabibi2
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Ad

iPhone App Dev Overview - Mobile Dev Camp Vietnam 1

  • 1. iPhone App Dev Overview for Vietnamese coders Huy @ multinc.com 1
  • 2. Warning ! This presentation may contain information on unethical activities, possibly illegal in certain jurisdictions. Listen & act at your own risk. 2
  • 3. Note about Demos This presentation makes significant use of live demos, which are not included in the slides. 3
  • 4. Why this talk? Global opportunity Few coders in Vietnam iPhone leads the mobile future The entire process is quite complex 4
  • 5. Outline Part 1 - getting ready Part 2 - designing Part 3 - coding Part 4 - releasing 5
  • 6. Get ready Part 1 6
  • 7. Which dev device? iPhone iPhone iPhone iPod 3GS 3G 2G Touch App Store, multitouch, Yes Yes Yes Yes accelerometer cellular data, Yes Yes Yes camera GPS, 3G data Yes Yes video, autofocus, compass, more Yes speed & RAM 7
  • 8. Getting a dev device Choices: 1. iPhone 3GS ($589 new in US) 2.iPhone 3G/2G (3G $300 on US craigslist) 3.iPod Touch (about $160 on US craigslist) 4.iPhone Simulator (free) Alternative: test at MultiNC in Q.1 (free++) 8
  • 9. Apple restrictions Phone: any carrier Unlocked iPhone or iTouch Any web apps iPhone or iTouch App Store apps iPhone or iTouch Any apps Jailbroken iPhone or iTouch 9
  • 10. Shhh... jailbreaking device PRO: required for software unlock PRO: install any app PRO: dev tools PRO: access to private APIs CON: have to wait for updates http://iphone-dev.org 10
  • 11. SDK requirements Choice of computer: 1. Mac CON: expensive 2.PC with “Hackintosh”, “OSX86” CON: time-consuming, maybe not possible, not legal Alternative: open-source toolchain 11
  • 12. Mac Macbook 2.4GHz is fine - $800 on US craigslist Mac Mini 2GHz should be fine - $500? on US craigslist 4GB of RAM is cheap Speed bottleneck is not building -- it’s transferring to device 12
  • 13. Hackintossshhh... New PC Choose carefully http://osx86.org Existing PC Desktop - may need to buy video card Notebook - may need to buy Wi-Fi, maybe not possible AMD - forget it 13
  • 14. Learning to code Lots of books Apple’s extensive documentation Stanford CS193p course -> Google [stanford iphone] Upcoming MultiUni courses http://multiuni.org 14
  • 15. iPhone Dev Program Why? To test on non-jailbroken devices To release to App Store How much? $99 per year Workarounds? Test/deploy on jailbroken devices Share certs with other coders 15
  • 16. DEMO: iPhone Dev Program 16
  • 18. Why design? To sell more To avoid rejection from the App Store 18
  • 19. Design Resources Guides Apple’s Human Interface Guidelines (HIG) Stencils http://theresaneil.wordpress.com/2009/09/16/iphone3g- design-resources/ 19
  • 20. Design Worflow Common: TapTapTap’s process: Iterate UI design with a graphic designer http://www.taptaptap.com/blog/the-design-session/ If remote, use Skitch 20
  • 21. Design Process Iterate: DEMO: Convert design evolution http://www.taptaptap.com/blog/convert-design- evolution/ 21
  • 22. Type of app Web app PRO: no approval needed CON: requires net, slower response, no games Native app App Store vs. jailbroken more later during Release part... 22
  • 24. Web App Toolkits DEMO: jQTouch iui The rest of this talk is about native apps 24
  • 25. Languages & Tools Objective-C -> XCode Alternatives: Javascript/HTML -> Appcelerator Titanium, PhoneGap, Ansca Corona (good for games) careful, Apple hates Phonegap Ruby -> Rhodes Rhomobile .NET -> MonoTouch others... 25
  • 26. Objective-C Superset of C, can be mixed with C, C++ Distinctions Message-passing for method calls Alloc/release/autorealease Categories 26
  • 27. Set up Xcode DEMO Files, targets, configurations Layered settings: project vs. target GCC Set up warnings Subversion (but consider Git) 27
  • 28. Interface Builder Not required, can be done programatically But rapid prototyping of views DEMO 28
  • 29. Code structure DEMO of simple app 29
  • 30. iPhone Simulator iPhone Simulator Missing: location, many preferences, multi-touch (has pinch) iSimulate Multi-touch Accelerometer Location/GPS 30
  • 31. Coding style Apple’s coding guidelines for Cocoa Google’s Objective-C Style Guide 31
  • 32. Debugging NSLog UIAlertView NOTE: popups are stacked Debugger DEMO NSZombieEnabled 32
  • 33. Running static analyzer Choices: Download LLVM/CLang Static Analyzer Bundled in Xcode 3.2 (OS X 10.6) DEMO 33
  • 35. Deploying for testing Distribution choices: a) collect devices’ UDIDs & distribute Ad Hoc b)share your certificates c) jailbroken phones don’t require signing IMPORTANT: keep copy of .dSYM files 35
  • 36. Beta testing Collect console logs using iPhone Configuration Utility Collect console logs and user data using Flurry or others Collect crash logs from users Users need to sync and find files on Mac Analyze using symbolicate and .dSYM files 36
  • 37. Release Part 4 37
  • 38. Release to App Store PRO: Easier access, greater exposure PRO: Apple handles billing, gives you 70% CON: infamous App Store approval process (weeks or months, possibly never) 38
  • 39. Release to Cydia Store (jailbroken devices) PRO: No approval needed PRO: Unique markets, especially Vietnam PRO: Access to more functionality CON: Smaller market, exposure 39
  • 40. App Store rejection examples Bugs Private APIs Downloaded code Non-working test account 40
  • 41. App Store rejection examples Bad design (e.g. deselected tableview); re- using system icons; connectivity handling; feature-limited Excess vibration, bandwidth Uploading user data without warning But exceptions: “Don’t ask, don’t tell” 41
  • 42. App Store rejection examples Objectional content, e.g. Me So Holy, Baby Shaker, StarTime, Eucalyptus, Ninjawords, NIN Competing with Apple & carriers, e.g. Google Voice & Skype Trademark, e.g. iPhone icon & name, Polaroid Icons that match, icons that don’t match Bad descriptions (“dragons”, competitor 42
  • 43. Marketing App Store ranking Online reviews, Public Relations Video demos, using iSimulate Word-of-mouth Excellence -> Apple featured, marketing Free “lite” version Pricing strategy Appirater? 43
  • 44. TapTapTap’s advertising of “Where To” 44
  • 45. What kind of apps? Utility, productivity Business? Careful because officially not allowed Casual games, e.g. Pee monkey Arcade games, e.g. Meteor Blitz DEMO: Meteor Blitz video demo 45
  • 46. Retire rich Part 5 46
  • 47. What now? Get a Mac/Hackintosh Download the SDK Learn from Stanford course, MultiUni 47
  • 48. Free 6-day course: Intro to iPhone & Objective-C Go to http://multiuni.org/ for details 48