Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Tips & Tricks for iPhone Application Development
Adrian Kosmaczewski
PRO
February 02, 2010
Technology
0
16
Tips & Tricks for iPhone Application Development
Presentation shown during a SkillsMatter event in London, United Kingdom.
Adrian Kosmaczewski
PRO
February 02, 2010
Tweet
Share
More Decks by Adrian Kosmaczewski
See All by Adrian Kosmaczewski
Everyday Life of an Open-Source Company: The Story of VSHN
akosma
PRO
0
37
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
PRO
0
160
Migrating the GitLab–Kubernetes Integration from Certificates to the Agent
akosma
PRO
0
87
DevOps et Kubernetes sur Exoscale: The Future of Swiss Cloud
akosma
PRO
0
33
Microservice Architectures with Kubernetes and PaaS
akosma
PRO
0
130
Introduction to Project Syn
akosma
PRO
0
49
Kubernetes Configuration Management
akosma
PRO
0
20
K3s – A Practical Introduction
akosma
PRO
0
250
Airlock Microgateway 2.1
akosma
PRO
0
10
Other Decks in Technology
See All in Technology
WebLogic Server for OCI 概要
oracle4engineer
PRO
3
870
ECテックカンファレンス2023 EC事業部のモバイル開発2023
tatsumi0000
0
260
日経電子版だけじゃない! 日経の新規Webメディアの開発 - NIKKEI Tech Talk #3
sztm
0
160
本社オフィスを移転し、 オフィスファシリティ・コーポレートIT を刷新した話
rotomx
3
1.3k
FlexScan HD2452Wの 後継を探して
tring
0
6.1k
日本ディープラーニング協会主催 NeurIPS 2022 技術報告会講演資料
tdailab
0
1.1k
2022年に起きたフロントエンドの変化
sakito
29
17k
Dev Containers ことはじめ - 失敗から学ぶ開発環境運用法
streamwest1629
0
320
- Rでオブジェクト指向プログラミング- クラス設計入門の入門
kotatyamtema
1
720
ChatGPT for Hacking
anugrahsr
0
4k
MarvelClient Upgrade 64bit クライアントへの自動アップグレード設定
mitsuru_katoh
0
110
もし本番ネットワークをまるごと仮想環境に”コピー”できたらうれしいですか? / janog51
corestate55
0
350
Featured
See All Featured
Gamification - CAS2011
davidbonilla
75
4.1k
Agile that works and the tools we love
rasmusluckow
320
20k
Writing Fast Ruby
sferik
613
58k
Large-scale JavaScript Application Architecture
addyosmani
499
110k
Designing on Purpose - Digital PM Summit 2013
jponch
108
5.9k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
10
1.3k
Fireside Chat
paigeccino
16
1.8k
A better future with KSS
kneath
230
16k
Unsuck your backbone
ammeep
659
56k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
6
840
Done Done
chrislema
178
14k
Designing with Data
zakiwarfel
91
4.2k
Transcript
Tips & Tricks for iPhone Application Development Skills Matter -
London - February 2nd 2010
None
Adrian Kosmaczewski
akosma software akosma.com akosma.tumblr.com github.com/akosma linkedin.com/in/akosma facebook.com/akosma
@akosma
None
some questions
new to iPhone?
designer? developer?
technologies?
Android J2EE J2ME .NET Ruby on Rails others?
programming languages?
C / C++? Java, C#? Ruby, Python, Lua? JavaScript?
None
Dev Days for iPhone
Mon, April 26th 2010
Win a free ticket!
Fill your evaluation form! :)
None
iPhone dev ≠ web dev
None
Cocoa & Objective-C
born in the 80s
None
None
None
None
Objective-C
Objective-C Java @interface & @implementation class (1 file) @protocol interface
#import // files! import // classes! categories n/a (in C#, “class extensions”) id n/a (generics?)
Objective-C Java @selector n/a NSObject / NSProxy / ... Object
@public / @protected / @private public / protected / private @try / @catch / @finally NSException try / catch / finally Exception n/a package / namespace
• Thin layer around C • Message-dispatch runtime • Static
and dynamic (you choose) • The “real” inspiration for Java: • http://cs.gmu.edu/~sean/stuff/java- objc.html
• Single inheritance + interfaces (“@protocols”) • @protocols can have
optional methods • Fields protected by default • All methods are virtual and overridable • Methods can be added to existing classes • Full introspection / reflection • Messages can be intercepted and forwarded à la AOP
None
None
None
None
Demo
None
Cocoa Touch
None
None
iPhone Specifics
None
128 or 256 MB RAM
~70 MB for the OS!
no swap file
(no virtual memory)
no garbage collector
(manual memory management)
http://cocoadevcentral.com/d/learn_objectivec/
no automatic objects on the stack (C++)
// C++ // Memory freed when out of scope std::string
name(“Adrian”); std::string *name = NULL; name = new std::string(“Adrian”); delete name;
hygiene
None
memory warnings
None
avoid autorelease
None
None
lazy-loading & reuse
None
custom table cells & reuse
None
override setters properly
None
beware of delegation
None
instruments & static analysis
None
warnings as errors
None
code organization
(cheaper maintenance)
None
iPhone ≠ computer
http://www.flickr.com/photos/oskay/365607662/
http://www.flickr.com/photos/blakespot/2379207825/
http://www.flickr.com/photos/oskay/365607591/
Mobile HIG
now more important than ever!
None
None
None
None
NDA
None
books
None
None
None
None
None
None
None
None
None
thanks!
Please fill your evaluation forms!
(you could win a ticket)
questions?