Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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の世界 〜iOSアプリのRTL言語対応〜
akatsuki174
1
350
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
690
私が変えてきたこと、変えなかったこと
akatsuki174
2
950
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
230
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
120
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
5.9k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
490
オフライン勉強会ぼっち対策
akatsuki174
1
680
Xcode 15の新機能
akatsuki174
0
2.8k
Other Decks in Programming
See All in Programming
Cell-Based Architecture
larchanjo
0
130
chocoZAPサービス予約システムをNuxtで内製化した話
rizap_tech
0
160
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
510
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
1.2k
AIコーディングエージェント(Manus)
kondai24
0
190
【CA.ai #3】Google ADKを活用したAI Agent開発と運用知見
harappa80
0
320
251126 TestState APIってなんだっけ?Step Functionsテストどう変わる?
east_takumi
0
320
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
230
dotfiles 式年遷宮 令和最新版
masawada
1
780
Rubyで鍛える仕組み化プロヂュース力
muryoimpl
0
140
Rediscover the Console - SymfonyCon Amsterdam 2025
chalasr
2
170
AIコーディングエージェント(Gemini)
kondai24
0
230
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Unsuck your backbone
ammeep
671
58k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
390
Six Lessons from altMBA
skipperchong
29
4.1k
Done Done
chrislema
186
16k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
286
14k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
Testing 201, or: Great Expectations
jmmastey
46
7.8k
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Ϩεϙ ϯγϒσβΠϯΛϚελʔ. Տᬒ༤հ. גࣜձࣾϦοΫςϨίϜ.
͓͠·͍