多次元宇宙と画面遷移

D72f33c62d4174992d1895ad1a3df9ab?s=47 haranicle
September 16, 2017

 多次元宇宙と画面遷移

D72f33c62d4174992d1895ad1a3df9ab?s=128

haranicle

September 16, 2017
Tweet

Transcript

  1. ଟ࣍ݩӉ஦ͱը໘ભҠ !IBSBOJDMF

  2. Ӊ஦ͬͯԿ

  3. զʑ͕͍Δੈք

  4. ະͩݟ͍͍ͩͤͯͳ͍ ͋Δཧ࿦ʹΑͬͯ ͢΂ͯܭࢉͰ͖Δ

  5. ࣍ݩͬͯԿ

  6. ࣗ༝౓

  7. Y

  8. Y Z

  9. Y Z [

  10. Y

  11. None
  12. Y [

  13. ਓ͕ؒ؍ଌͰ͖Δͷ͸ ࣍ݩ

  14. খ͍͞෺࣭ͷࢹ఺ʹͳΔͱ ߴ͍࣍ݩΛ೺ѲͰ͖Δ

  15. ෺࣭ͷ࠷খ୯ҐͰ͋Δૉཻࢠʹ ͍ͭͯܭࢉ͢Δͱʜ

  16. Ӊ஦ͬͯԿ࣍ݩ

  17. ౴͕͑ग़͍ͯͳ͍ ࣍ݩ͔΋͠Εͳ͍

  18. J04ΞϓϦ͸Կ࣍ݩ

  19. Ӊ஦ͱಉ༷ J04ΞϓϦʹ΋࣍ݩ͕͋Δ

  20. ίʔυϨϕϧͷ࣍ݩ J04ΞϓϦ͸Կ࣍ݩ

  21. ཧ࿦্ ίʔυϕʔεͷதͷม਺ͷݸ਺෼ ࣍ݩ͕ଘࡏ͢ΔՄೳੑ͕͋Δ

  22. ม਺ʹ͸ੜଘظ͕ؒ͋Δ J04ΞϓϦͱಉ͡
 ੜଘظؒͷ΋ͷ͚ͩߟ͑Δ

  23. w"QQ%FMFHBUFͷม਺ w3PPU7JFX$POUSPMMFSͷม਺ wγϯάϧτϯ͕͍࣋ͬͯΔม਺ ͜ΕΒͷݸ਺ΞϓϦͷ࣍ݩ

  24. ը໘ભҠͷ࣍ݩ J04ΞϓϦ͸Կ࣍ݩ

  25. ը໘ભҠͷछྨ

  26. Ϟʔμϧ

  27. υϦϧμ΢ϯ

  28. εΠον

  29. ϞʔμϧυϦϧμ΢ϯεΠον ͲΕ΋ભҠࣗମ͸࣍ݩ͚ͩͲ

  30. ෭࡞༻Λߟྀ͢Δͱ ը໘ભҠͷ࣍ݩ͸ ϞʔμϧυϦϧμ΢ϯεΠον

  31. J04ΞϓϦ͸ଟ͘ͷ࣍ݩΛ࣋ͭͷͰ 3PPU7JFX$POUSPMMFSεΠον ͡Όͳ͍ͱදݱ͖͠Εͳ͍

  32. 3PPU7JFX$POUSPMMFS͸ৗʹ $POUBJOFS7JFX$POUSPMMFS

  33. 3PPU7JFX$POUSPMMFS ͷ࣮૷

  34. class RootViewController: UIViewController { enum State { case splash case

    home } private var currentViewController: UIViewController? func switchState(to state: State) { if let vc = currentViewController { vc.willMove(toParentViewController: nil) vc.view.removeFromSuperview() vc.removeFromParentViewController() } switch state { case .splash: currentViewController = SplashViewController() case .home: currentViewController = homeNavigationViewController } addChildViewController(currentViewController!) view.addSubview(currentViewController!.view) currentViewController!.didMove(toParentViewController: self) } let homeNavigationViewController = UINavigationController(rootViewController: HomeViewController() } TUBUFʹԠͯ͡ DIJME7JFX$POUSPMMFSΛ εΠον͢Δ
  35. class RootViewController: UIViewController { enum State { case splash case

    home } private var currentViewController: UIViewController? func switchState(to state: State) { if let cvc = currentViewController { cvc.willMove(toParentViewController: nil) cvc.view.removeFromSuperview() cvc.removeFromParentViewController() } switch state { case .splash: currentViewController = SplashViewController() case .home: currentViewController = homeNavigationViewController } addChildViewController(currentViewController!) view.addSubview(currentViewController!.view) currentViewController!.didMove(toParentViewController: self) } let homeNavigationViewController = UINavigationController(rootViewController: HomeViewController()) } υϦϧμ΢ϯͷ֊૚Λҡ͍࣋ͨ͠ 7JFX$POUSPMMFS͸ εΠονͰഁغ͞Εͳ͍Α͏ʹ͢Δ
  36. class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? let rootViewController

    = RootViewController() func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { window = UIWindow() window?.rootViewController = rootViewController window?.makeKeyAndVisible() return true } func somethingHappens() { rootViewController.switchState(to: .home) }
 } 3PPU7JFX$POUSPMMFSΛ͓࣋ͬͯ͘ ద౰ͳλΠϛϯάͰTUBUFΛ੾Γସ͑Δ
  37. ΞϓϦͷ࣍ݩͷ੍ޚͱ 3PPU7JFX$POUSPMMFSͷ੍ޚʹ ࣏҆Λ

  38. ࣍ݩΛ௒͑ͨը໘ભҠ

  39. ྫ
 63-εΩʔϜύλʔϯ

  40. ͍·ίί

  41. ͍·ίί NZBQQEPTPNFUIJOH

  42. ͍·ίί ίί·Ͱ ભҠ͍ͤͨ͞ ໭ͬͨΒ ࠓ·Ͱͳ͔ͬͨը໘

  43. མͪண͍ͯ 3PPU7JFX$POUSPMMFSͷεΠον ͱ υϦϧμ΢ϯͷߏங

  44. rootViewController.switchState(to: .home) let vcList = [ FirstViewController(), SecondViewController() ] rootViewController.homeNavigationViewController.setViewControllers(

    vcList, animated: false) 3PPU7JFX$POUSPMMFSͷεΠον υϦϧμ΢ϯͷߏங υϦϧμ΢ϯͷ֊૚ҡ࣋ͨ͠7JFX$POUSPMMFS
  45. ྫ
 εʔύʔ໭Δύλʔϯ

  46. ͍·ίί

  47. ͍·ίί ίί·Ͱ໭Γ͍ͨ

  48. 6OXJOE4FHVFΛ࢖͏

  49. ໭Γઌͷ7JFX$POUSPMMFSʹ 6OXJOE4FHVFͷϝιουΛ ࣮૷͢Δ͚ͩ J04͕ը໘ભҠͷ֊૚Λۦ্͚͕ͬͯ ௚ۙͷ໭ΓઌΛݟ͚ͭͯ ભҠͯ͘͠ΕΔ

  50. ࣍ݩͱ஥ྑ͘ͳͬͯ ࠷ߴͷը໘ભҠϥΠϑΛ ָ͠΋͏

  51. None