Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Tips & Tricks for iPhone Application Development
Search
Adrian Kosmaczewski
August 27, 2009
Technology
0
130
Tips & Tricks for iPhone Application Development
Presentation shown in Copenhagen, Denmark.
Adrian Kosmaczewski
August 27, 2009
Tweet
Share
More Decks by Adrian Kosmaczewski
See All by Adrian Kosmaczewski
Managing Fleets of Kubernetes Clusters with GitOps
akosma
4
220
DevOps in Switzerland from 2018 to 2022
akosma
3
290
APPUiO Cloud
akosma
2
690
Introduction to K8up
akosma
0
350
Creating Products through DevOps: The Story of VSHN
akosma
0
230
Everyday Life of an Open-Source Company: The Story of VSHN
akosma
0
280
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
0
620
Migrating the GitLab–Kubernetes Integration from Certificates to the Agent
akosma
0
470
APPUiO Cloud: Making of a Swiss PaaS
akosma
0
230
Other Decks in Technology
See All in Technology
Part1 GitHubってなんだろう?その2
tomokusaba
1
470
MySQL InnoDB Data Recovery - The Last Resort
lefred
0
100
genspark_presentation.pdf
haruki_uiru
1
190
AWSを利用する上で知っておきたい名前解決の話
nagisa53
6
670
Global Azure2025(GitHub Copilot ハンズオン)
tomokusaba
1
480
Notion x ポストモーテムで広げる組織の学び / Notion x Postmortem
isaoshimizu
1
150
250510 StepFunctionのテスト自動化始めました vol.1
east_takumi
1
140
Databricksで完全履修!オールインワンレイクハウスは実在した!
akuwano
0
150
Новые мапы в Go. Вова Марунин, Clatch, МТС
lamodatech
0
1.8k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
2
460
Part2 GitHub Copilotってなんだろう
tomokusaba
1
500
コードや知識を組み込む / Incorporating Codes and Knowledge
ks91
PRO
0
170
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.4k
Facilitating Awesome Meetings
lara
54
6.3k
Build your cross-platform service in a week with App Engine
jlugia
230
18k
How to Ace a Technical Interview
jacobian
276
23k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Designing for humans not robots
tammielis
253
25k
RailsConf 2023
tenderlove
30
1.1k
Why Our Code Smells
bkeepers
PRO
336
57k
The World Runs on Bad Software
bkeepers
PRO
68
11k
Making the Leap to Tech Lead
cromwellryan
133
9.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
137
33k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
Transcript
tips & tricks for iPhone application development
None
adrian kosmaczewski
akosma software akosma.com akosma.tumblr.com github.com/akosma linkedin.com/in/akosma facebook.com/akosma
@akosma
None
some questions
@perlausten? @supermouse? @williwu?
new to iPhone?
technologies?
J2EE, J2ME, .NET, RoR, others?
programming languages?
C / C++? Java, C#? Ruby, Python, Lua? JavaScript?
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 @protocol interface #import //
files! import // classes! categories n/a id n/a
• Thin layer around C • Message-dispatch runtime • Static
and dynamic (you choose) • The “real” father of 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!
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/
None
books
None
None
None
None
None
None
None
None
None
thanks!
questions?