Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AutoLayoutのデバッグを試みる

9d1961575e45a8286cdde5f86dbba312?s=47 akatsuki174
October 14, 2016

 AutoLayoutのデバッグを試みる

2016/10/14(金)
iOS Creators' Meetup vol.2資料

9d1961575e45a8286cdde5f86dbba312?s=128

akatsuki174

October 14, 2016
Tweet

Transcript

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

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

    SlideShare, Github, SpeakerDeck →akatsuki174
  3. Έͳ͞Μ͜Μͳ৔໘ ͋Γ·ͤΜ͔ʁ

  4. AutoLayoutͰΤϥʔ

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

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

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

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

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

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

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

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

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

  14. ࡞੒ํ๏

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

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

  17. ͢Δͱ

  18. ͓͞Β͍σϞ

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

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

  21. ͓͠·͍