<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ericwugo on Medium]]></title>
        <description><![CDATA[Stories by Ericwugo on Medium]]></description>
        <link>https://medium.com/@ericwugo?source=rss-79bc6e7c7a36------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dlCM53lTRz7hEZ9LJtSyhA.jpeg</url>
            <title>Stories by Ericwugo on Medium</title>
            <link>https://medium.com/@ericwugo?source=rss-79bc6e7c7a36------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 00:17:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ericwugo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[(密碼 顯示 前兩碼 ) App 的解鎖畫面(passcode)]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E5%AF%86%E7%A2%BC-%E9%A1%AF%E7%A4%BA-%E5%89%8D%E5%85%A9%E7%A2%BC-app-%E7%9A%84%E8%A7%A3%E9%8E%96%E7%95%AB%E9%9D%A2-passcode-958260d79b7e?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/958260d79b7e</guid>
            <category><![CDATA[彼得潘的-swift-ios-app-開發教室]]></category>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Sat, 12 Sep 2020 12:23:06 GMT</pubDate>
            <atom:updated>2020-09-12T12:23:06.411Z</atom:updated>
            <content:encoded><![CDATA[<p>本次作業，模擬 密碼 輸入功能，總共要輸入 六 位數字密碼，系統會顯示前兩碼數字 ，後面四位數字 會用 圖形 加密 顯示 ！</p><p>主要功能如下 ：<br>1. 密碼 <strong>部分顯示</strong> 與 <strong>部分隱藏</strong> 的功能<br>2. 密碼輸入錯誤，系統出現 <strong>震動畫面</strong>，並清除密碼<br>3. 驗證密碼正確與否的 警訊</p><p>主畫面如下 ：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AF5hES20Q365E9UUEBgSPw.jpeg" /></figure><p>重點心得 ：<br>1. // 以下是將 String 取出 數值字元 並放入 text 屬性的方法 ！！！我自己想出來的招喔 ！呵呵 ！ 不過，這應該是很常見的運用啦 ！</p><p><strong>let</strong> c1 = PassWordTyped.index(PassWordTyped.startIndex, offsetBy: 0)<br>FivethCharacter.text = “\(PassWordTyped[c1])”<br>2. 將 按鍵輸入的 數字 利用 String.append (數值) 變成字串，之後進行密碼正確與否的比對，很重要 ！<br>3. 利用 CABasicAnimation 進行 View 的 震動 同時清除 密碼 ，是很 Cool 的功能，感謝學長姐的 程式碼 參考 ！</p><p>成果如下 ：(正確密碼是 123698)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*Pm_9ApuwTG5SxcQq6MwCOw.gif" /></figure><p>程式碼如下 ： (請用 XCode 12 Beta 版開啟 ！)</p><p><a href="https://github.com/ericwugo/passwordUnlockEricApp1">ericwugo/passwordUnlockEricApp1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=958260d79b7e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E5%AF%86%E7%A2%BC-%E9%A1%AF%E7%A4%BA-%E5%89%8D%E5%85%A9%E7%A2%BC-app-%E7%9A%84%E8%A7%A3%E9%8E%96%E7%95%AB%E9%9D%A2-passcode-958260d79b7e">(密碼 顯示 前兩碼 ) App 的解鎖畫面(passcode)</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(惡搞 87 ) 計算機 App]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E6%83%A1%E6%90%9E-87-%E8%A8%88%E7%AE%97%E6%A9%9F-app-5ec530aa09db?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ec530aa09db</guid>
            <category><![CDATA[彼得潘的-swift-ios-app-開發教室]]></category>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Wed, 09 Sep 2020 10:44:59 GMT</pubDate>
            <atom:updated>2020-09-09T10:44:59.343Z</atom:updated>
            <content:encoded><![CDATA[<p>計算機 App 的功能如下 ：<br>1. 加減乘除 四則運算<br>2.百分比<br>3.按鈕變色<br>4.顯示 運算 符號<br>5.取小數點 後 7 位<br>6.連續運算<br>7.倒退鍵<br>8.正負值 切換 運算<br>9. (惡搞 87 數值) 判斷與顯示</p><p>本作業沒有畫面切換，重點在於 模擬 使用者 輸入邏輯 的運算判斷 之程式撰寫，主要建構畫面如下 ：(請參考程式碼中詳細的註解)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbY8k8YG0smEjjH0RyWYjg.jpeg" /></figure><p>在 按鈕 變色 的設定 是在 storyboard 的 State Config = Highlighted 的 Background 設定，我還 傻傻的 想要 寫程式 控制 按鈕的 touch issue ，卡住了一下下，感謝 彼得潘 的提醒 ！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*VPCYeh3QEU5T64hhSLp9PQ.jpeg" /></figure><p>惡搞 App 就是抓取運算值為 87 <br>經過運算，46980除以540與 3 乘以 29 的唯一解答只有「87」，<br>沒有其他答案<br>在網路中「87」與台語「pe̍h-chhi」相似，所以罵人87也相當於罵他人是<a href="https://zh.wikipedia.org/wiki/%E7%99%BD%E7%99%A1">白癡</a>或北七（白癡之<a href="https://zh.wikipedia.org/wiki/%E5%8F%B0%E8%AA%9E">台語</a>發音）的意思 ! 哈哈哈 ！開心一下 ！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*t7GU8-MdWy5aO6jW5sbCgQ.jpeg" /></figure><p>成果如下 ：請參考</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/1*di7ezfEn9eYlRkaF69iQpg.gif" /></figure><p>程式碼如下 ：</p><p><a href="https://github.com/ericwugo/CalculateEricApp1">ericwugo/CalculateEricApp1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ec530aa09db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E6%83%A1%E6%90%9E-87-%E8%A8%88%E7%AE%97%E6%A9%9F-app-5ec530aa09db">(惡搞 87 ) 計算機 App</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(課程心得)彼得潘iOS App 程式設計]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E8%AA%B2%E7%A8%8B%E5%BF%83%E5%BE%97-%E5%BD%BC%E5%BE%97%E6%BD%98ios-app-%E7%A8%8B%E5%BC%8F%E8%A8%AD%E8%A8%88-a9d564590b4f?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9d564590b4f</guid>
            <category><![CDATA[彼得潘的-swift-ios-app-開發教室]]></category>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 14:22:58 GMT</pubDate>
            <atom:updated>2020-09-03T14:22:58.963Z</atom:updated>
            <content:encoded><![CDATA[<h4>能用一首歌的時間做 App 嗎 ？可以的 ！這很基本！</h4><h4><strong>期望大家，有為者亦若是 ！成為 傳說中的 “勇者 ！”</strong></h4><p>在沒上課之前，我高度質疑，能用一首歌的時間做出 App 嗎 ？上完課後，我完全信服，真的，我就用一首歌的時間，iOS App 就完成了 ！而且這還是最基本的練習而已 ！</p><p>寫程式，沒那樣困難，難的是心態 ，難的是沒有找到 入門的方法 與 沒有遇見 彼得潘 ！(一輩子的好朋友！)<br>在這邊上課，我找到了 正確的心態 與方法 (持續寫作業) ，還有 我找到 彼得潘 ！(遇到瓶頸時的 顧問 與 導師！)</p><ol><li>Trello 的應用 ：Peter 會把上課的講義，上課的錄影直接 PO 上網，隨時可以 Review</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1EdwgFxdqgbN4FZPw1c5FQ.jpeg" /></figure><p>2. Medium 寫作業 ：我們將不同主題的作業，發表在 Medium 上面，其中詳細記錄 開發步驟，參考文章，還有自己的心得</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mgSqwDLncoOpQXFqzqzUkw.jpeg" /></figure><p>3. 將自己程式碼發佈到 Github 提供同學能下載與參考</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vow2q-fT2MkG8FQhUKCPhQ.jpeg" /></figure><h3><strong>自我期許 ：</strong></h3><p>在寫程式的過程中，我覺得我頭腦很不好，尤其是大量的邏輯思維與運算，我腦袋就缺氧，很羨慕 同學發布的好作品，但，我認為，寫程式就是寫心態，我 勤能補拙 ，我熟能生巧，Practice makes perfect ! 每次寫作業，我都會大量參考 學長姐 的作品與程式碼，融會貫通並加以 吸星大法後，改版成我自己的版本，<strong>然後，在每段程式碼的後面，都加上非常詳細的心得註解與說明，一方面幫自己紀錄，另一方面幫助有興趣下載我程式碼的同學之理解！大家一起學習，如真的不行，咱們還有 彼得潘 ！</strong></p><p><strong>我認為，會寫程式 是一種 特異功能</strong>，練就此特異功能的 “勇者” ，無論在任何環境，都有不可取代的生存空間 ！<br>在不斷變遷的環境中，可立於 不敗 的地位 ！<br>而 iOS App 的技能，更是 特異功能 中的 特異功能 ！共勉之 ！ <br>期待我們可以早日 不用自宮 卻能 笑傲江湖 ！哈哈哈 ！</p><p>不知不覺中，我已發表了 19 篇文章 ，在寫本文的同時，我 又 完成了一個作業 “猜數字 App”，該作業會與本心得一起發表，持續寫作業是重要的武功心法！<br>而，本課程的結束 是 另一段旅程的開始 !<br>Peter 說 “寫作業是沒有期限的 ! ”，<br>我對自己說，我要完成 “<strong>彼得潘的 100 道 Swift iOS App 謎題</strong>” 並獲得傳說中 <strong>彼得潘手工打造，像鑽石恆久遠般，一張永流傳的獎狀一份，成為 傳說中的 “勇者” ！<br>哈哈哈 ！期望大家，有為者亦若是 ！</strong></p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84%E8%A9%A6%E7%85%89-%E5%8B%87%E8%80%85%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C-2080c5ef2110">彼得潘的 100 道 Swift iOS App 謎題</a></p><p>上面這張照片，“即將” 要換成下面這張照片啦 ！哈哈哈 ！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUHX1vjcwy0B6duKygXMEw.jpeg" /></figure><p>感謝 ！</p><p>我會持續的寫作業，並發表心得文章 ！<br>以 東西南北方都不敗 ！ 笑傲江湖啦 ！哈哈哈 ！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9d564590b4f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E8%AA%B2%E7%A8%8B%E5%BF%83%E5%BE%97-%E5%BD%BC%E5%BE%97%E6%BD%98ios-app-%E7%A8%8B%E5%BC%8F%E8%A8%AD%E8%A8%88-a9d564590b4f">(課程心得)彼得潘iOS App 程式設計</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(來個遊戲吧！) 猜數字 和 1A2B App]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E4%BE%86%E5%80%8B%E9%81%8A%E6%88%B2%E5%90%A7-%E7%8C%9C%E6%95%B8%E5%AD%97-%E5%92%8C-1a2b-app-ddf296c02fd1?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddf296c02fd1</guid>
            <category><![CDATA[彼得潘的-swift-ios-app-開發教室]]></category>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 14:18:07 GMT</pubDate>
            <atom:updated>2020-09-03T14:18:07.914Z</atom:updated>
            <content:encoded><![CDATA[<p>寫程式也可以 自娛娛人，非常有趣 ！ 本作業分為兩個版本 ：<br><strong> 1. Game 1 簡單版 ：</strong><br>猜 0~100 的一個整數，玩者有 6 次機會，比方 標準答案是 80，使用者第一次猜 10 時，顯示範圍為大於等於 11。當使用者接著猜 100 時，顯示範圍為 11 ~ 99<br><strong>2. Game2進階版：</strong><br>猜不重複數字的 4 位数 (數字可以 0 ~ 9)，依據使用者猜的數字，顯示幾 A 幾 B 的結果，A 前面的数字為位置與數字皆正確的個數，B 前面的數字為數字正確但位置不正確的個數。比方答案是 1234，當使用者猜 0132 時，顯示 1 A 2 B。當使用者猜 1253 時，顯示 2 A 1 B</p><p>程式的結構如下 ：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iAnRMa7Lc3zAX2o1CIuCwQ.jpeg" /></figure><p>Game1 的程式中，有一個 Declaration 亂數取得上限是 100 的整數寫法<br>random = Int(arc4random_uniform(100))</p><pre>func arc4random_uniform(_ __upper_bound: UInt32) -&gt; UInt32</pre><p>隨機數字，數字和字串之間的轉換 Int(numberTextField.text!) 是 文字轉型 整數的寫法，也是其中重點！</p><p>Game2 中 import GamePlayKit 是為了要運用 GKShuffledDistribution <br>這函數 ，下面英文中，我反黑的文字重點是 “fair randomization”就是公平的亂數原則 (下圖紅框中的 註記重點與說明 ！！！)，這是這個遊戲最大的應用重點</p><p>The behavior of a shuffled distribution is sometimes called <strong>“fair” randomization, because true randomness in games can result in extended “lucky streaks” or “unlucky streaks” for players. </strong>To create a shuffled distribution and use it to generate random numbers, use the methods defined by its superclass GKRandomDistribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0v4dcZfwbZDCppcVmXYx7g.jpeg" /></figure><p>再來就是判斷 1A2B 的邏輯思維 (請務必參考我詳細的註記與說明)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*63PMlLtsrmsWraIbgUKS3A.jpeg" /></figure><p>成果如下 ：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*zq7ziGEsxBt_MODZgQs81A.gif" /></figure><p>程式碼如下 ：</p><p><a href="https://github.com/ericwugo/guessNumberEricApp1">ericwugo/guessNumberEricApp1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddf296c02fd1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E4%BE%86%E5%80%8B%E9%81%8A%E6%88%B2%E5%90%A7-%E7%8C%9C%E6%95%B8%E5%AD%97-%E5%92%8C-1a2b-app-ddf296c02fd1">(來個遊戲吧！) 猜數字 和 1A2B App</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(經典 , 感謝 作業) ，訂飲料 App 上傳資料到後台，可編輯刪除]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E7%B6%93%E5%85%B8-%E6%84%9F%E8%AC%9D-%E4%BD%9C%E6%A5%AD-%E8%A8%82%E9%A3%B2%E6%96%99-app-%E4%B8%8A%E5%82%B3%E8%B3%87%E6%96%99%E5%88%B0%E5%BE%8C%E5%8F%B0-%E5%8F%AF%E7%B7%A8%E8%BC%AF%E5%88%AA%E9%99%A4-6e379a1ae16a?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e379a1ae16a</guid>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Mon, 31 Aug 2020 04:12:46 GMT</pubDate>
            <atom:updated>2020-08-31T04:12:46.651Z</atom:updated>
            <content:encoded><![CDATA[<h4>(經典 , 感謝 作業) ，訂飲料 App 上傳資料到後台，可編輯刪除</h4><p>本作業為 經典 (程式練習範圍很 管飯 (廣泛啦！哈哈哈)) ，必做 與 感謝 的 作業，大家要能練習啊！ ( 謝謝 Peter 請喝飲料 ! )<br>訂飲料 App ，其建置的步驟 與 練習 的程式技能 如下 ：(以下為我閱讀技術文章的紀錄還有領悟的程式碼)</p><p>1. 製作Google Sheet excel 表單來存放訂單資料，並 利用 SheetDB 來 create API 作為後續 APP 連結後的資料呈現</p><p><a href="https://sheetdb.io/">Google Sheets REST API, connect Google Spreadsheet with your site</a></p><p>2. 飲料 menu資料使用Property List存放在手機中，並利用程式解讀出來</p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%88%A9%E7%94%A8-propertylistdecoder-%E8%A7%A3%E6%9E%90-plist-e6410bc7b6c7">利用 PropertyListDecoder 解析 plist</a></p><p>3. 以Http methods GET、POST、PUT、DELETE，靠SheetDB提供的API來與Google Excel Sheet溝通</p><p><a href="https://medium.com/@penny.huang/swift-%E7%94%A8postman%E5%92%8Csheetdb%E7%B7%B4%E7%BF%92%E4%BD%BF%E7%94%A8restful-api-734736d644cd">[Swift]用Postman和SheetDB練習使用RESTful API</a></p><p>4. 利用 客製表格(table) 的 swipe action 來製作 刪除訂單與修改訂單的功能</p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%AE%A2%E8%A3%BD%E8%A1%A8%E6%A0%BC-table-%E7%9A%84-swipe-action-bed0a8bf7979">客製表格(table) 的 swipe action</a></p><p>5. 利用 Segue (畫面切換) 以及對應不同的 sender 觸發不同 prepare func (資料傳遞與運算) ，這是程式應用的重點</p><ul><li><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E6%95%99%E5%AE%A4/%E7%B0%A1%E6%98%93%E8%AA%AA%E6%98%8Excode%E4%B8%AD%E7%9A%84%E9%A1%AF%E7%A4%BA%E4%B8%8B%E4%B8%80%E5%80%8B%E7%95%AB%E9%9D%A2%E6%96%B9%E6%B3%95-%E7%94%B1%E7%A8%8B%E5%BC%8F%E8%A7%B8%E7%99%BC%E7%9A%84%E6%96%B9%E5%BC%8F-5d0e49e4ae9a">『簡易說明Xcode』顯示下一個畫面方法（由程式觸發的方式 — present）</a></li><li><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84%E8%A9%A6%E7%85%89-%E5%8B%87%E8%80%85%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C/%E5%88%A9%E7%94%A8-unwind-segue-%E5%B0%87%E8%A1%A8%E6%A0%BC%E9%81%B8%E6%93%87%E7%9A%84%E7%B5%90%E6%9E%9C%E5%9B%9E%E5%82%B3-app-%E5%8A%9F%E8%83%BD%E5%AF%A6%E4%BD%9C%E8%A7%A3%E5%AF%86-1-c66a731f9380">#68 利用 unwind segue 將表格選擇的結果回傳 - App 功能實作解密 1</a></li></ul><p>6. table, data source 與 extension delegate 的運用(透過 extension 擴充型別的功能)，撰寫 cell func 的資料 (在不同 class file 內 遵從 delegate 的運用) ，請參考 Peter 投影片25</p><p><a href="https://drive.google.com/file/d/1-bxrnWMy5CLsiU1mvV8wQF-z4umR_HWw/view">25_table，data source，extension.pdf</a></p><p>7. <strong>enum </strong>的 <strong>rawValue :<br></strong>配合rawValue定義 enum 的值，可以讓 enum 自帶有意義的資訊，如下圖。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*b4EhAm-AuLShgaIus641Qg.jpeg" /></figure><p>成果如下 ：</p><ol><li>主程式架構圖 ：分為訂單畫面 (Segue 畫面切換 and Prepare function資料之運算與傳遞)與 飲料(scroll view)畫面</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pzQ-0qLLSCnOuBWSlceskQ.jpeg" /></figure><p>2. 程式執行成果</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*PFgr6pG8If5BamMflL3dFg.gif" /></figure><p>3. 最後是 後台 Google Sheet 的 資料更新 與 畫面</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9BkIGEhsUTjfPHeLJfZZA.jpeg" /></figure><p>心得：</p><ol><li>本作業，參考了非常多的文章 與 學長姐 的程式碼 ，發現 不同 訂飲料 App 版本成果，各有其特點，其中以 利用 Segue (畫面切換) 以及對應不同的 sender 觸發不同 prepare func (資料傳遞與運算) 讓我有 很深刻 的領悟，unwind Segue 在不同畫面的切換的運用，是非常重要的設計架構！這在日後 App 的設計上，應會有很多雷同的運用 ！請注意下圖中紅匡與藍框的程式設計與說明 ！</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zm9vXbZUJzBkjCmkZ46Waw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tmcPpNmtHZzEzMVUQ5cCDw.jpeg" /></figure><p>2. 在我的程式碼中，每段程式，都有撰寫 我所 領悟 到的 詳細的心得註記，(感謝學長姐的 程式碼 ，讓我受益非淺 ！) ，希望 這些註記，對於 想了解 我的程式 的同學 ，能有所幫助，謝謝 ！<br>如有指教，也非常歡迎私訊我！謝謝 ！</p><p>3. 程式碼如下：</p><p><a href="https://github.com/ericwugo/GroupOrdersEricApp1">ericwugo/GroupOrdersEricApp1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e379a1ae16a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E7%B6%93%E5%85%B8-%E6%84%9F%E8%AC%9D-%E4%BD%9C%E6%A5%AD-%E8%A8%82%E9%A3%B2%E6%96%99-app-%E4%B8%8A%E5%82%B3%E8%B3%87%E6%96%99%E5%88%B0%E5%BE%8C%E5%8F%B0-%E5%8F%AF%E7%B7%A8%E8%BC%AF%E5%88%AA%E9%99%A4-6e379a1ae16a">(經典 , 感謝 作業) ，訂飲料 App 上傳資料到後台，可編輯刪除</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(Taiwan 天氣查詢) 串接第三方 API，解析 JSON 資料，轉換成自訂型別 後取出資料 並 運算 成有用 資訊 之顯示]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/taiwan-%E5%A4%A9%E6%B0%A3%E6%9F%A5%E8%A9%A2-%E4%B8%B2%E6%8E%A5%E7%AC%AC%E4%B8%89%E6%96%B9-api-%E8%A7%A3%E6%9E%90-json-%E8%B3%87%E6%96%99-%E8%BD%89%E6%8F%9B%E6%88%90%E8%87%AA%E8%A8%82%E5%9E%8B%E5%88%A5-%E5%BE%8C%E5%8F%96%E5%87%BA%E8%B3%87%E6%96%99-%E4%B8%A6-%E9%81%8B%E7%AE%97-%E6%88%90%E6%9C%89%E7%94%A8-%E8%B3%87%E8%A8%8A-%E4%B9%8B%E9%A1%AF%E7%A4%BA-25d648c7de38?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/25d648c7de38</guid>
            <category><![CDATA[彼得潘的-swift-ios-app-開發教室]]></category>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Sat, 22 Aug 2020 01:52:36 GMT</pubDate>
            <atom:updated>2020-08-22T01:52:36.758Z</atom:updated>
            <content:encoded><![CDATA[<p>學會應用 API 來設計 App ，將資料(JSON格式)轉接起來，並轉成有用的資訊(將 raw data 原始資料做運算)後的呈現，讓使用者一目了然，提升 App 應用價值，是非常重要技能 ！<br>步驟如下 ：<br>1. 申請 API KEY (很多國外的大型網站，都需要申請 API KEY ，有些要收費)本次應用的是 OpenWeather API(要將 API KEY 設定在程式中！)</p><p><a href="https://openweathermap.org/api">Weather API</a></p><p>2. 解讀 JSON 資料格式解讀 (利用 JSON Editor Online 解讀 API 格式)</p><p><a href="https://jsoneditoronline.org/#right=local.mexena&amp;left=local.gecure">JSON Editor Online - view, edit and format JSON online</a></p><p>3. 定義 struct 架構 ：<br>請留意 ： {} 以及 []，這兩者的定義方式是不同的，前者是結構 Dictionary，後者是陣列 Array(這是我苦思後的應用心得)，請查看下圖！其 Dictionary 的應用與很多學長姐的程式碼不同，且以 JSON 解出後的資料抓取格式也不同，請參考我程式碼中的註解</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4BE8sU1jM14o7D0HU8Kovg.jpeg" /></figure><p>4. 將原始資料(raw data)取出後的換算程式(把資料變成有用的資訊)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fnwt9EjG-wYkrRuu5bDgtw.jpeg" /></figure><p>成果如下 ：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*5w4PKu6O0QiPDsbr7TCMqw.gif" /></figure><p>心得如下 ：<br>1. 我花很多時間來了解 “解讀 API 的 JSON 格式的方法”，發現 定義 struct 時，使用 Array 與 Dictionary 是很重要的重點，並搭配 JSONDecoder 後資料抓取後的運算，才能呈現 有用的資訊，這是非常有價值的<br>2.本作業後，意猶未盡，也 啟發了 我想開發串接各種不同 API 的 APP ，想法非常多，或許日後能有機會朝此方面發展！感謝 學長姐 的程式碼 與 Peter所寫的詳細文章之參考 ！謝謝 ！</p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%88%A9%E7%94%A8-swift-4-%E7%9A%84-jsondecoder-%E5%92%8C-codable-%E8%A7%A3%E6%9E%90-json-%E5%92%8C%E7%94%9F%E6%88%90%E8%87%AA%E8%A8%82%E5%9E%8B%E5%88%A5%E8%B3%87%E6%96%99-ee793622629e">利用 JSONDecoder 把 JSON 轉換成自訂型別的資料</a></p><p>原始程式如下 ：(每段程式都有很詳細的註解與心得說明，請務必申請個人的 API KEY ! 喔 ！因為免費版的 KEY 會有查詢時間與次數的限制！)</p><p><a href="https://github.com/ericwugo/weatherAPI1">ericwugo/weatherAPI1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25d648c7de38" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/taiwan-%E5%A4%A9%E6%B0%A3%E6%9F%A5%E8%A9%A2-%E4%B8%B2%E6%8E%A5%E7%AC%AC%E4%B8%89%E6%96%B9-api-%E8%A7%A3%E6%9E%90-json-%E8%B3%87%E6%96%99-%E8%BD%89%E6%8F%9B%E6%88%90%E8%87%AA%E8%A8%82%E5%9E%8B%E5%88%A5-%E5%BE%8C%E5%8F%96%E5%87%BA%E8%B3%87%E6%96%99-%E4%B8%A6-%E9%81%8B%E7%AE%97-%E6%88%90%E6%9C%89%E7%94%A8-%E8%B3%87%E8%A8%8A-%E4%B9%8B%E9%A1%AF%E7%A4%BA-25d648c7de38">(Taiwan 天氣查詢) 串接第三方 API，解析 JSON 資料，轉換成自訂型別 後取出資料 並 運算 成有用 資訊 之顯示</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(My Notes) 實作 新增，讀取，刪除，修改 & 儲存資料的 App 且可上傳圖片，並設定必填欄位之 警告訊息]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/my-notes-%E5%AF%A6%E4%BD%9C-%E6%96%B0%E5%A2%9E-%E8%AE%80%E5%8F%96-%E5%88%AA%E9%99%A4-%E4%BF%AE%E6%94%B9-%E5%84%B2%E5%AD%98%E8%B3%87%E6%96%99%E7%9A%84-app-%E4%B8%94%E5%8F%AF%E4%B8%8A%E5%82%B3%E5%9C%96%E7%89%87-%E4%B8%A6%E8%A8%AD%E5%AE%9A%E5%BF%85%E5%A1%AB%E6%AC%84%E4%BD%8D%E4%B9%8B-%E8%AD%A6%E5%91%8A%E8%A8%8A%E6%81%AF-9f775ea1dc1b?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f775ea1dc1b</guid>
            <category><![CDATA[彼得潘的-swift-ios-app-開發教室]]></category>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Mon, 17 Aug 2020 08:15:26 GMT</pubDate>
            <atom:updated>2020-08-17T08:15:26.416Z</atom:updated>
            <content:encoded><![CDATA[<p>以一個簡易的記事本(My Notes)作為本 App 的主題，主要功能如下 ：<br>1. 新增，讀取，刪除，修改 &amp; 儲存資料的功能<br>2.上傳 照片庫 的圖片到此 My Notes App<br>3.設定必要填入欄位，如果沒填入，會出現警告訊息，且無法存資料</p><p>設置重點如下 ：<br>1. 設定兩個 TableViewController 分別作為 記事資料 Cell 的 新增，讀取，刪除，修改 &amp; 儲存資料的傳遞，資料的傳遞主要運用 unwind segue <br>2. 點選 Cell 資料後，將觸發 prepare func (我在此 func 寫的code 很重要，是作為資料的存擋)<br>3.新增 Struct 為 Codeable 型別 ，並撰寫資料讀取與寫入的語法<br>4.在必填欄位，應用 UIAlertController 與 UIAlertAction 出現沒填資料的警告訊息 ，並以 if else 判斷欄位是空值時，將無法存擋 (陣列 insert 的應用)<br>5.TableViewController遵從UIImagePickerControllerDelegate,UINavigationControllerDelegate主要是寫 imagePickerController 與 takePhoto action，將圖片從 photoLibrary (手機圖片庫給選上來)</p><p>主要架構畫面如下 ：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQ9hphg-fJs8C-UrbmsZkw.jpeg" /></figure><p>成果如下 ：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*m3I6r4gVlGqJPsf5C7PA_A.gif" /></figure><p>心得如下 ：<br>本次作業，除參考不少學長的程式碼外，再加上 Peter 上課所講imagePickerController與 UIAlertController 與 UIAlertAction 的功能後，進行改版，其 系統設置的細節與程式碼交替的邏輯運用，非常的多(畫面抓不完，請有興趣的同學，直接看程式碼的註解說明)，咱們都要能融會貫通的運用 ！請參考我在程式碼中所寫得詳細註解說明，如有問題，非常歡迎私訊我 討論！謝謝 ！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppE9GIsFI27dZH1xxAQKUQ.jpeg" /></figure><p>程式碼如下 ：</p><p><a href="https://github.com/ericwugo/unwindSegue">ericwugo/unwindSegue</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f775ea1dc1b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/my-notes-%E5%AF%A6%E4%BD%9C-%E6%96%B0%E5%A2%9E-%E8%AE%80%E5%8F%96-%E5%88%AA%E9%99%A4-%E4%BF%AE%E6%94%B9-%E5%84%B2%E5%AD%98%E8%B3%87%E6%96%99%E7%9A%84-app-%E4%B8%94%E5%8F%AF%E4%B8%8A%E5%82%B3%E5%9C%96%E7%89%87-%E4%B8%A6%E8%A8%AD%E5%AE%9A%E5%BF%85%E5%A1%AB%E6%AC%84%E4%BD%8D%E4%B9%8B-%E8%AD%A6%E5%91%8A%E8%A8%8A%E6%81%AF-9f775ea1dc1b">(My Notes) 實作 新增，讀取，刪除，修改 &amp; 儲存資料的 App 且可上傳圖片，並設定必填欄位之 警告訊息</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(冥想 Meditation App 致虛極，守靜篤) 實作 Table View 的基本功能]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E5%86%A5%E6%83%B3-meditation-app-%E8%87%B4%E8%99%9B%E6%A5%B5-%E5%AE%88%E9%9D%9C%E7%AF%A4-%E5%AF%A6%E4%BD%9C-table-view-%E7%9A%84%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-261dfed463a3?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/261dfed463a3</guid>
            <category><![CDATA[彼得潘的-swift-ios-app-開發教室]]></category>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Sat, 15 Aug 2020 06:42:30 GMT</pubDate>
            <atom:updated>2020-08-15T06:42:30.444Z</atom:updated>
            <content:encoded><![CDATA[<p>根據 Peter 上課所講的，學會 Table View ，那日後至少有 7成以上的iOS App設計工作，咱們可以得心應手，而之前玩 Static cells ，本次為進階 Dynamic Prototypes ，主要目為以下 Peter 所講的功能外，再加入 設計 View Header ，Disclosure Indicator，@IBSegueAction(頁面資料傳遞)，delegate (影片播放)</p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84%E8%A9%A6%E7%85%89-%E5%8B%87%E8%80%85%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C/51-%E5%AF%A6%E4%BD%9C-table-view-%E7%9A%84%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-8f52cc9d2bf1">#51 實作 Table View 的基本功能</a></p><p>本作業的 inspectors 設定與 swift file 相互搭配的設定細節，非常的多，務必要從之前作業中，逐漸累積相關的基本功力才行啊，重要畫面如下</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UuP9y5g9c-GtPdewJevJaQ.jpeg" /></figure><p>下一個頁面中，在Table View cell 的 inspectors設定對應不同 class 與 identifier 是設定重點</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*fbx7gQ0PiOgo5ncVGUrffQ.jpeg" /></figure><p>請參考 在每個 swift file 中，我寫得詳細註解 (希望能有所幫助！)<br>如有不明白的地方，歡迎私訊我！一起討論 ！謝謝 ！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dAVDjxoyV-f1oYRDgZ8atw.jpeg" /></figure><p>成果如下 ：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*TZPD54YHoNmKdk_EfuvqqQ.gif" /></figure><p>心得 ：<br>1.本次作業實做 TableView 的相關元件，也包含很多程式設計，是很好的綜合練習，務必要熟練，謹記於心中！<br>2.在程式設計之餘，冥想(meditation)是很好的放鬆與恢復原動力的方式，當咱們腦力用盡，就練練 道家所談的 “致虛極，守靜篤，萬物並作，吾以觀其復”，朝著下一個目標 訂飲料 App 邁進 ！</p><p>程式碼如下 ：</p><p><a href="https://github.com/ericwugo/tableView1">ericwugo/tableView1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=261dfed463a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E5%86%A5%E6%83%B3-meditation-app-%E8%87%B4%E8%99%9B%E6%A5%B5-%E5%AE%88%E9%9D%9C%E7%AF%A4-%E5%AF%A6%E4%BD%9C-table-view-%E7%9A%84%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-261dfed463a3">(冥想 Meditation App 致虛極，守靜篤) 實作 Table View 的基本功能</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[利用 mask 設計特別形狀的圖片 (靜坐冥想之光)]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E5%88%A9%E7%94%A8-mask-%E8%A8%AD%E8%A8%88%E7%89%B9%E5%88%A5%E5%BD%A2%E7%8B%80%E7%9A%84%E5%9C%96%E7%89%87-%E9%9D%9C%E5%9D%90%E5%86%A5%E6%83%B3%E4%B9%8B%E5%85%89-5d890d01bb79?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d890d01bb79</guid>
            <category><![CDATA[彼得潘的-swift-ios-app-開發教室]]></category>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Thu, 13 Aug 2020 05:33:04 GMT</pubDate>
            <atom:updated>2020-08-13T05:33:04.423Z</atom:updated>
            <content:encoded><![CDATA[<p>本作業為 ImageView的 mask 練習，利用 Playground 即可以完成，詳細步驟，請參考 Peter 文章</p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%88%A9%E7%94%A8-uiview-%E7%9A%84-mask-%E8%A8%AD%E8%A8%88%E7%89%B9%E5%88%A5%E5%BD%A2%E7%8B%80%E7%9A%84%E5%9C%96%E7%89%87-4e22cd7c3fbe">利用 UIView 的 mask 設計特別形狀的圖片</a></p><p>我遇到的問題是，當 網路上 抓取 的 兩張圖片 大小都不一樣，使用 mask 的效果是無法呈現出好效果的，因此 我用了 ImageView.frame 的屬性，來調整大小與位置，這樣勉強可以做出我要的效果，<br>要當 mask 的圖是 (超級大吧！)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*huEju5qZ8-EUWDJZGCSolw.png" /></figure><p>底圖是(超級小吧！哈哈 ！但我就是想把兩張圖合併 ！)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*p5PiDMmOE6UELPDsHYympg.jpeg" /></figure><p>程式碼解說與 成果如下 ：<br><strong>import</strong> UIKit</p><p><strong>import</strong> PlaygroundSupport</p><p><strong>let</strong> medImage = UIImage(named: “meditation.png”)</p><p><strong>let</strong> medImageView = UIImageView(image: medImage)</p><p><strong>let</strong> lightImage = UIImage(named: “light.jpeg”)</p><p><strong>let</strong> lightImageView = UIImageView(image: lightImage)</p><p>lightImageView.frame = CGRect(x: 0, y: 0, width: 600, height: 600)</p><p>medImageView.frame = CGRect(x: 15, y: 10, width: 600, height: 600)</p><p>//medImageView.frame = lightImageView.frame</p><p>lightImageView.mask = medImageView</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V37uA1IJ8RzHfQ3AXzyr6w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1TR1CmkMXp3JugbOISG98A.jpeg" /></figure><p>以下是靜坐冥想的好處，與大家分享 :</p><p><strong>(程式碼源源不絕 ！有如滔滔江水般的一直湧出！哈哈哈！)</strong></p><p>靜坐冥想能讓你的心跳減慢，驅除負面情緒，讓身體感覺平靜安詳。冥想是一種停止左腦活動，而讓右腦單獨活動的思維方式。冥想可以使人的思考清晰，情緒穩定，並且更有耐心。經常冥想可以強化我們的磁場、讓我們更喜樂、常可保持正面思考的態度、直覺力會明顯改善、清理「業力」(karma)，常靜坐的人心念較專注，更可以清晰明確的看到自己的目標，甚至創造奇蹟。</p><p>靜坐冥想的好處:放鬆身心、降低血壓、訓練自己專心、讓紛亂的腦子得到休息與充電、身體在靜坐時會自動進行修復工作。當人進入冥想狀態時，人的想像力、創造力與靈感便會源源不斷的涌出，此外對於事物的判斷力、理解力都會大幅提升，同時身心會呈現安定、愉快、心礦神怡的感覺。</p><p>靜坐冥想也會讓你的頭腦每天有一點時間休息一下，重新恢復活力，迎接嶄新的思想。其好處還包括提高自我警覺的意識，淨化心靈，控制情緒，掌控怒氣，掌握心智，消除緊張，消除腦中的混亂與障礙，增強記憶力與其他腦部功能 ！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d890d01bb79" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E5%88%A9%E7%94%A8-mask-%E8%A8%AD%E8%A8%88%E7%89%B9%E5%88%A5%E5%BD%A2%E7%8B%80%E7%9A%84%E5%9C%96%E7%89%87-%E9%9D%9C%E5%9D%90%E5%86%A5%E6%83%B3%E4%B9%8B%E5%85%89-5d890d01bb79">利用 mask 設計特別形狀的圖片 (靜坐冥想之光)</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(寧靜祈禱文)stack view + scroll view 與 delegate應用 — 分頁和圖片縮放 (有程式版)]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E5%AF%A7%E9%9D%9C%E7%A5%88%E7%A6%B1%E6%96%87-stack-view-scroll-view-%E8%88%87-delegate%E6%87%89%E7%94%A8-%E5%88%86%E9%A0%81%E5%92%8C%E5%9C%96%E7%89%87%E7%B8%AE%E6%94%BE-%E6%9C%89%E7%A8%8B%E5%BC%8F%E7%89%88-bc52eb1ba449?source=rss-79bc6e7c7a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc52eb1ba449</guid>
            <dc:creator><![CDATA[Ericwugo]]></dc:creator>
            <pubDate>Wed, 12 Aug 2020 13:18:21 GMT</pubDate>
            <atom:updated>2020-08-12T13:18:21.510Z</atom:updated>
            <content:encoded><![CDATA[<h4>(寧靜祈禱文)stack view + scroll view 與 delegate應用 — 分頁和圖片縮放 (有程式版)</h4><p>本次作業目標是以程式碼完成以下功能 (Delegate 運用)<br>1. 加入 Page Control 元件，當頁面滑動時，小圓點跟著滑動，反之亦然<br>2.讓使用者以手勢進行圖片縮放</p><p>詳細步驟說明，請參考 以下兩篇 Peter 文件 (看完後，仔細琢磨，就通了 ！)</p><ul><li><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84%E8%A9%A6%E7%85%89-%E5%8B%87%E8%80%85%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C/scroll-view-delegate-%E7%B7%B4%E7%BF%92-60e185298513">#76 scroll view delegate — 分頁和圖片縮放</a></li><li><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E9%9A%A8%E8%91%97%E6%8F%9B%E9%A0%81%E6%9B%B4%E6%96%B0%E7%9A%84-page-control-%E5%B0%8F%E5%9C%93%E9%BB%9E-24f631c1928c">隨著換頁更新的  page control 小圓點</a></li></ul><p>程式畫面說明如下 ：請參考下圖紅框中 的註解說明<br>view controller 要成為 scroll view 的 delegate 並實現 func scrollViewDidEndDecelerating(pageControl 小圓點滑動) 與 viewForZooming(圖片縮放) 的功能</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6M9nPQLRFE7BXW9PXXUrw.jpeg" /></figure><p>具體成果如下 ：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*zONocFmcCKcx6KGVOj-Jbg.gif" /></figure><p>心得：<br>1.再次感受到運用 delegate 的效果，尤其在撰寫 func 時的應用<br>2.在參考學長姐的程式碼時，有發現一些多餘的程式，我已改版，並在程式中加進了很詳細的註解說明，請有興趣的同學能比照參考，謝謝 ！</p><p>程式碼如下：</p><p><a href="https://github.com/ericwugo/scrollView1">ericwugo/scrollView1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc52eb1ba449" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E5%AF%A7%E9%9D%9C%E7%A5%88%E7%A6%B1%E6%96%87-stack-view-scroll-view-%E8%88%87-delegate%E6%87%89%E7%94%A8-%E5%88%86%E9%A0%81%E5%92%8C%E5%9C%96%E7%89%87%E7%B8%AE%E6%94%BE-%E6%9C%89%E7%A8%8B%E5%BC%8F%E7%89%88-bc52eb1ba449">(寧靜祈禱文)stack view + scroll view 與 delegate應用 — 分頁和圖片縮放 (有程式版)</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>