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

Peepable paging - potatotips#14

Peepable paging - potatotips#14

Tips of peepable paging and introduce myself

Shintaro Kaneko

February 18, 2015
Tweet

More Decks by Shintaro Kaneko

Other Decks in Programming

Transcript

  1. potatotips#14
    Shintaro Kaneko

    View full-size slide

  2. Facebook: shintaro.kaneko
    Twitter: @kaneshinth
    GitHub: @kaneshin
    ۚࢠ৻ଠ࿠ 4IJOUBSP,BOFLP

    ɾגࣜձࣾΤ΢ϨΧ
    ɾJ04"OESPJE8FCΤϯδχΞ
    ΦϯϥΠϯσʔςΟϯάαʔϏεʮQBJSTʯͷ։ൃΛ
    ͍ͯͯ͠ɺ࠷ۙ͸8FCΛ୲౰͍ͯ͠·͢ɻ
    Ί͖ͬΓ(Pݴޠ͹͔ΓͰ։ൃ͍ͯ͠·͢ɻ
    ࣾ಺ษڧձ΋͍Ζ͍Ζ΍͍ͬͯ·͢ɻ
    ݸਓͰ͸ͨ·ʹ਺ཧܭը๏ͱ͍͏෼໺ͷϓϩάϥϜ
    Λॻ͍ͨΓ͍ͯ͠·͢ɻ਺ֶͰ͢ɻ

    View full-size slide

  3. ‣ 3FBMNʹ͍ͭͯߟ࡯ʢ෼ʣ
    ‣ ϝϞϦϦιʔεޮ཰ԽͷͨΊͷQSPUPDPMʢ෼ʣ
    ‣ 1FFQBCMFQBHJOHͷখखઌςΫʢ෼ʣ
    ‣ $PSF"OJNBUPSʹ͍ͭͯʢ෼ʣ
    ‣ 9DPEFͷςϯϓϨʔτʢ෼ʣ
    ‣ J1IPOFը໘Λ.BDʹදࣔʢ෼ʣ
    ‣ 4%8FC*NBHFͱ'BTU*NBHF$BDIFͷ૊Έ߹Θͤʢ෼ʣ
    ‣ ,FO#VSOT7JFX4MJEFTIPXʢ෼ʣ
    5JQT

    View full-size slide

  4. ‣ ਺ֶͷߦྻΛྫͱͯ͠
    ‣ ෦Լ͔ΒʮͦΕ5JQT͡Όͳ͍ͬ͢ͶʔʯͱݴΘΕͨ
    ‣ ͳͷͰɺ΍Ί·ͨ͠
    ‣ ͜ͷ5JQTͰݴ͍͔ͨͬͨ͜ͱ
    ‣ جఈΫϥεΛ࡞ΔલʹɺQSPUPDPMΛߟྀ͠·͠ΐ͏
    ‣ ແҋʹجఈΫϥεΛ࡞Δͳ
    ຊ౰͸ʮϝϞϦϦιʔεޮ཰ԽͷͨΊͷQSPUPDPMʯΛ΍Γ͔ͨͬͨ

    View full-size slide

  5. 1FFQBCMFQBHJOHͷখखઌςΫ
    1FFQBCMFQBHJOHUFDIOJRVFXJUI4DSPMM7JFX

    View full-size slide

  6. 1FFQBCMFQBHJOH

    View full-size slide

  7. ‣ উखʹݴ༿Λ࡞Γ·ͨ͠ɻ଄ޠͰ͢ɻ
    ‣ ΧλΧφʹ͢Δͱʮϐʔύϒϧϖʔδϯάʯ
    ‣ QFFQBCMFQFFQBCMF
    ‣ QFFQͷ͖ͧݟ͢Δ BCMFͰ͖Δ
    ‣ ͷ͖ͧݟϖʔδϯάʂ
    1FFQBCMFQBHJOH

    View full-size slide

  8. 1FFQBCMFQBHJOH
    Peeped!

    View full-size slide

  9. νϥݟͤ͞Δ͚ͩͳͷʹ
    ࣮૷͸ͪΐ͍໘౗

    View full-size slide

  10. طग़
    Τ΢ϨΧϒϩάΑΖ͘͠ʂ
    ʢٕज़Ҏ֎΋͋ΔΑʣ

    View full-size slide

  11. ࣮૷ํ๏Λ
    ϒϩάهࣄʹ͍ͯ͠·͢
    Τ΢ϨΧϒϩάΑΖ͘͠ʂ
    ʢٕज़Ҏ֎΋͋ΔΑʣ

    View full-size slide

  12. ϥΫ͍ͨ͠ʂʂ

    View full-size slide

  13. ؆୯ͳ࣮૷ํ๏ͷ঺հ

    View full-size slide

  14. 1 override func viewDidLoad() {
    2 super.viewDidLoad()
    3 self.scrollView.userInteractionEnabled = false
    4 self.collectionView.addGestureRecognizer(
    5 self.scrollView.panGestureRecognizer)
    6 self.scrollView.delegate = self
    7 }
    8
    9 func scrollViewDidScroll(scrollView: UIScrollView) {
    10 self.collectionView.contentOffset = self.scrollView.contentOffset
    11 }

    View full-size slide

  15. ͜Ε͚ͩʂʂ

    View full-size slide

  16. %FNP
    খωλɿJ1IPOFը໘Λ.BDʹදࣔʢ෼ʣ
    ʢ͕࣌ؒ͋Ε͹ʣ

    View full-size slide

  17. ࣮૷ղઆ
    ղઆ͢Δ·Ͱ΋ͳ͘γϯϓϧͰ͕͢

    View full-size slide

  18. 1 override func viewDidLoad() {
    2 super.viewDidLoad()
    3 self.scrollView.userInteractionEnabled = false
    4 self.collectionView.addGestureRecognizer(
    5 self.scrollView.panGestureRecognizer)
    6 self.scrollView.delegate = self
    7 }
    8
    9 func scrollViewDidScroll(scrollView: UIScrollView) {
    10 self.collectionView.contentOffset = self.scrollView.contentOffset
    11 }

    View full-size slide

  19. 1 override func viewDidLoad() {
    2 super.viewDidLoad()
    3 self.scrollView.userInteractionEnabled = false
    4 self.collectionView.addGestureRecognizer(
    5 self.scrollView.panGestureRecognizer)
    6 self.scrollView.delegate = self
    7 }
    8
    9 func scrollViewDidScroll(scrollView: UIScrollView) {
    10 self.collectionView.contentOffset = self.scrollView.contentOffset
    11 }
    4DSPMM7JFXΛ൓Ԡͤ͞ͳ͘͢Δ

    View full-size slide

  20. 1 override func viewDidLoad() {
    2 super.viewDidLoad()
    3 self.scrollView.userInteractionEnabled = false
    4 self.collectionView.addGestureRecognizer(
    5 self.scrollView.panGestureRecognizer)
    6 self.scrollView.delegate = self
    7 }
    8
    9 func scrollViewDidScroll(scrollView: UIScrollView) {
    10 self.collectionView.contentOffset = self.scrollView.contentOffset
    11 }
    4DSPMM7JFXͷ(FTUVSFʹ͢Δ

    View full-size slide

  21. 1 override func viewDidLoad() {
    2 super.viewDidLoad()
    3 self.scrollView.userInteractionEnabled = false
    4 self.collectionView.addGestureRecognizer(
    5 self.scrollView.panGestureRecognizer)
    6 self.scrollView.delegate = self
    7 }
    8
    9 func scrollViewDidScroll(scrollView: UIScrollView) {
    10 self.collectionView.contentOffset = self.scrollView.contentOffset
    11 }
    4DSPMM7JFXʹ%FMFHBUFΛηοτ͠
    $PMMFDUJPO7JFXΛϋϯυϦϯά

    View full-size slide

  22. ‣ ͍ͬ͢͝؆୯ʹνϥݟϖʔδϯάͷ࣮૷͕Մೳ
    ‣ ஫ҙ఺
    ‣ 4DSPMM7JFXͷ%FMFHBUFϝιουͰ୯७ʹ୅ೖ͍ͯ͠ΔͷͰ
    ڍಈ͕ո͘͠ͳΓ·͢ʢௐ੔͍ͯͩ͘͠͞ʣ
    ‣ ී௨ʹ࢖͏෼ʹ͸΄΅ؾʹͳΒͳ͍Ͱ͢
    1FFQBCMFQBHJOH·ͱΊ

    View full-size slide

  23. Thank you!
    Τ΢ϨΧͰ͸αʔϏεΛ੒௕ͤ͞Δ
    ΤϯδχΞืूதͰ͢ʂ

    View full-size slide