Slide 1

Slide 1 text

AutoLayoutͷσόοάΛ ࢼΈΔ @akatsuki174

Slide 2

Slide 2 text

ࣗݾ঺հ • ਢ౻ຘ • ΦΠγοΫεגࣜձࣾͷiOSΤϯδχΞ • ͜ͷษڧձͷओ࠵Ͱ͢ • Twitter, Qiita, SlideShare, Github, SpeakerDeck →akatsuki174

Slide 3

Slide 3 text

Έͳ͞Μ͜Μͳ৔໘ ͋Γ·ͤΜ͔ʁ

Slide 4

Slide 4 text

AutoLayoutͰΤϥʔ

Slide 5

Slide 5 text

ࠓ೔ͷςʔϚ AutoLayoutͰࠔͬͨ࣌ͷ ରॲ๏Λ਎ʹ͚ͭΔ

Slide 6

Slide 6 text

ৄ͍͠ࢿྉ ʢ̎ʣ,ʢ̏ʣ΋ʢͦͷ͏ͪɺؾ͕޲͍ͨ࣌ʹʣॻ ͘༧ఆͰ͢ɻ ࠓճ঺հ͢Δͷ͸ʢ̍ʣͷҰ෦Ͱ͢ɻ

Slide 7

Slide 7 text

ࠓճѻ͏μϝ੍໿ hoge…UILabelͷ੍໿ ɾLeadingSpace = 100 ɾWidth = 300 ɾTailingSpace = 100

Slide 8

Slide 8 text

ͪΐͬͱͣͭݟ͍͖ͯ·͠ΐ͏

Slide 9

Slide 9 text

“͜ͷத͔Β༧ظͤ͵੍໿Λ ݟ͚ͭͯ௚ͯ͠Ͷ”

Slide 10

Slide 10 text

UIView-Encapsulated-Layout-xxx ʹγεςϜ͕ࣗಈੜ੒੍ͨ͠໿ 1ͭΊͷ੍໿ͱ໌Β͔ʹίϯϑϦΫτ →ਫฏํ޲ͷ੍໿͕ոͦ͠͏

Slide 11

Slide 11 text

“੍໿શ෦कΕͳ͍͔Β ͜ͷ੍໿औΓআ͍ͱ͍ͨΑ”

Slide 12

Slide 12 text

“UIViewAlertForUnsatisfiableConstra intsͷγϯϘϦοΫϒϨʔΫϙΠϯτ Λ࡞ͬͯΈͯͶ”

Slide 13

Slide 13 text

γϯϘϦοΫϒϨʔΫϙΠϯτ ʹಛఆͷ৚݅ʹϚονͨ࣌͠ʹ ॲཧΛετοϓͯ͘͠ΕΔ

Slide 14

Slide 14 text

࡞੒ํ๏

Slide 15

Slide 15 text

࣮ߦ Viewͷ֊૚ߏ଄Λ஌Δ͜ͱ͕Ͱ͖Δ

Slide 16

Slide 16 text

͞Βʹ ͜ΜͳίϚϯυΛ࣮ߦ͠·͢

Slide 17

Slide 17 text

͢Δͱ

Slide 18

Slide 18 text

͓͞Β͍σϞ

Slide 19

Slide 19 text

͓͢͢Ίࢿྉ ɾAuto LayoutΨΠυ: σόοάʹ໾ཱͭ ώϯτ - Apple Developer https://developer.apple.com/jp/ documentation/UserExperience/ Conceptual/AutoLayoutGuide/ DebuggingTricksandTips/ DebuggingTricksandTips.html

Slide 20

Slide 20 text

͓͢͢Ίࢿྉ ɾΑ͘Θ͔ΔAutoLayout iOSϨεϙ ϯγϒσβΠϯΛϚελʔ. Տᬒ༤հ. גࣜձࣾϦοΫςϨίϜ.

Slide 21

Slide 21 text

͓͠·͍