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. Facebook: shintaro.kaneko Twitter: @kaneshinth GitHub: @kaneshin ۚࢠ৻ଠ࿠ 4IJOUBSP,BOFLP ɾגࣜձࣾΤ΢ϨΧ ɾJ04"OESPJE8FCΤϯδχΞ

    ΦϯϥΠϯσʔςΟϯάαʔϏεʮQBJSTʯͷ։ൃΛ ͍ͯͯ͠ɺ࠷ۙ͸8FCΛ୲౰͍ͯ͠·͢ɻ Ί͖ͬΓ(Pݴޠ͹͔ΓͰ։ൃ͍ͯ͠·͢ɻ ࣾ಺ษڧձ΋͍Ζ͍Ζ΍͍ͬͯ·͢ɻ ݸਓͰ͸ͨ·ʹ਺ཧܭը๏ͱ͍͏෼໺ͷϓϩάϥϜ Λॻ͍ͨΓ͍ͯ͠·͢ɻ਺ֶͰ͢ɻ
  2. ‣ 3FBMNʹ͍ͭͯߟ࡯ʢ෼ʣ ‣ ϝϞϦϦιʔεޮ཰ԽͷͨΊͷQSPUPDPMʢ෼ʣ ‣ 1FFQBCMFQBHJOHͷখखઌςΫʢ෼ʣ ‣ $PSF"OJNBUPSʹ͍ͭͯʢ෼ʣ ‣ 9DPEFͷςϯϓϨʔτʢ෼ʣ

    ‣ J1IPOFը໘Λ.BDʹදࣔʢ෼ʣ ‣ 4%8FC*NBHFͱ'BTU*NBHF$BDIFͷ૊Έ߹Θͤʢ෼ʣ ‣ ,FO#VSOT7JFX 4MJEFTIPXʢ෼ʣ 5JQT
  3. 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 }
  4. 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 }
  5. 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Λ൓Ԡͤ͞ͳ͘͢Δ
  6. 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ʹ͢Δ
  7. 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ΛϋϯυϦϯά