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

View 系ライブラリに関する悩み

View 系ライブラリに関する悩み

関西モバイルアプリ研究会 #12
http://kanmoba.connpass.com/event/28411/

USAMI Kosuke

March 30, 2016
Tweet

More Decks by USAMI Kosuke

Other Decks in Programming

Transcript

  1. ϥΠϒϥϦͷͬ͘͟Γ෼ྨ » Model ܥʢLogic ܥʣ » View ܥʢUI ܥʣ »

    ʢ෼ྨͮ͠Β͍΋ͷ΋͋Δ͚Ͳɺ͜͜Ͱ͸ؾʹ͠ͳ͍ʣ
  2. Model ܥ » DI » Data Converter (JSON / XML

    / ...) » Database » Network
  3. View ܥ » ඪ४ͷྨࣅͷಠࣗϥΠϒϥϦ » PagerViewController ෩ / Alert ෩

    / ... » ಠࣗύʔπʢ·ͨ͸ผͷ OS ෩ύʔπʣ » HUD / Drawer / PagerTabStrip / ...
  4. αʔυύʔςΟϥΠϒϥϦΛ୳͢ » Refresh Control ͷϥΠϒϥϦ͸ͨ͘͞Μ͋Δ » UIViewController + UITableView /

    UIScrollView Ͱ࢖͑Δ » ͔͠͠ɾɾɾ » ͲΕ΋ Refresh Control Λ UIScrollView ʹ addSubView ͢Δ » ϨΠΞ΢τΛϥΠϒϥϦ಺෦ͰܾΊ͍ͯΔ
  5. ଞͷ໰୊ » Refresh Control ͷϥΠϒϥϦͷଞͷࣄྫ » UIScrollViewDelegate ͷ࣮૷ͷதͰ hogehoge ϝιουΛݺ΂

    » Ͱ΋໨తͷ delegate ͸ UITableViewDelegate Ͱ΋͋Δ » ͦͷϥΠϒϥϦͷཁٻʹ͋ΘͤΔͱ delegate Λࣗ༝ʹઃܭͰ͖ͳ͍