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
Objective-C Introduction part2
Search
Juan Pablo Ortiz Aréchiga
March 24, 2012
Programming
3
140
Objective-C Introduction part2
Juan Pablo Ortiz Aréchiga
March 24, 2012
Tweet
Share
More Decks by Juan Pablo Ortiz Aréchiga
See All by Juan Pablo Ortiz Aréchiga
Introduction to programming
pablasso
1
74
Objective-C Introduction part1
pablasso
5
170
Objective-C at CocoaHeadsGDL
pablasso
1
120
Other Decks in Programming
See All in Programming
One Enishi After Another
snoozer05
PRO
0
140
釣り地図SNSにおける有料機能の実装
nokonoko1203
0
190
CSC509 Lecture 07
javiergs
PRO
0
240
NixOS + Kubernetesで構築する自宅サーバーのすべて
ichi_h3
0
1.1k
CSC509 Lecture 08
javiergs
PRO
0
230
「ちょっと古いから」って避けてた技術書、今だからこそ読もう
mottyzzz
11
7k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
520
CSC509 Lecture 05
javiergs
PRO
0
310
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
520
実践Claude Code:20の失敗から学ぶAIペアプログラミング
takedatakashi
16
6.4k
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
180
Devoxx BE - Local Development in the AI Era
kdubois
0
130
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Become a Pro
speakerdeck
PRO
29
5.6k
Agile that works and the tools we love
rasmusluckow
331
21k
YesSQL, Process and Tooling at Scale
rocio
173
14k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Raft: Consensus for Rubyists
vanstee
140
7.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
Large-scale JavaScript Application Architecture
addyosmani
514
110k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Transcript
Objective-C & Cocoa viernes 23 de marzo de 12
Blocks • Typed argument list just like a function •
Can capture state from the lexical scope within which it is defined • Can optionally modify the state of the lexical scope • Can share the potential for modification with other blocks defined within the same viernes 23 de marzo de 12
Blocks viernes 23 de marzo de 12
Blocks viernes 23 de marzo de 12
MVC viernes 23 de marzo de 12
Views • Represent a rectangular area • Draws and handles
events • Hierarchical • Ordered as they’re added viernes 23 de marzo de 12
Views Frame • Rectangle • CGPoint = {0.0f, 0.0f} •
CGSize = {100.0f, 100.0f} • CGRect = {0.0f, 0.0f, 100.0f, 100.0f} viernes 23 de marzo de 12
Views order viernes 23 de marzo de 12
Views transparency • Can do, but is expensive (composites) •
Opaque is your friend viernes 23 de marzo de 12
Views memory management • A parent retains it’s subviews •
Released when removeFromSuperView viernes 23 de marzo de 12
View Controllers • View based applications.. so most of them
• Could use a nib, but not required viernes 23 de marzo de 12
View Controllers viernes 23 de marzo de 12
View Controllers • UINavigationController • UITabBarController • UISplitViewController viernes 23
de marzo de 12
UIGestureRecognizer • Touches! • 1. Assign gesture recognizer to a
view. • 2. Handle event for gesture • 3. Profit viernes 23 de marzo de 12
UIGestureRecognizer viernes 23 de marzo de 12