$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
iOSアプリ開発におけるAuto Layout
Search
waka waka
February 19, 2023
Programming
2
78
iOSアプリ開発におけるAuto Layout
学生自主勉強会
【内容】iOSアプリ開発におけるAutoLayoutについて
waka waka
February 19, 2023
Tweet
Share
Other Decks in Programming
See All in Programming
Microservices rules: What good looks like
cer
PRO
0
920
TypeScript 5.9 で使えるようになった import defer でパフォーマンス最適化を実現する
bicstone
1
1.2k
WebRTC、 綺麗に見るか滑らかに見るか
sublimer
1
160
AIエージェントを活かすPM術 AI駆動開発の現場から
gyuta
0
320
テストやOSS開発に役立つSetup PHP Action
matsuo_atsushi
0
140
エディターってAIで操作できるんだぜ
kis9a
0
690
手軽に積ん読を増やすには?/読みたい本と付き合うには?
o0h
PRO
1
160
なあ兄弟、 余白の意味を考えてから UI実装してくれ!
ktcryomm
10
11k
sbt 2
xuwei_k
0
220
dnx で実行できるコマンド、作ってみました
tomohisa
0
140
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
37
23k
FluorTracer / RayTracingCamp11
kugimasa
0
200
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
55
9.3k
Speed Design
sergeychernyshev
33
1.4k
BBQ
matthewcrist
89
9.9k
For a Future-Friendly Web
brad_frost
180
10k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
Building Applications with DynamoDB
mza
96
6.8k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Thoughts on Productivity
jonyablonski
73
5k
Statistics for Hackers
jakevdp
799
230k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Transcript
एྛ྄ޗ iOSΞϓϦ։ൃʹ͓͚ΔAutoLayout
AutoLayoutͱ AutoLayoutͱ͍͏ͷʮ੍ʢConstraintʣʯΛ༻͍ͨϨΠΞτํ๏Ͱ͢ɻ AutoLayoutΛઃఆͨ͠߹ AutoLayoutΛઃఆ͍ͯ͠ͳ͍߹ ϘλϯϥϕϧͳͲͷҐஔΛͳͲͰࢦఆ͠ɺͦΕͧΕͷը໘αΠζʹ߹ΘͤΔ
X্࣠ͷਅΜதʹஔ͍ͨ͠߹ Horizontally in Container Y্࣠ͷਅΜதʹஔ͍ͨ͠߹ Vertically in Container Horizontally in
Container ͱVertically in Container ( 0 , 0 ) iOSΞϓϦࠨ্Λݪʢ0, 0ʣ X࣠ʹ͍ͭͯӈʹߦ͘΄Ͳϓϥε Y࣠ʹ͍ͭͯԼʹߦ͘΄Ͳϓϥε X࣠ Y࣠
Ͱ੍Λ͚ͭΔ બͨ͠ViewͷྡͷViewͱͷεϖʔεαΠζͷؔΛද͢ ɾSpacing to nearest - ྡͷViewͱͷڑ ɾWidth - ԣ෯ͷ͞
ɾHeight - ߴ͞ ɾEqual Width - ಉ͡෯ʹ͢Δ ɾEqual Heights - ಉ͡ߴ͞ʹ͢Δ ɾAspect Ratio - ΞεϖΫτൺΛݻఆ͢Δ
StackView - ಉ͡Α͏ͳΦϒδΣΫτΛ·ͱΊͯҰͭͷΦϒδΣΫτʹͯ͘͠ΕΔͱ͍͏ΦϒδΣΫτ StackViewΛ͏ͱઃఆ͢Δ੍Λ࠷খݶʹ͢Δ͜ͱ͕Ͱ͖Δ Vertically Stack View - ਨํʢY࣠ʣʹΦϒδΣΫτΛฒΔ StackView
Horizontally Stack View - ਫฏํʢX࣠ʣʹΦϒδΣΫτΛฒΔ
ϩάΠϯը໘࡞ iPhone 14 Pro iPhone SE (3rd)