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
Mysteries of Auto Layout
Search
nakajijapan
July 01, 2015
Technology
1
130
Mysteries of Auto Layout
UIStackViewの話
nakajijapan
July 01, 2015
Tweet
Share
More Decks by nakajijapan
See All by nakajijapan
サービスにおけるDesign Systemの構築
nakajijapan
6
3.5k
Markdownをリアルタイムに解析する
nakajijapan
4
4.3k
Firebase Authorization
nakajijapan
0
220
Intoducing Izumo
nakajijapan
1
1.8k
Practical CloudKit
nakajijapan
1
1.7k
Introducing to Ajimi - プロダクトを味見していこう
nakajijapan
0
2.1k
Shari
nakajijapan
1
2.6k
Japan Apple Pay Development
nakajijapan
0
250
業務で絶対必要にならない技術
nakajijapan
0
780
Other Decks in Technology
See All in Technology
Bring Your Own Container: When Containers Turn the Key to EDR Bypass/byoc-avtokyo2024
tkmru
0
770
東京Ruby会議12 Ruby と Rust と私 / Tokyo RubyKaigi 12 Ruby, Rust and me
eagletmt
1
390
デジタルアイデンティティ技術 認可・ID連携・認証 応用 / 20250114-OIDF-J-EduWG-TechSWG
oidfj
2
480
Cloudflareで実現する AIエージェント ワークフロー基盤
kmd09
0
250
FODにおけるホーム画面編成のレコメンド
watarukudo
PRO
2
110
知っててうれしい SQL について
greendrop
0
120
Unlearn Product Development - Unleashed Edition
lemiorhan
PRO
2
170
KMP with Crashlytics
sansantech
PRO
0
180
Evolving Architecture
rainerhahnekamp
3
240
OPENLOGI Company Profile for engineer
hr01
1
18k
.NET AspireでAzure Functionsやクラウドリソースを統合する
tsubakimoto_s
0
160
Formal Development of Operating Systems in Rust
riru
1
410
Featured
See All Featured
Scaling GitHub
holman
459
140k
Visualization
eitanlees
146
15k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
For a Future-Friendly Web
brad_frost
176
9.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.2k
Unsuck your backbone
ammeep
669
57k
Mobile First: as difficult as doing things right
swwweet
222
9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.2k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
A Modern Web Designer's Workflow
chriscoyier
693
190k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
Transcript
Google I/O & WWDC ใڞ༗ձ @nakajijapan Mysteries of Auto Layout
!OBLBKJKBQBO 4PGUXBSF&OHJOFFS (.01&1"#0JOD J048FC.BD w 88%$͍ͬͯLN w ࠷ۙझຯͰ.BD049ΞϓϦͬͯ·͢ w "7'PVOEBUJPOपΓΛझຯͰௐͯ·͢
NKJMultiMovieCaptureView https://github.com/nakajijapan/NKJMultiMovieCaptureView NKJMovieComposer https://github.com/nakajijapan/NKJMovieComposer NKJPagerViewController https://github.com/nakajijapan/NKJPagerViewController etc
J04"OESPJE ϋϯυϝΠυɺख࡞Γ࡞ͷ௨ൢɾൢചαΠτ NJOOF
લஔ͖
@misyobun
WWDC2015Ͱ Objective-C͔ΒSwift ͷҠߦʹ͍ͭͯApple ͷਓʹ㘤͍ͨ @misyobun
AndroidΤϯδχΞ͕ Apple৴ऀʹม͢Δ Λָ͓͠Έ͍ͩ͘͞ @misyobun
ຊ
UIStackView
Mysteries of Auto Layout, Part 1 Session 218
The UIStackView class provides a streamlined interface for laying out
a collection of views in either a column or a row. UIStackView
%JTUSJCVUJPO "MJHONFOU 4QBDJOH 6*4UBDL7JFX$MBTT3FGFSFODF
Layout Variables • axis • distribution • alignment • spacing
Try!
Try 1
No UIStackView
UIStackView
Try 2
No UIStackView
No UIStackView
UIStackView
UIStackView
UIStackView
εοΩϦ!! UIStackView
Good • ࣮͕؆୯ • ϨΠΞτͷཧָ͕ • ੍ͷݟ௨͕͠ྑ͘ͳΔ • ։ൃऀ͚ͩͰͳ͘σβΠφʹΑΓϑϨϯυϦʔ
Not Good • iOS9͚ͩαϙʔτ • ࣮ʹઌ… • ෳࡶͳϨΠΞτʹαϙʔτ͠ͳ͍ • ͦͷ߹ࠓ·Ͱ௨Γʹ࣮
·ͱΊ ࣗͷϓϩμΫτͰਓபʹͳͬͯΈΑ͏ʂ ʢ৴ڼ৺ͷߴ·ΓΛײ͡ͳ͕Βʣ
https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/ UIStackView_Class_Reference 6*4UBDL7JFX 6*,JU'SBNFXPSL3FGFSFODF
ѹ త ײ ँ