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
February 02, 2010
Technology
200
0
Share
Tips & Tricks for iPhone Application Development
Presentation shown during a SkillsMatter event in London, United Kingdom.
Adrian Kosmaczewski
February 02, 2010
More Decks by Adrian Kosmaczewski
See All by Adrian Kosmaczewski
What's in your Container? Securing the Software Supply Chain without Slowing Down
akosma
0
52
Managing Fleets of Kubernetes Clusters with GitOps
akosma
4
290
DevOps in Switzerland from 2018 to 2022
akosma
4
380
APPUiO Cloud
akosma
2
810
Introduction to K8up
akosma
0
440
Creating Products through DevOps: The Story of VSHN
akosma
0
310
Everyday Life of an Open-Source Company: The Story of VSHN
akosma
0
390
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
0
810
Migrating the GitLab–Kubernetes Integration from Certificates to the Agent
akosma
0
630
Other Decks in Technology
See All in Technology
Scovilleモバイルエンジニア募集中.pdf
julienrudin
0
140
Building Production-Ready Agents Microsoft Agent Framework
_mertmetin
0
140
AIが自律的に働く時代へ Amazon Quick で実現するAIエージェント紹介
koheiyoshikawa
0
160
AIが書いたコードを信じられない問題 〜レビュー負荷を下げるために変えたこと〜 / The AI Code Trust Gap: Reducing the Review Burden
bitkey
PRO
8
1.4k
AndroidアプリとCopilot Studioの統合
nakasho
0
190
Practical TypeProf: Lessons from Analyzing Optcarrot
mame
1
1.6k
AIでAIをテストする - 音声AIエージェントの品質保証戦略
morix1500
1
160
AI時代の品質はテストプロセスの作り直し #scrumniigata
kyonmm
PRO
3
680
ハーネスエンジニアリングをやりすぎた話 ~そのハーネスは解体された~
gotalab555
5
1.9k
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
190
Agents CLI と Gemini Enterprise Agent Platform で マルチエージェント開発が楽しくなる!
kaz1437
0
210
[Oracle TechNight#99] 生成AI時代のAI/ML入門 ~ AIとオラクルデータベースの関係 (前半)
oracle4engineer
PRO
1
140
Featured
See All Featured
The Language of Interfaces
destraynor
162
26k
Making Projects Easy
brettharned
120
6.6k
ラッコキーワード サービス紹介資料
rakko
1
3.2M
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Ruling the World: When Life Gets Gamed
codingconduct
0
220
The Limits of Empathy - UXLibs8
cassininazir
1
320
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
280
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
330
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
130
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
Documentation Writing (for coders)
carmenintech
77
5.3k
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?