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
AutoLayoutのデバッグを試みる
Search
akatsuki174
October 14, 2016
Programming
1
2.6k
AutoLayoutのデバッグを試みる
2016/10/14(金)
iOS Creators' Meetup vol.2資料
akatsuki174
October 14, 2016
Tweet
Share
More Decks by akatsuki174
See All by akatsuki174
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
140
私が変えてきたこと、変えなかったこと
akatsuki174
2
860
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
210
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
98
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
5.7k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
470
オフライン勉強会ぼっち対策
akatsuki174
1
660
Xcode 15の新機能
akatsuki174
0
2.8k
AndroidにもSelect Photosがやってきた
akatsuki174
0
1.4k
Other Decks in Programming
See All in Programming
「待たせ上手」なスケルトンスクリーン、 そのUXの裏側
teamlab
PRO
0
530
Oracle Database Technology Night 92 Database Connection control FAN-AC
oracle4engineer
PRO
1
440
How Android Uses Data Structures Behind The Scenes
l2hyunwoo
0
460
@Environment(\.keyPath)那么好我不允许你们不知道! / atEnvironment keyPath is so good and you should know it!
lovee
0
120
基礎から学ぶ大画面対応(Learning Large-Screen Support from the Ground Up)
tomoya0x00
0
1.5k
Navigating Dependency Injection with Metro
zacsweers
3
960
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
690
MCPでVibe Working。そして、結局はContext Eng(略)/ Working with Vibe on MCP And Context Eng
rkaga
5
2.3k
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
22
5.8k
アプリの "かわいい" を支えるアニメーションツールRiveについて
uetyo
0
270
ぬるぬる動かせ! Riveでアニメーション実装🐾
kno3a87
1
220
GitHubとGitLabとAWS CodePipelineでCI/CDを組み比べてみた
satoshi256kbyte
4
240
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
83
9.2k
How GitHub (no longer) Works
holman
315
140k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
810
The Cult of Friendly URLs
andyhume
79
6.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Building Adaptive Systems
keathley
43
2.7k
Balancing Empowerment & Direction
lara
3
620
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
51
5.6k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Documentation Writing (for coders)
carmenintech
74
5k
Transcript
AutoLayoutͷσόοάΛ ࢼΈΔ @akatsuki174
ࣗݾհ • ਢ౻ຘ • ΦΠγοΫεגࣜձࣾͷiOSΤϯδχΞ • ͜ͷษڧձͷओ࠵Ͱ͢ • Twitter, Qiita,
SlideShare, Github, SpeakerDeck →akatsuki174
Έͳ͞Μ͜Μͳ໘ ͋Γ·ͤΜ͔ʁ
AutoLayoutͰΤϥʔ
ࠓͷςʔϚ AutoLayoutͰࠔͬͨ࣌ͷ ରॲ๏Λʹ͚ͭΔ
ৄ͍͠ࢿྉ ʢ̎ʣ,ʢ̏ʣʢͦͷ͏ͪɺؾ͕͍ͨ࣌ʹʣॻ ͘༧ఆͰ͢ɻ ࠓճհ͢Δͷʢ̍ʣͷҰ෦Ͱ͢ɻ
ࠓճѻ͏μϝ੍ hoge…UILabelͷ੍ ɾLeadingSpace = 100 ɾWidth = 300 ɾTailingSpace =
100
ͪΐͬͱͣͭݟ͍͖ͯ·͠ΐ͏
“͜ͷத͔Β༧ظͤ͵੍Λ ݟ͚ͭͯͯ͠Ͷ”
UIView-Encapsulated-Layout-xxx ʹγεςϜ͕ࣗಈੜ੍ͨ͠ 1ͭΊͷ੍ͱ໌Β͔ʹίϯϑϦΫτ →ਫฏํͷ੍͕ոͦ͠͏
“੍શ෦कΕͳ͍͔Β ͜ͷ੍औΓআ͍ͱ͍ͨΑ”
“UIViewAlertForUnsatisfiableConstra intsͷγϯϘϦοΫϒϨʔΫϙΠϯτ Λ࡞ͬͯΈͯͶ”
γϯϘϦοΫϒϨʔΫϙΠϯτ ʹಛఆͷ݅ʹϚονͨ࣌͠ʹ ॲཧΛετοϓͯ͘͠ΕΔ
࡞ํ๏
࣮ߦ Viewͷ֊ߏΛΔ͜ͱ͕Ͱ͖Δ
͞Βʹ ͜ΜͳίϚϯυΛ࣮ߦ͠·͢
͢Δͱ
͓͞Β͍σϞ
͓͢͢Ίࢿྉ ɾAuto LayoutΨΠυ: σόοάʹཱͭ ώϯτ - Apple Developer https://developer.apple.com/jp/ documentation/UserExperience/
Conceptual/AutoLayoutGuide/ DebuggingTricksandTips/ DebuggingTricksandTips.html
͓͢͢Ίࢿྉ ɾΑ͘Θ͔ΔAutoLayout iOSϨεϙ ϯγϒσβΠϯΛϚελʔ. Տᬒ༤հ. גࣜձࣾϦοΫςϨίϜ.
͓͠·͍