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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Juan Pablo Ortiz Aréchiga
March 24, 2012
Programming
150
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Objective-C Introduction part2
Juan Pablo Ortiz Aréchiga
March 24, 2012
More Decks by Juan Pablo Ortiz Aréchiga
See All by Juan Pablo Ortiz Aréchiga
Introduction to programming
pablasso
1
81
Objective-C Introduction part1
pablasso
5
170
Objective-C at CocoaHeadsGDL
pablasso
1
130
Other Decks in Programming
See All in Programming
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
230
Agentic UI
manfredsteyer
PRO
0
200
Contextとはなにか
chiroruxx
1
380
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
300
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
260
その問い、本当に正しいですか?AI時代のエンジニアに必要な哲学と認知科学 / ai-philosophy-cognitive-science
minodriven
14
6.4k
JavaDoc 再入門
nagise
1
430
Inside Stream API
skrb
1
800
どこまでゆるくて許されるのか
tk3fftk
0
260
技術的負債解消で開発者の未来を開く- AIの力でコード刷新
kmd2kmd
0
120
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
190
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
130
Featured
See All Featured
Navigating Team Friction
lara
192
16k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
350
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.8k
Balancing Empowerment & Direction
lara
6
1.2k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Paper Plane (Part 1)
katiecoart
PRO
0
9.3k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
870
Building AI with AI
inesmontani
PRO
1
1.1k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
620
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
400
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3.5k
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