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

Live Renderingとの上手い付き合い方

Live Renderingとの上手い付き合い方

『Gotanda.mobile #2』 での登壇資料

WorldDownTown

March 23, 2017
Tweet

More Decks by WorldDownTown

Other Decks in Technology

Transcript

  1. 12

  2. σϝϦοτ! • ίʔυ্ ͱ Interface Builder ʹσβΠϯ࣮૷͕ࢄΒ͹ Δ… (@IBInspectable Λ࢖͍ग़͢ͱ༨ܭʹ)

    • ඳըॲཧ͕ແ͍ϨΠΞ΢τઃఆΛ draw(_:) ʹॻ͘ͷ͸ͪΐ ͬͱ… ↓ ίʔυଆʹدͤΑ͏! 14
  3. ίʔυͷϨΠΞ΢τΛ൓өͤ͞Δʹ͸ • awakeFromNib() • prepareForInterfaceBuilder() ͷ྆ํͰϨΠΞ΢τॲཧΛݺͿ If you want to

    share code between these methods, move that code to another method that you call 1 Xcode Help - http://help.apple.com/xcode/mac/8.0/#/devf60c1c514 18
  4. 19

  5. σόοά! 1.Break PointΛଧ͓ͬͯ͘ 2.Interface Builder Λ։͘ 3.Editor → Debug Selected

    Views 4.બ୒ͨ͠ViewͷϨϯμϦϯάॲཧ͕૸ Δ 5.Break PointͰॲཧ͕ࢭ·Δ 6.LLDBͰσόοά 20