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
iOSアプリ開発におけるAuto Layout
Search
waka waka
February 19, 2023
Programming
2
71
iOSアプリ開発におけるAuto Layout
学生自主勉強会
【内容】iOSアプリ開発におけるAutoLayoutについて
waka waka
February 19, 2023
Tweet
Share
Other Decks in Programming
See All in Programming
Amazon Bedrock Multi Agentsを試してきた
tm2
1
280
最近のVS Codeで気になるニュース 2025/01
74th
1
250
プログラミング言語学習のススメ / why-do-i-learn-programming-language
yashi8484
0
120
Introduction to kotlinx.rpc
arawn
0
630
第3回関東Kaggler会_AtCoderはKaggleの役に立つ
chettub
3
890
Domain-Driven Transformation
hschwentner
2
1.9k
ペアーズでの、Langfuseを中心とした評価ドリブンなリリースサイクルのご紹介
fukubaka0825
2
300
Pulsar2 を雰囲気で使ってみよう
anoken
0
230
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
240
Linux && Docker 研修/Linux && Docker training
forrep
23
4.5k
AHC041解説
terryu16
0
590
Amazon ECS とマイクロサービスから考えるシステム構成
hiyanger
2
490
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
20
2.4k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
Designing for Performance
lara
604
68k
Making Projects Easy
brettharned
116
6k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Producing Creativity
orderedlist
PRO
343
39k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
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)