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
August 27, 2009
Technology
0
15
Tips & Tricks for iPhone Application Development
Presentation shown in Copenhagen, Denmark.
Adrian Kosmaczewski
PRO
August 27, 2009
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
S3とCloudWatch Logsの見直しから始めるコスト削減 / Cost saving S3 and CloudWatch Logs
shonansurvivors
0
210
OCI DevOps 概要 / OCI DevOps overview
oracle4engineer
PRO
0
480
ECテックカンファレンス2023 EC事業部のモバイル開発2023
tatsumi0000
0
260
OpenShiftでスポットVMを使おう.pdf
jpishikawa
1
260
立ち止まっても、寄り道しても / even if I stop, even if I take a detour
katoaz
0
170
GraphQLスキーマ設計の勘所
yukukotani
26
6.1k
Exploring MapStore Release 2022.02: improved 3DTiles support and more
simboss
PRO
0
300
SignalR を使ったアプリケーション開発をより快適に!
nenonaninu
0
590
20230121_データ分析系コミュニティ_サテライト企画
doradora09
0
520
目指せCoverage100%! AutoScale環境におけるSavings Plans購入戦略 / JAWS-UG_SRE_Coverage
taishin
0
470
MoT/コネヒト/Kanmu が語るプロダクト開発xデータ分析 - 分析から機械学習システムの開発まで一人で複数ロールを担う大変さ
masatakashiwagi
3
660
スクラム導入して変わったチーム、組織のありかた
yumechi
0
160
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
22
1.7k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
13
1.1k
Done Done
chrislema
178
14k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
224
50k
No one is an island. Learnings from fostering a developers community.
thoeni
12
1.5k
Building an army of robots
kneath
301
40k
BBQ
matthewcrist
75
8.1k
Bootstrapping a Software Product
garrettdimon
299
110k
Adopting Sorbet at Scale
ufuk
65
7.8k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
38
3.6k
In The Pink: A Labor of Love
frogandcode
132
21k
From Idea to $5000 a Month in 5 Months
shpigford
374
44k
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?