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.4k
AutoLayoutのデバッグを試みる
2016/10/14(金)
iOS Creators' Meetup vol.2資料
akatsuki174
October 14, 2016
Tweet
Share
More Decks by akatsuki174
See All by akatsuki174
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
4.7k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
310
オフライン勉強会ぼっち対策
akatsuki174
1
460
Xcode 15の新機能
akatsuki174
0
2.1k
AndroidにもSelect Photosがやってきた
akatsuki174
0
730
Famm Android改善記
akatsuki174
0
310
Flutterアプリ開発にネイティブコードはどこまで求められるのか
akatsuki174
2
3.5k
UIKitのアップデート #WWDC22
akatsuki174
4
1k
職能/職種横断でチームの生産性を高める
akatsuki174
2
5.6k
Other Decks in Programming
See All in Programming
自動テスト実行結果の目的を整理する / Organizing objectives of automated test results
twada
PRO
10
2.1k
上手な探索的テストとその上達方法について
matsu802
4
650
The Future of C++ Interoperability: Insights from Porting a Game to Swift
teamhimeh
0
270
決断するための勇気、そのためのBacklog / Courage to make decisions, Backlog for that.
seike460
PRO
4
1.9k
OpenTelemetry のサービスという概念について
azukiazusa1
1
410
品質が高いコードって何?Rev2.1
ickx
1
490
フロントエンドパフォーマンス 入門
shouta2
7
1.5k
Enhancing Applications with Accessibility API
kishikawakatsumi
3
970
Data Contracts In Practice With Debezium and Apache Flink (Kafka Summit London)
gunnarmorling
2
280
PHP8の機能を使って堅牢にコードを書く
fendo181
6
2.6k
C# 大統一理論推進委員会 会員のための Unity Package Manager プロジェクト構成案
monry
PRO
0
580
脱・初心者!脱・マネコン!AWS CDKを使ってみませんか!?
har1101
0
160
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
21
3.8k
The MySQL Ecosystem @ GitHub 2015
samlambert
242
12k
Learning to Love Humans: Emotional Interface Design
aarron
266
39k
Scaling GitHub
holman
456
140k
Building a Modern Day E-commerce SEO Strategy
aleyda
15
6.3k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
67
38k
Imperfection Machines: The Place of Print at Facebook
scottboms
257
12k
Faster Mobile Websites
deanohume
296
30k
The Art of Programming - Codeland 2020
erikaheidi
40
12k
GraphQLとの向き合い方2022年版
quramy
28
12k
Fashionably flexible responsive web design (full day workshop)
malarkey
397
65k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3k
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Ϩεϙ ϯγϒσβΠϯΛϚελʔ. Տᬒ༤հ. גࣜձࣾϦοΫςϨίϜ.
͓͠·͍