<?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 Ethan Chen on Medium]]></title>
        <description><![CDATA[Stories by Ethan Chen on Medium]]></description>
        <link>https://medium.com/@nooobmaster?source=rss-f9666f2979f4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*W5fbfXGcrn08cIYmFhA6zQ.jpeg</url>
            <title>Stories by Ethan Chen on Medium</title>
            <link>https://medium.com/@nooobmaster?source=rss-f9666f2979f4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:58:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nooobmaster/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[快完成了]]></title>
            <link>https://nooobmaster.medium.com/%E5%BF%AB%E5%AE%8C%E6%88%90%E4%BA%86-5b4089c7e2d9?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b4089c7e2d9</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Fri, 24 May 2024 04:49:27 GMT</pubDate>
            <atom:updated>2024-05-24T04:49:27.104Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*4z3bGIBufY2fm7MCrRT_pQ.png" /></figure><p>在修完這個部分後，我鬆了一口氣，這意味著，功能以及呈現上，大致完成了，剩下我認為最最最重要的，就是修改外觀了，好的外觀跟配色，可以吸引用戶，引起興趣。</p><p>我知道這要花不少的時間，即便這是我擅長的項目，大概就要參考大量的資料吧，包含神明的設計。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b4089c7e2d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[反省]]></title>
            <link>https://nooobmaster.medium.com/%E5%8F%8D%E7%9C%81-250fd1d7cee9?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/250fd1d7cee9</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Thu, 18 Apr 2024 15:14:25 GMT</pubDate>
            <atom:updated>2024-04-18T15:14:25.378Z</atom:updated>
            <content:encoded><![CDATA[<p>昨晚嘗試了一下用GPT寫程式，網頁的話沒什麼問題，但是如果是Xcode的話，看起來很方便，但是我發現對於還沒有穩定基礎的我，這不是好的方式，我應該穩定看完彼得潘的教學影片。</p><p>不要操之過急，有時間就思考一下怎麼把兩種應用結合，讓流程變通順。前陣子小Ｄ才解開了我呼叫API的方法，我更應該好好思考我之前撈到的資料要怎麼去應用才對。我認為這些才是有價值的。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=250fd1d7cee9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS — 安裝Lottie pod設定]]></title>
            <link>https://nooobmaster.medium.com/ios-%E5%AE%89%E8%A3%9Dlottie-pod%E8%A8%AD%E5%AE%9A-0462903a2a79?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/0462903a2a79</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Sat, 13 Apr 2024 02:58:53 GMT</pubDate>
            <atom:updated>2024-04-13T02:58:53.997Z</atom:updated>
            <content:encoded><![CDATA[<h3>IOS — <strong>安裝Lottie pod設定</strong></h3><p>參考網址</p><p><a href="https://www.appcoda.com.tw/lottie-beginner-guide/">https://www.appcoda.com.tw/lottie-beginner-guide/</a></p><p>繼上次安裝完環境後，前往專案的資料夾</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-RMlQt4kXy-4z2SAvVQDGg.png" /></figure><p>No such module ‘Lottie’</p><p>這個錯誤是因為沒有從.xcworkspace 開啟</p><p>遇到錯誤</p><blockquote>Sandbox: rsync.samba(30530) deny(1) file-write-create /Users/ggt/Library/Developer/Xcode/DerivedData/countBoard-cqyepexsccfmtvbwzuuyvcnwqafh/Build/Products/Debug-iphoneos/countBoard.app/Frameworks/Lottie.framework/LottiePrivacyInfo.bundle</blockquote><p>最後是改設定解決</p><p>參考網址</p><p><a href="https://stackoverflow.com/questions/76590131/error-while-build-ios-app-in-xcode-sandbox-rsync-samba-13105-deny1-file-w">https://stackoverflow.com/questions/76590131/error-while-build-ios-app-in-xcode-sandbox-rsync-samba-13105-deny1-file-w</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0462903a2a79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS — 安裝Lottie]]></title>
            <link>https://nooobmaster.medium.com/%E5%AE%89%E8%A3%9Dlottie-0ac8a3ce5ef3?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ac8a3ce5ef3</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Sat, 13 Apr 2024 02:42:20 GMT</pubDate>
            <atom:updated>2024-04-13T02:43:33.870Z</atom:updated>
            <content:encoded><![CDATA[<p>打算在專案使用lottie，lottie是個動畫檔的格式，使用時，用json的格式載入，好處是容量小。不過如果要在Xcode專案裡面使用lottie檔案，要怎麼實作？</p><p>本來我查詢到的方式lottie官方網站的說明網頁</p><p><a href="https://lottiefiles.com/blog/working-with-lottie-animations/how-to-add-lottie-animation-ios-app-swift">https://lottiefiles.com/blog/working-with-lottie-animations/how-to-add-lottie-animation-ios-app-swift</a></p><p>裡面提到一段程式碼</p><p>import Lottie</p><p>如果貿然輸入會發現出現錯誤，因為我們必須先使用CocoaPods來安裝Lottie函式庫，依照下列指令 sudo gem install cocoapods</p><p>輸入到Terminal的指令列內，來產生<em>Podfile</em></p><p>pod init 這時候遇到錯誤訊息：</p><blockquote>The last version of drb (&gt;= 0) to support your Ruby &amp; RubyGems was 2.0.6. Try installing it with `gem install drb -v 2.0.6` and then running the current command again</blockquote><p>我們先嘗試輸入 gem install drb -v 2.0.6 來安裝環境，此時又遇到一個錯誤訊息，說我沒有權限</p><blockquote>You don’t have write permissions for the /Library/Ruby/Gems/2.6.0 directory.</blockquote><p>當系統說你沒有權限安裝，可以在指令後面加入 — user-install</p><p>參考網址</p><p><a href="https://wayou.github.io/2020/10/22/gem-install-%E6%97%B6%E6%9D%83%E9%99%90%E9%97%AE%E9%A2%98%E7%9A%84%E4%BF%AE%E6%AD%A3/">https://wayou.github.io/2020/10/22/gem-install-%E6%97%B6%E6%9D%83%E9%99%90%E9%97%AE%E9%A2%98%E7%9A%84%E4%BF%AE%E6%AD%A3/</a></p><p>當安裝完成後，再回頭去執行 sudo gem install cocoapods</p><p>總算能順利安裝，安裝pod後，可以輸入pod — version 確認版本，雖然花了很多時間在處理這些錯誤訊息，但之後就可以使用導入的Lottie檔案了。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ac8a3ce5ef3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS — Smash ACE (羽球計分板）]]></title>
            <link>https://nooobmaster.medium.com/ios-smash-ace-%E7%BE%BD%E7%90%83%E8%A8%88%E5%88%86%E6%9D%BF-ec8a0df5a143?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec8a0df5a143</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Fri, 12 Apr 2024 07:02:25 GMT</pubDate>
            <atom:updated>2024-04-12T07:02:25.658Z</atom:updated>
            <content:encoded><![CDATA[<h3>IOS — Smash ACE (羽球計分板）</h3><p>個人第二隻App的選題，製作球類計分板，這次的題目，我打算嘗試導入Lottie動畫，讓畫面更加生動，看起來不這麼的死板。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*TYO73zD9Gp76tcYnpwCbtQ.gif" /><figcaption>遊戲結束時，播放勝利動畫</figcaption></figure><p>也設計了Deuce的機制，當分數是20:20的時候，會進入Deuce的狀態，玩家必須連得兩分才能獲得勝利，當然這個也不是沒有上限的，上限30分，也就是如果繼續僵持下去，那先獲得30分的一方，就能獲得勝利！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MIx__0yGPfn-e6fcBE-Q4g.gif" /><figcaption>Deuce的展示以及比賽結束的勝利動畫</figcaption></figure><p>這隻App也是命運多舛，先是收到代號4.2的拒審通知，4.2算是有解，簡單說就是Apple認為你的程式功能太單調，太少了。要解決不難，看是要增加說明頁面，還是想辦法豐富其他功能，都是可行的做法。</p><p>寫這隻的當下，也沒有套用Auto Layout，所以不意外收到4.0的拒審通知，於是就連同SailorBeer一起改了。折騰了一陣子，總算調整到我覺得算滿意的程度了，累死我。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*io72f-QP4SFTnQk6nY0-mQ.png" /><figcaption>一切都值得了！</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec8a0df5a143" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS — SailorBeer 後續]]></title>
            <link>https://nooobmaster.medium.com/ios-sailorbeer-%E5%BE%8C%E7%BA%8C-da90b661c55c?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/da90b661c55c</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Fri, 12 Apr 2024 05:44:44 GMT</pubDate>
            <atom:updated>2024-04-12T05:44:44.724Z</atom:updated>
            <content:encoded><![CDATA[<h3>IOS — SailorBeer 後續</h3><p>原本這個程式只有單純的搖動手機去獲得數字，後來決定加上一些顯示資訊來輔助遊戲，包含當前骰出的點數，還有加入我們在玩卡牌遊戲99時，有出現的卡牌。像是暫停、迴轉、指定，來增加遊戲的樂趣。加入的話，就得改寫程式流程了。我選擇在距離目標點數的前20點左右，當玩家骰出特定點數，便會得到對應的卡片，有機會扭轉戰局。</p><p>因為之前收到拒審的審核報告說我的主題疑似鼓勵用戶飲酒，這違反他們的原則（見下圖）</p><h3>Guideline 4.3(b) — Design — Spam</h3><p>Your app is primarily a drinking game app that duplicates the content and functionality of similar apps in a saturated category.</p><p>Your app may include features or characteristics that distinguish it, but it prominently features functionality that facilitates games that encourage users to drink. There are already enough of these apps on the App Store.</p><p>這基本上是沒救的了，因為我的App名稱就已經是有Beer的字眼，但看完文字內容，我覺得他根本沒打開App使用。可是能怎麼樣。都扣了這個帽子。經驗豐富的前同事建議我換皮。除了這個4.3，我還獲得一個4.0，提醒我跑版的問題，事已至此，我是抱持著這個App要整個砍掉重練的心態在看官方的回覆內容…(淚）</p><p>隔天想說藉這個機會順便把Auto Layout給補齊好了，我大概花了一天看影片，但是壞習慣又來了，就是看了一段以為這部分大概只有這些內容，然後就開始動手做了。做了之後馬上就碰壁。然後又再回去看，輪迴好幾次，我覺得這個真的是阻礙我進步的壞習慣，必須改掉。</p><p>花了大概兩天的時間，處理兩隻App的版型，再加上處理換皮。半夜兩點後重新上架。結果“馬上”就收到通知!這次…是4.0 ???? 然後再加上2.3.8…我的天啊，我猜大概是不同的人審核吧，跟我說這次送審的資料跟我的App名稱不合，我整個人有點快爆炸了，但是如果希望審核通過的話，我應該也只能選擇改版了。當下時間已經是半夜了，所以我決定先去睡了。</p><p>隔天我振作起精神，好好的把主題的設計又改版了一次，這次就改回去原本的命名，然後美術也重新處理了一下，調整的過程中，我覺得最棘手的就是IPhone SE，而且版面上跟實際模擬器的有落差。站在開發者的角度，希望SE早日消失（誒不是</p><p>收到審核通過的信件，真的是開心，過程歷經千辛萬苦…看到回信內容真的想罵，但是回了信件之後又有種拿他沒辦法的感覺。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B6dbTTbuLmafmvPSv6S9DA.png" /><figcaption>最後看到這封回信，熬夜花這些時間是值得的！</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da90b661c55c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS — 水手啤酒改版]]></title>
            <link>https://nooobmaster.medium.com/%E6%B0%B4%E6%89%8B%E5%95%A4%E9%85%92%E6%94%B9%E7%89%88-ec585356246b?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec585356246b</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 17:00:59 GMT</pubDate>
            <atom:updated>2024-04-13T02:49:56.643Z</atom:updated>
            <content:encoded><![CDATA[<p>今天改動兩個地方，第一個是讓骰子可以對應所選擇的數量，展示結果。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*RZiCSU2VxKZT82vOAEzk-A.jpeg" /></figure><p>其次是，增加了暫停、指定、迴轉的卡牌，當累積點數接近目標點數時，骰到特定的點數，就會發動。這部分我花了一點時間，也額外發現了一個之前沒有處理到的Bug。這個作品到了1.0.8版，我想算是一個完整的App了，期待審核結果! 也算是回顧if else的寫法。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec585356246b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS — 第一支App:SailorBeer]]></title>
            <link>https://nooobmaster.medium.com/%E4%BD%9C%E5%93%81-%E6%B0%B4%E6%89%8B%E5%95%A4%E9%85%92-47ad576574e1?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ad576574e1</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Tue, 26 Mar 2024 14:55:28 GMT</pubDate>
            <atom:updated>2024-04-13T02:51:14.570Z</atom:updated>
            <content:encoded><![CDATA[<p>這隻App初衷是想做終極密碼類型的遊戲，不過後來改成接近99概念的策略遊戲，先簡單說一下99這個遊戲，一開始就是大家用手上的卡牌去堆疊到99，然後各自用手牌去做加減，或者其他策略性的動作，當有一個玩家爆掉，遊戲就分出勝負結束了。</p><p>水手啤酒，則是一開始會隨機獲得一個數字，這個數字就是堆疊的目標，玩家可以透過1~3個骰子，來堆疊點數，讓對手骰出骰子的時候，點數爆掉。輸的人，必須受到懲罰，看是罰喝一杯啤酒，或者是其他的處分。這個構想是之前看去酒店喝酒都會玩一些小遊戲，來增進趣味。所以由這個概念去設計水手啤酒。</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%E6%95%99%E5%AE%A4"><strong>彼得潘</strong></a>的課，但是有上班狀況下，真的很難抽出時間複習，這次就趁剛好轉換期，好好的回顧之前所學的，慢慢把記憶撿回來。</p><p>回顧開發的過程，遇到很多問題，也有很蠢的打字輸入問題。我認為在撰寫一個App之前，流程要先思考好，運用手邊的一些工具，比如說Figma，或者是紙筆，寫下流程跟構想。這樣開發會比較流暢。</p><p>開發過程遇到哪些問題：</p><p>1.調用音效的語法問題，原本用UIkit的方式撰寫，但是我發現它聲音好像有ＣＤ時間，後來改用Swift的寫法後，就沒問題了，參考這篇文章。</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%E6%95%99%E5%AE%A4/%E4%BD%9C%E6%A5%AD-20-%E9%BB%9E%E9%A4%85%E4%B9%BE%E9%81%8A%E6%88%B2-cookie-clicker-app-c8b53a64a60f">作業#20 — 點餅乾遊戲(cookie clicker) App</a></p><p>2. 如何取消黑暗模式，可參考這篇</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%E6%95%99%E5%AE%A4/%E5%8F%96%E6%B6%88app-dark-mode-9cf86ec5e9e1">Disable “Dark Mode” in iOS 13 for your iOS App. APP取消Dark Mode</a></p><p>3.<strong>如何在頁面之間傳遞資料</strong>，這個部分很重要，因為流程上，在選擇玩遊戲人數後，就會自動生成一個目標點數，然後把這個點數放到下一個頁面，來跟玩家擲出的點數做比較大小的功能。所以怎麼在頁面傳遞資料，這個功能也關係到未來相關題材類型的開發，我撰寫的當下，觀念是零碎的，所以這部分需額外花時間補足。</p><p>4.上架的流程，這款App能夠上架，真的很感謝我前同事的幫忙，教授我正規的上架流程與方式，包含申請憑證的部分，也感謝這陣子彼得潘耐心地傾聽我的問題QQ，這麼久沒交作業，我接下來會繼續創作的。也希望大家會喜歡這個遊戲！</p><p><a href="https://apps.apple.com/tw/app/sailorbeer/id6479734778">‎SailorBeer</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ad576574e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS — 傳值給label]]></title>
            <link>https://nooobmaster.medium.com/ios-ui-%E5%82%B3%E5%80%BC%E7%B5%A6label-712f43e590ef?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/712f43e590ef</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Thu, 07 Mar 2024 08:36:46 GMT</pubDate>
            <atom:updated>2024-04-13T02:43:12.270Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*t1jLWJlaNvCEri8XdfOCug.png" /><figcaption>示意圖</figcaption></figure><p>想要做一個UI，當我滑移Slider的時候，數值會跟著變動，這個該怎麼做？</p><p>首先我們會先拉對應元件的<strong>@IBOutlet，作為宣告，</strong>分別將label跟Slider各自拉<strong>@IBOutlet。</strong></p><p>接著在控制Slider的函式裡面，輸入設定的程式碼，目的是控制Slider的同時，label的值也跟著改變，語法參考如下：</p><p>redValue.text = String(redSlider.value)</p><p>需要注意的是，Slider的值，是浮點數，如果沒有特別設定，那麼最後的數值會是這樣（見下圖）：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*X5Tx-5HuirJvgkJ5_hPjIA.png" /><figcaption>數值會有帶小數點</figcaption></figure><p>倘若你不想要小數點，只想要顯示小數點後兩位的話，程式碼可以這樣寫：</p><p>blueValue.text = String(format:”%.2f”,blueSlider.value)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=712f43e590ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[筆記] 好吃的蝦餅]]></title>
            <link>https://nooobmaster.medium.com/%E7%AD%86%E8%A8%98-%E5%A5%BD%E5%90%83%E7%9A%84%E3%84%92-2b28bab3f2b3?source=rss-f9666f2979f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b28bab3f2b3</guid>
            <dc:creator><![CDATA[Ethan Chen]]></dc:creator>
            <pubDate>Mon, 16 Oct 2023 16:48:32 GMT</pubDate>
            <atom:updated>2023-10-16T16:49:04.154Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0So5c0yk2R2Dh1OqVChpg.jpeg" /><figcaption>沖繩常看到的蝦餅</figcaption></figure><p>從國際通入口的店家，到尾巴，價格從11xx-990日幣都有，這款蝦餅吃起來很刷嘴，不辣，很好吃。</p><p>前一天，在西門唐吉軻德，意外看到一盒蝦餅，驚訝又開心，因為之前版友開團就是因為台灣沒有賣，於是我找了店員，詢問一盒多少錢，想說帶兩盒回去。一問之下，價格居然是日本的兩倍…直接放棄= =a…下次去日本我一定要多買一些!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b28bab3f2b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>