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

Debugging To The Gate

Debugging To The Gate

at YUMEMI.swift #7 ~あつまれルーキーの森~

freddi(Yuki Aki)

May 15, 2020
Tweet

More Decks by freddi(Yuki Aki)

Other Decks in Technology

Transcript

  1. ϫΠʹ͍ͭͯ • freddi (@_ _ _freddi _ _ _) •

    ৽ଔ̎೥໨@ LINE Fukuoka • try! Swift ͱ͔ొஃͨ͠ • Tokyo, NYC 2019
  2. ʮ͔͚ͯ͠·͏ʯίʔυʢྫʣ • ͜ͷΫϥογϡόά͸ॻ͖ํʹىҼ static func showDialog(on viewController: UIViewController) { let

    viewController = DialogViewController() viewController.present(viewController, animated: true) }
  3. ࣮ࡍʹ͋ͬͨ΍ͭʢྫʣ • UIPageViewControllerͷϖʔδભҠ࣌ͷॲཧ extension PageViewController : UIPageViewControllerDataSource { func pageViewController(…,

    viewControllerBeforeViewController … { ... callWhenPageChanged() // ϖʔδ͕มΘͬͨΒݺͼ͍ͨॲཧ ... /*Կ͔͠ΒͷViewControllerΛreturn͢Δॲཧ*/ }
  4. Ͱ͖Δίʔυͷؒҧͬͨ࢖͍ํʢྫʣ • ਖ਼ղྫͷίʔυ͕ͪ͜Β extension PageViewController: UIPageViewControllerDelegate { // δΣενϟʔʹΑΔભҠ͕ऴΘͬͨ৔߹ʹݺ͹ΕΔ func

    pageViewController(… previousViewControllers: [UIViewController], transitionCompleted: Bool) { ... callWhenPageChanged() // ϖʔδ͕มΘͬͨΒݺͼ͍ͨॲཧ