--- title: 屁孩限定:iOS Playgrounds on iPad tags: 簡報 slideOptions: --- ## iOS Playgrounds on iPad --- ##### Present by: 游諭 ![](https://i.imgur.com/YLc5o0A.jpg =500x350) ---- ## whoami ![](https://avatars3.githubusercontent.com/u/42088295?s=460&v=4 =200x200) 游諭: iOS, C, Swift ![](https://www.codewars.com/users/ytyubox/badges/large) Github: [ytyubox](https://github.com/ytyubox/iOSCamp_2019) lifecycle phases : iOSJob_Will_Load() --- ## Agenda 1. 學習 3. PlayGrounds 4. 傳道者 --- ## 小時候的我們學什麼? - 語言 <span>- 英日文、法德文、俄泰文<!-- .element: class="fragment" data-fragment-index="1" --></span> - 才藝 <span>- 彈鋼琴、踢足球、講笑話<!-- .element: class="fragment" data-fragment-index="2" --></span> - 技能 <span>- 修東西、跑業務、寫程式?<!-- .element: class="fragment" data-fragment-index="3" --></span> --- ### 先來看幾則新聞 ---- ### 聯合報 - 國中及高中必修「程式設計」 108年課綱規畫將國中及高中必修納入「程式設計」,國小擬將生活科技領域獨立出來,....,現職資訊教師研習內容也具未來性,包括資訊科學教法、演算法等。[^1]. note: [^1]: 108課綱程式納國高中必修 老師準備好了沒? 聯合新聞網 https://udn.com/news/story/11320/2923169 ---- ### 數位時代 - 程式教育將納入課綱,會不會寫程式有這麼重要嗎? 並非人人都適合當程式設計師。程式教育應分為兩個階段,一個是啟蒙期,一個是天賦發展期。在國中小階段應屬於啟蒙期。...。即使不當程式設計師,在領域知識之外,具備與程式設計師溝通的能力是孩子未來的競爭力。 [^2] > 所以啟蒙期的課程要讓孩子不害怕程式、覺得寫程式有趣、甚至樂在其中。 note: [^2]: 程式教育將納入課綱,會不會寫程式有這麼重要嗎? https://www.bnext.com.tw/article/46116/coding-programmer-scratch ---- ## 十二年國教學生五大能力: 問題解決的能力 生活美學思考能力 數位跨域整合能力 獨立思辨能力 團隊合作能力 --- # Swift PlayGrounds - iPad App Introduction - Default Books - My Books - Be a Publisher - Localizing text --- ![](https://i.imgur.com/jtznJnV.png =800x) 1. 內文區 2. 讀者練習區 3. Live View 即時互動區 4. 提示區 ---- ## DEMO ---- ![](https://i.imgur.com/RyFfY0x.png) Typical Teaching — Syntax ---- ![](https://i.imgur.com/qffP9Mb.png) Typical Teaching — Algorithms and Data Structure ---- ## Learner learned.🍻 --- # My Books ---- File Content ![](https://i.imgur.com/MpWjC7w.png) Pages, plists, Sources ---- ## Author ![](https://i.imgur.com/4JJ45xL.png) Swift Playgrounds Author Template ---- Project content ![](https://i.imgur.com/kAG4hHd.png) note: ```swift // AppDelegate.swift @UIApplicationMain class AppDelegate: LiveViewHost.AppDelegate { override func setUpLiveView() -> PlaygroundLiveViewable { return Book_Sources.instantiateLiveView() } } ``` --- # Be a Publisher ---- JSON Apple can read ```json= { "title": “WWDC Photo Filters", "publisherName": "Holly and Grace", "feedIdentifier": "io.github.WWDCPhotoFilters", "contactURL": "mailto:example@example.com", "formatVersion": "1.0", "documents": [...] } ``` ---- Web Host Github repoName: UserName.github.io ![](https://i.imgur.com/zUxTtVg.png) note: hyperLink to Subscribe: `https://developer.apple.com/ul/sp0?url=MY_FEEDJSON_URL"` --- # Localizing 接地氣 ---- Audience target ![](https://i.imgur.com/ioBvg92.png) adult v.s. Kids --- Files Types to Localize ![](https://i.imgur.com/hqchCSf.png =600x) ```= *.strings //MD 對應的內文 *.stringsdict //簡易字典 *.plist //XML, 標題、提示區塊 *.html //分鏡動畫 Localized assets //圖片等等 ``` note: NSLocalizedString() 圖片使用底圖,並且使用程式圖層動態顯示文字 More information http://developer.apple.com/go/?id=string-resources --- # Review > 對學習者而言, > 後續的發展才是更根本的問題 > [name=潘文忠] ---- > 程式語言就像 > 一般口說的語言一樣, > 只是協助溝通的工具 > [name=凌帠的管理世界] --- # Q&A note: 參考資料: https://developer.apple.com/videos/play/wwdc2016/408 Create Your Own Swift Playgrounds Subscription - WWDC 2018 - Videos - Apple Developer https://developer.apple.com/videos/play/wwdc2018/413/ Localizing Content for Swift Playgrounds - WWDC 2017 - Videos - Apple Developer https://developer.apple.com/videos/play/wwdc2017/410/ Swift Playgrounds Author Template https://developer.apple.com/download/more/?=Swift%20Playgrounds%20Author%20Template Swift Playgrounds | Apple Developer Documentation https://developer.apple.com/documentation/swift_playgrounds 不得不知,程式設計納入新課綱 – High課知識圈 http://blog.hdtedu.com/?p=178 uraimo/Awesome-Swift-Playgrounds/ A List of Awesome Swift Playgrounds https://github.com/uraimo/Awesome-Swift-Playgrounds https://github.com/lennet/image-filtering https://github.com/andyshep/CoreDataPlaygrounds https://github.com/sshrpe/TDDSwiftPlayground https://github.com/sammyd/2017AtSwift_Concurrency https://github.com/dfreniche/modern-core-data-playground https://github.com/cfdrake/swift-dsl-example https://github.com/marciok/katan https://github.com/ogulcan/SwiftRegEx https://github.com/AndrejKolar/NetworkStack https://github.com/jstart/Swiftly-Typed-Resources https://github.com/rectalogic/KVOPlayground https://github.com/liuyubobobo/Swift-NSDate-Tutorial https://github.com/MacMark/SwiftAndC https://github.com/ndethore/swift-memory-management https://github.com/ndethore/swift-memory-management