Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Почему ты до сих пор не используешь Auto Layout?
Search
larryonoff
November 02, 2013
Programming
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Почему ты до сих пор не используешь Auto Layout?
larryonoff
November 02, 2013
Other Decks in Programming
See All in Programming
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
510
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
440
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
1
160
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
33k
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
Workers Cache を知る
syumai
0
370
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
220
残高管理から台帳サービスへの進化
artoy
1
200
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
Featured
See All Featured
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
The Curse of the Amulet
leimatthew05
3
16k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Docker and Python
trallard
47
4.2k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Become a Pro
speakerdeck
PRO
31
6.3k
Building an army of robots
kneath
307
47k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Deep Space Network (abreviated)
tonyrice
0
370
Side Projects
sachag
456
43k
Typedesign – Prime Four
hannesfritz
42
3.2k
Transcript
Почему ты до сих пор не используешь Auto Layout? Ларионов
Илья, HiQo Solutions
In the past • frame! • autoresizingMask • calculate new
frame • view.frame = newFrame
Auto Layout
Requirements • iOS SDK 6 or OS X 10.7 •
Xcode 4 • Xcode 5!
Relations between views
Constraint Basics attribute1 == multiplier x attribute2 + constant
Constraints in the Code • forget about frame • translatesAutoresizingMaskIntoConstraints
= NO • not so easy to define auto layout constraints, instead of autosizing
Visual Format Language • constraintsWithVisualFormat:options:metrics:vie ws:
Auto Layout and view animation • myView.frame = newFrame •
layoutIfNeeded • animate the constraints, not the frames
Constraints and Interface Builder • don’t resize controls explicitly •
be careful when deleting constraints
Auto Layout and Scroll View
Conclusion
Materials • https://developer.apple.com/library/mac/ documentation/UserExperience/Conceptual/ AutolayoutPG/Articles/Introduction.html • http://oleb.net/blog/2013/03/things-you-need-to- know-about-cocoa-autolayout/ • http://www.objc.io/issue-3/advanced-auto-layout-
toolbox.html