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

Swift愛好会 #28

Swift愛好会 #28

2cec9566cc4f761ac87433573c31f1a0?s=128

Satoru Ohguchi

February 18, 2018
Tweet

More Decks by Satoru Ohguchi

Other Decks in Technology

Transcript

  1. J04ΞϓϦ։ൃͷॳา  SwiftѪ޷ձ #28

  2. ΨΠμϯε • SwiftѪ޷ձͷ৽͍͠औΓ૊Έͱͯ͠ɺॳ৺ऀϋϯ ζΦϯΛ΍ͬͯΈΑ͏ͱ͍͏͜ͱʹͳΓ·ͨ͠ɻ • ༗ࢤʹΑΔϋϯζΦϯͱͳΓ·͢ͷͰɺࢸΒͳ͍ ఺ͳͲ͋Δ͔΋͠Ε·ͤΜɻ͝ڠྗɺ͝ཧղ͍ͨͩ ͖·͢Α͏͓ئ͍͍ͨ͠·͢ɻ

  3. ࣗݾ঺հ • ࢘ձਐߦ໾ͷ঺հ • Reiko Goto(@burakon) • Satoru Ohguchi(@o_chicchi) •

    ϝϯλʔਞͷ঺հ • Ұݴͣͭࣗݾ঺հԼ͍͞ɻ
  4. ͸͡Ίʹ • ຊ೔ͷਐΊํ • αϯϓϧϓϩάϥϜΛ׬੒͢Δ͜ͱΛΰʔϧͱ͠·͢ɻ • ࠷ॳʹ֓ཁͳͲΛઆ໌͠·͢ɻ • ͻͱ·ͱ·Γຖʹઆ໌ɺ࣮ࡍ΍ͬͯ௖͘ͷ܁Γฦ͠Ͱ͢ɻ •

    ਵ࣌ɺ࣭໰͍ͯͩ͘͠͞ɻ • ૢ࡞ͷ෼͔Βͳ͍఺ͳͲ͸ɺϝϯλʔʹϔϧϓΛٻΊͯ Լ͍͞ɻ • άϧʔϓͰॿ͚߹͍ͳ͕ΒਐΊ͍͚ͯͨͩΔ͜ͱ΋ظ଴͠ ͍ͯ·͢ɻ
  5. άϧʔϓ୯ҐͰࣗݾ঺հ • ໊͓લɺχοΫωʔϜͰ΋Α͍Ͱ͢ɻ • ֶੜ? ࣾձਓ? • ;ͩΜ΍͍ͬͯΔ͜ͱ(࢓ࣄͷ͜ͱͱ͔ɺઐ߈ͷ͜ ͱͱ͔) •

    SwiftҎ֎ͷݴޠͷܦݧͱɺSwiftͷܦݧ
  6. ࢀՃऀΞϯέʔτ(1) •ֶੜͰ͋Δ •ए͍ࣾձਓͰ͋Δ •΋͏ए͘ͳ͍ࣾձਓͰ͋Δ •·ͩ·ͩݩؾͳ೥دΓͰ͋Δ

  7. ࢀՃऀΞϯέʔτ(2) • ࢲ͸ɺ·ͬͨ͘ͷॳ৺ऀͰɺMacΛ৮Δͷ΋ɺϓ ϩάϥϜ͢Δͷ΋ॳΊͯͩɻ(͓͓ΉͶ1೥ະຬ) • ଞͷݴޠͰͷϓϩάϥϛϯάܦݧ͸͋Δ(ઙͯ͘΋ Մ)ɺiOSͷϓϩάϥϜΛॻ͍ͯΈ͍͔ͨΒɺࠓ೔͸ དྷͯΈͨɻ • ΞϓϦΛ࡞ͬͯΈͨͯ͘ɺॻ੶ͳͲͰֶश͍ͯ͠

    Δ͕ɺͳ͔ͳ͔शಘʹࢸΒͣɺۤ࿑͍ͯ͠Δɻ
  8. ࢀՃऀΞϯέʔτ(3) •Apple Developer Program ʹ •ࢀՃ͍ͯ͠Δ(ొ࿥͍ͯ͠Δ) •ࢀՃ͍ͯ͠ͳ͍(ొ࿥͍ͯ͠ͳ͍)

  9. ࿩͞ͳ͍͜ͱ • Swiftͷϓϩάϥϛϯά͸গ͚͔ͩ͠͠΍Γ·ͤΜɻ • Storyboard ΋গ͚͔ͩ͠͠΍Γ·ͤΜɻ • ڽͬͨϨΠΞ΢τ΍ɺਂ͍ϓϩάϥϛϯάʹ͍ͭͯ ͸ѻ͍·ͤΜɻ •

    ઃܭख๏ͱ͍ͬͨ͜ͱʹ͸৮Ε·ͤΜɻςετपล ͷίʔυ΋৮Ε·ͤΜɻ • ΞϓϦͷϦϦʔεʹ޲͚ͨొ࿥ํ๏ɺసૹํ๏ʹͭ ͍ͯ͸৮Ε·ͤΜɻ
  10. ϓϩάϥϛϯάֶशʹ͍ͭͯ

  11. ϓϩάϥϜΛश͏ಈػ • Կ͔࡞ͬͯΈ͍ͨαʔϏεɺΞϓϦ͕͋ͬͯɺͦ ͷͨΊʹֶश͢Δɻ • ब৬ɺస৬׆ಈʹ༗ར͔ͩΒɺֶशͯ͠༗རʹਐ Ί͍ͨɻ • Ͱ΋ɺαʔϏε΍ΞϓϦΛ׬੒ͤ͞Δ͜ͱ͕ॏཁ ͰɺʮJavaΛश͍ͬͯ·͢ʯͱ͍͏ΑΓɺ੒Ռ෺͕

    ͋Δ΄͏͕Α͍ɻ
  12. ϓϩάϥϛϯάݴޠʹ͍ͭͯ • Ͳͷݴޠ͔Βೖͬͯ΋ɺͲΕͰ΋͍͍ͱࢥ͏ɻͰ ΋ɺࠓ೔͸ɺSwiftɻSwift ͸ਪ঑Ͱ͖ΔɺΑ͘Ͱ͖ ͨݴޠͩͱࢥ͏ɻ • ಘҙͳݴޠΛɺ1ͭ࣋ͭ͜ͱ͕ॏཁɻಘҙͳݴޠΛ ෳ਺ʹͰ͖ͨΒɺͰ͖Δ͜ͱ͕޿͕Δɻ •

    1ͭͷݴޠΛशಘͰ͖Ε͹ɺଞͷݴޠʹ޿͍͛ͯ͘ ͜ͱ͸ɺͦΜͳʹ೉͘͠ͳ͍ɻ
  13. ϓϩάϥϛϯάֶशͷίπ • ίϐʔ&ϖʔετ͚ͩͰ͸ɺͳ͔ͳֶ͔श͸೉͍͠ɻ • ࣮ࡍʹɺλΠϓͯ͠ɺಈ͖Λ֬ೝ͠ͳ͕Β΍Δͷ͕ Α͍ɻ • ͳͥɺ͜͏ಈ͘ͷ͔ɺϩδοΫ͕Ͳ͏ͳ͍ͬͯΔͷ ͔ɺཧղͯ͠ਐΊΔ͜ͱ͕ॏཁɻࢴʹॻ͍ͯΈͨΓɺ ੔ཧͯ͠ΈͨΓɻ

    • ޠֶͱҰॹͰগͣͭ͠Ͱ΋ຖ೔ɺຊಡΜͩΓɺ৮Ε ͨΓ͢Δ͜ͱ͕ਐาʹܨ͕Δɻ
  14. ݸਓతʹ͸… • ϓϩάϥϛϯά͸ɺࠓޙɺখֶੜͷΧϦΩϡϥϜʹ ೖ͖ͬͯͯ޿͕͍ͬͯ͘͜ͱ͕༧૝͞ΕΔɻجຊ஌ ࣝͷྖҬʹۙ͘ͳ͍ͬͯ͘ͱࢥ͏ɻ • ΞϓϦΛ࡞ͬͨΓɺશੈքʹϦϦʔεͰ͖ͨΓ͢Δ ࢓૊Έ͸໘ന͍ɻपล஌ࣝ͸͍Ζ͍ΖඞཁͰ͕͢ɺ νϟϨϯδ͢ΔՁ஋͸͋Γ·͢ɻ •

    ੲ͔Βɺίϯϐϡʔλʔ͕޷͖ͳਓͱͯ͠͸ɺίϯ ϐϡʔλʔ΍ϓϩάϥϛϯά͕ɺ޷͖ʹͳͬͯ͘Ε Δਓ͕ҰਓͰ΋૿͑ͨΒخ͍͠ɻ
  15. ΞϓϦΛϦϦʔε͢Δ্Ͱͷ੍໿

  16. ΞϓϦΛϦϦʔε͢Δ্Ͱͷ੍໿ࣄ߲(1) •ϦϦʔεʹ͸৹͕ࠪ͋Γ·͢ɻ •ΨΠυϥΠϯ •https://developer.apple.com/app-store/review/guidelines/jp/ • ܦݧଇ • ؆୯ͳΞϓϦ͸৹ࠪʹ௨Βͳ͍͜ͱ͕͋Γ·͢ɻ • SNSͰͷγΣΞػೳΛ෇͚ΔͳͲɺ޻෉͕ඞཁͰ͢ɻ

    • ஶ࡞ݖ • ը૾΍ԻָͳͲΛ࢖༻͢Δ৔߹͸ɺݖརʹ஫ҙ͢Δඞཁ͕͋Γ·͢ɻ • ΞϓϦͷλΠτϧ໊΋ؚΊͯؾΛ͚ͭΔඞཁ͕͋Γ·͢ɻ
  17. ΞϓϦΛϦϦʔε͢Δ্Ͱͷ੍໿ࣄ߲(2) • iOS11޲͚ʹ࡞Δ৔߹ɺiOS11͕αϙʔτ͞Ε͍ͯ Δ୺຤શͯͰਖ਼ৗʹಈ࡞͢Δඞཁ͕͋Γ·͢ɻ • ྫ͑͹ɺiPhone5SҎ্Ͱಈ࡞͢Δඞཁ͕͋Γ·͢ɻը໘ αΠζ΋શͯαϙʔτ͞ΕΔඞཁ͕͋Γ·͢ɻ • Apple Developer

    Program ΁ͷࢀՃ͕ඞཁͰ͢ɻ • ೥ؒͰɺ1ສԁલޙ͔͔Γ·͕͢ɺϓϩάϥϜͷࢀՃ͕ ඞཁͰ͢ɻ
  18. ࡞ΔϓϩάϥϜͷΞΠσΟΞ • ϓϩάϥϜΞΠσΟΞ͸ɺϦϦʔεͷཁ݅΋౿·͑ ͯɺߟ͑ͨ΄͏͕͍͍ͱࢥ͏ɻ • खॻ͖ͰɺΞΠσΟΞΛॻ͍ͯΈͯɺͦͷ͋ͱɺ ը໘ભҠΛ૝૾ͯ͠Έͯɺ؆୯ͳϑϩʔΛॻ͍ͯɺ ϓϩάϥϜʹམͱͤΔ͔ߟ͑Δͱɺ͏·͍͖͘΍͢ ͍ɻ •

    ΞΠσΟΞͷ࣌఺Ͱɺܦݧऀʹฉ͘ͷ΋ΞϦͩͱ ࢥ͏ɻੋඇɺࠓճͷ৔ͳͲΛར༻ͯ͠Լ͍͞ɻ
  19. Xcodeͷॳظઃఆ

  20. XcodeΛىಈ͢Δ • ΞϓϦέʔγϣϯ → Xcode ͱબΜͰىಈ

  21. ઃఆը໘Λબ୒ w 9DPEFˠ1SFGFSFODFTͱબΜͰىಈ

  22. Xcodeͷॳظઃఆ(1) • Accounts Λબ୒͢Δɻ

  23. Xcodeͷॳظઃఆ(1) • ࠨԼʹ͋ΔʮʴʯΛબ୒͢Δɻ

  24. Xcodeͷॳظઃఆ(1) • Apple ID Λબ୒͠ɺContinue Λબ୒͢Δɻ

  25. Xcodeͷॳظઃఆ(1) • AppleIDͷΞΧ΢ϯτΛઃఆ͠ɺSign In Λબ୒͢Δɻ

  26. Xcodeͷॳظઃఆ(2) •ߦදࣔΛग़͢ Text Editing ͷதͷ Line Number Λબ୒͢Δɻ

  27. Xcodeͷॳظઃఆ(3) w %PVCMF$MJDL/BWJHBUJPOΛઃఆ͢Δɻ

  28. Hello World Λग़ͯ͠ΈΔ

  29. ϓϩδΣΫτΛ࡞੒͢Δ • File → New → Project

  30. ΞϓϦͷλΠϓΛબ୒͢Δ • Single View App → Next Λબ୒

  31. ϓϩδΣΫτͷඞཁࣄ߲Λઃఆ •ҎԼͷΑ͏ʹهೖͯ͠ɺNext Λબ୒ɻ

  32. อ؅ઌΛબ୒ • อ؅৔ॴΛઃఆͯ͠ɺʮCreateʯΛબ୒͢Δɻ

  33. Storyboard Λબ୒ •Xcode͕։͘ͷͰɺStoryboard Λબ୒

  34. SafeAreaΛબ୒ •Safe Area Λબ୒͢Δ

  35. Hello World ͷϥϕϧΛ഑ஔ͢Δ • Xcode ͷӈԼʹ͋Δը໘ͷը໘Ͱɺʮshow the object libraryʯΛબ୒ •

    Filter ʹ Label ͱೖྗ • Label ͕දࣔ͞ΕΔ͜ͱΛ֬ೝ
  36. Hello World ͷϥϕϧΛ഑ஔ͢Δ

  37. Hello World ʹจࣈྻΛॻ͖׵͑Δ

  38. ੍໿Λઃఆ͢Δ

  39. ԼهͷΑ͏ʹͳ͍ͬͯΔ͜ͱΛ֬ೝ

  40. Ϗϧυ࣮ͯ͠ߦͯ͠ΈΔ • iPhoneX ͷγϛϡϨʔλʔΛબΜͰʮ⾣ʯΛબ୒͢Δɻ

  41. Playground Λىಈ͢Δ

  42. Playground • ௚༁͢Δͱɺ༡ͼ৔ͱ͍͏ҙຯͰɺίʔυͷ࿅श Λ͢Δʹ͸࠷దͳπʔϧɻ • Swift ͷίʔυΛͪΐͬͱ֬ೝ͍ͨ͠ͱ͍͏࣌ʹ ͸ɺ׆༻͠·͠ΐ͏ɻ

  43. ىಈํ๏ • File → New → Playground

  44. ىಈํ๏ •iOS → Blank → Next ͱબ୒͢Δɻ

  45. ىಈํ๏ •อ؅৔ॴΛઃఆͯ͠ɺʮCreateʯΛબ୒

  46. ىಈํ๏ • ҎԼͷΑ͏ʹىಈ͢Δ

  47. Swift ͷओͳॻ͖ํ

  48. ม਺ͱఆ਺ • ม਺ • ஋ΛهԱ͢ΔͨΊͷശͷΑ͏ͳ΋ͷ • ఆ਺ • ஋ΛهԱ͢ΔശͷΑ͏ͳ΋ͷɺ͋ͱ͔ΒมߋͰ͖ͳ͍ ม਺ͷܕʹ͸ɺओʹɺ

    ҎԼͷΑ͏ͳ΋ͷ͕͋Δɻ Intܕ Floatܕ Doubleܕ Stringܕ Boolܕ
  49. ܕਪ࿦ •ϓϩάϥϜͷจ຺͔Β҉໧తʹܕΛܾఆͯ͘͠ΕΔ •ܕΛΈ͍ͨͱ͖͸ɺ type(of: ม਺໊)

  50. ม਺΍ܕͰؾΛ͚ͭΔϙΠϯτ • ఆ਺͸஋ͷ࠶୅ೖ͸Ͱ͖ͳ͍ • let Λ࢖ͬͨ΋ͷ͸࠶୅ೖͰ͖ͳ͍ • ҧ͏ܕͷ஋͸ೖΕΔ͜ͱ͕Ͱ͖ͳ͍

  51. Optional • ม਺ͷ஋͕ɺnil Ͱ͋Δ͜ͱͱɺจࣈྻͷ ”” ΍ɺม਺ ͕ɺ0 Ͱ͋Δ͜ͱ͸ҟͳΔɻ • SwiftͰ͸ɺOptionalܕͱͯ͠ɺ”?”Λ࢖ͬͯ໌ࣔ͢Δɻ

    • ໌֬ͳཧ༝͕͋Δͱ͖ͷΈ࢖͍·͠ΐ͏ɻ 8 /774 5007 32 2 010 07.2
  52. ഑ྻ •ҎԼͷΑ͏ʹهड़͢Δ •஋ΛॳظԽ͢Δ৔߹͸ɺ[] ͷؒʹ஋Λฒ΂Δ

  53. ؔ਺ •ఆٛํ๏ •ίʔυྫ . ( 1 : 2 ,)-., >

  54. Ϋϥε w ҎԼʹαϯϓϧΛࣔ͢

  55. ܧঝ •ҎԼʹαϯϓϧΛࣔ͠·͢ɻ •class Ϋϥε: εʔύʔΫϥε { } ͷΑ͏ʹهड़͢ Δɻ

  56. ·ͱΊ •࣌ؒͷؔ܎ͰɺऔΓ্͍͛ͯͳ͍͜ͱ͕ଟ਺͋Γ·͢ɻ • Switchจ • forจ • whileจ • ߏ଄ମ

    • είʔϓ • Ψʔυ • ϓϩτίϧ •…ͳͲͳͲ •Swiftͷॻ੶΍ɺAppleͷυΩϡϝϯτΛੋඇಡΜͰΈͯԼ͍͞ɻ
  57. ΫΠζΞϓϦ

  58. ૉࡐͷμ΢ϯϩʔυ • ΫΠζͷ໰୊ͷcsvٴͼɺը૾Λ༻ҙͨ͠ͷͰɺμ ΢ϯϩʔυ͓ئ͍͠·͢ɻ

  59. Xcode Ͱ৽͍͠ϓϩδΣΫτΛ։͘

  60. શମͷྲྀΕͷઆ໌ • ࠓճͷΞϓϦͷશମతͳྲྀΕΛҎԼʹࣔ͠·͢ɻ ? ?

  61. 4UPSZ#PBSE

  62. ը໘ͷૉࡐΛొ࿥͢Δ •ը໘ͷૉࡐΛ഑ஔ͢Δɻ

  63. ViewControllerͷ഑ஔ • StoryBoard Λબ୒ͯ͠ɺදࣔ͠ɺViewController Λ഑ஔ͢Δɻ

  64. ֤ը໘༻ͷίʔυΛ४උ w 'JMFΛબ୒͠·͢ɻ

  65. ֤ը໘༻ͷίʔυΛ४උ w $PDPB5PVDIΛબ୒͢Δ

  66. w ΫϥεΛࢦఆ͠·͢ɻ2VJ[7JFX$POUSPMMFSͱࢦఆ͢Δɻ ֤ը໘༻ͷίʔυΛ४උ

  67. ֤ը໘༻ͷίʔυΛ४උ w ʮ$SFBUFʯΛબ୒͠·͢ɻ

  68. ֤ը໘༻ͷίʔυΛ४උ w ಉ༷ʹɺ3FTVMU7JFX$POUSPMMFSΛ࡞੒͠·͢ɻ

  69. $VTUPN$MBTTͷࢦఆ w ֤ετʔϦʔϘʔυʹࢦఆ͠·͢ɻ

  70. $VTUPN$MBTTͷࢦఆ w ಉ༷ʹɺ3FTVMU7JFX$POUSPMMFS΋ࢦఆ

  71. ෦඼഑ஔ

  72. શମ׬੒ਤ

  73. τοϓը໘ w *NBHF7JFXͱ#VUUPOΛ഑ஔ͠·͢ɻ

  74. ΫΠζදࣔը໘ w ҎԼ഑ஔ͠·͢ɻ w ϥϕϧ͇ w Ϙλϯ͇ w UBHΛઃఆ w

    *NBHF7JFXº
  75. ݁Ռදࣔը໘ w ҎԼΛ഑ஔ͠·͢ɻ w *NBHF7JFX w ϥϕϧ w Ϙλϯ

  76. ֤ը໘ͷඥ෇͚ w ελʔτϘλϯ͔Βɺ 2VJ[7JFX$POUSPMMFS ΁Ή͔ͬͯɺTFHVF Λઃఆ͢Δɻ

  77. ը໘ͱͷඥ෇͚ w 2VJ[7JFX$POUSPMMFS ͔Βɺ 3FTVMU7JFX$POUSPMMFS ʹ޲͔ͬͯɺTFHVF Λઃఆ͢Δɻ

  78. ը໘ͱͷඥ෇͚ w *EFOUJpFSΛఆٛ͢Δ

  79. 2VJ[7JFX$POUSPMMFSͷιʔεͱͷඥ෇͚

  80. 2VJ[7JFX$POUSPMMFSͷιʔεͱͷඥ෇͚

  81. 3FTVMU7JFX$POUSPMMFSͷιʔεͱͷඥ෇͚

  82. ϓϩάϥϛϯά

  83. ม਺Λఆٛ // ໰୊Λ֨ೲ var csvArray:[String] = [] // औΓग़ͨ͠໰୊Λ֨ೲ var

    questionArray:[String] = [] // ม਺ var questionCount = 0 // ग़୊਺ var correctCount = 0 // ਖ਼ղ // ఆ਺ let total = 3 // ग़୊਺ let waitQuestion = 0.8 // දࣔͷִؒ
  84. ໰୊ΛDTW͔Β഑ྻʹ // CSVϑΝΠϧͷಡΈࠐΈ func loadCSV(filename : String)->[String] { // ฦ٫஋ͷॳظԽ

    var csvStr:[String] = [] // CSVΛಡΈࠐΜͰArrayʹ if let csvPath = Bundle.main.path(forResource: filename, ofType: "csv") { do { var csvData = try String(contentsOfFile: csvPath, ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹencoding: String.Encoding.utf8) csvData = csvData.replacingOccurrences(of: "\n", with: "") csvStr = csvData.components(separatedBy: .newlines) } catch let error as NSError { print(error.localizedDescription) } } return csvStr }
  85. ໰୊දࣔ // ໰୊දࣔ func nextProblem() { // questionArrayͷॳظԽ questionArray.removeAll(keepingCapacity: true)

    if questionCount < total { // questionArrayʹ৽ن໰୊Λ֨ೲ questionArray = csvArray[questionCount].components(separatedBy: ",") // දࣔ಺༰Ληοτ quizNumberLabel.text = "ୈ\(questionCount+1)໰" quizQuestion.text = questionArray[0] uiButton1.setTitle(questionArray[2], for: .normal) uiButton2.setTitle(questionArray[3], for: .normal) uiButton3.setTitle(questionArray[4], for: .normal) uiButton4.setTitle(questionArray[5], for: .normal) } else { // ໰୊Λશͯදࣔͨ͠ޙͷॲཧ(ޙͰهड़) } } }
  86. ճ౴Λબ୒ͨ͠Β൑ఆ // ਖ਼ޡ൑ఆ @IBAction func btnAction(_ sender: UIButton) { //

    ਖ਼ղͱϘλϯͷλά൪߸͕ಉ͡ͳΒਖ਼ղ if sender.tag == Int(questionArray[1]) { answerImage.image = UIImage(named: "correct.png") correctCount += 1 } else { answerImage.image = UIImage(named: "incorrect.png") } // ճ౴දࣔͷ༗ޮԽ(0.8ඵؒ) answerImage.isHidden = false DispatchQueue.main.asyncAfter(deadline: .now() + waitQuestion) { self.answerImage.isHidden = true } // ࣍ͷ໰୊จݺͼग़͠ questionCount += 1 nextProblem() }
  87. ը໘ભҠΛهड़ w 4FRVFΛ࢖ͬͯ஋Λ౉͢ͷͰ౉͢஋Λఆٛ w ը໘ભҠΛ͢Δ // Segue Ͱ஋Λ౉͢ override func

    prepare(for segue: UIStoryboardSegue, sender: Any?) { let sVC: ResultViewController = (segue.destination as? ResultViewController)! sVC.correct = correctCount } // Storyboard Segue ͷ Identifier ΛҾ਺ʹఆٛͯ͠ը໘ભҠ DispatchQueue.main.asyncAfter(deadline: .now() + waitQuestion) { self.performSegue(withIdentifier: "toResultViewController", sender: nil) }
  88. 2VJ[ͷWJFX%JE-PBEΛهड़ // ը໘දࣔ׬ྃޙʹಈ͘ϝιου override func viewDidLoad() { super.viewDidLoad() // ໰୊ͷಡΈࠐΈ

    csvArray = loadCSV(filename: "loveswift") // ը໘ͷॳظԽ answerImage.isHidden = true // ໰୊දࣔ nextProblem() }
  89. ը໘Λ໭ΔఆٛΛ͢Δ ViewControllerʹҎԼɺ௥ه͠·͢ɻ @IBAction func unWindSegue(_ sender: UIStoryboardSegue) { print("topwindow") }

  90. 4UPSZCPBSE্Ͱ໭ΔఆٛΛ͢Δ w VO8JOE4FRVFͱ݁ͼ͚ͭΔ

  91. Ϗϧυ • iPhoneX ͷγϛϡϨʔλʔΛબΜͰʮ⾣ʯΛબ୒ ͢Δɻ

  92. Τϥʔͷ֬ೝํ๏ w ը໘ͷԼ෦ʹҎԼͷ૭Λදࣔͤ͞Δ͜ͱͰɺΤϥʔΛ֬ೝ Ͱ͖·͢ɻ

  93. ׬੒Ͱ͖·͔ͨ͠

  94. ֶशΛଓ͚͍ͯ͘ʹ͸

  95. ॻ੶

  96. UFSBUBJM w ࠔͬͨΒɺUFSBUBJMͰฉ͍ͯΈΔɻ w Ͱɺ."/"#*:"ͱ͍͏Πϕϯτ͕͋Δͦ͏Ͱ͢ɻ

  97. ษڧձ • SwiftѪ޷ձ • SwiftϏΪφʔζ • AKIBA.swift • ے೑.swift •

    Ikebukuro.swift
  98. ΧϯϑΝϨϯε wUSZ4XJGU wJ04%$

  99. 5IBOLZPV