<?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 Yi Cheng Chiang on Medium]]></title>
        <description><![CDATA[Stories by Yi Cheng Chiang on Medium]]></description>
        <link>https://medium.com/@louis.chiang26520?source=rss-6503cb63010b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NA-TRQY-gbVKsi-m.</url>
            <title>Stories by Yi Cheng Chiang on Medium</title>
            <link>https://medium.com/@louis.chiang26520?source=rss-6503cb63010b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 22:31:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@louis.chiang26520/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://medium.com/@louis.chiang26520/%E4%B8%89%E7%94%9F%E4%B8%89%E4%B8%96%E5%8D%81%E9%87%8C%E6%A1%83%E8%8A%B1-f883322cf9ee?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f883322cf9ee</guid>
            <category><![CDATA[emotional]]></category>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Wed, 15 Nov 2017 11:38:42 GMT</pubDate>
            <atom:updated>2017-11-15T11:38:42.661Z</atom:updated>
            <content:encoded><![CDATA[<p>過著一個多月很是“傷情”的日子，看著大陸今年最賣座的連續劇來慰藉心中的不適，劇中描述神仙間的愛恨情仇和邪不勝正的劇情，同時也看到大陸的戲劇已經讓台灣看不到車尾燈了。最有感觸的是劇中提到神仙也會下凡“渡劫”，嚐盡凡人的生老病死，不禁想起我們何嘗不是也再“渡劫”，經歷生離死別，只是這樣的劫對我也太吃力了些。劇中的素素跳下誅仙台，讓夜華有如萬念俱灰了300年。在某些夜深人靜的時候，心中也常有一股萬念俱灰的感觸湧上心頭，難過在於無法實現過去立下的海誓山盟和失去可以陪你走盡天涯海角的情人。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fpb-kc6DWIDI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dpb-kc6DWIDI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fpb-kc6DWIDI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f3f6f5515e3c0c256915294728070e6e/href">https://medium.com/media/f3f6f5515e3c0c256915294728070e6e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f883322cf9ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DataPicker & Activity Indicator View]]></title>
            <link>https://medium.com/@louis.chiang26520/datapicker-activity-indicator-view-1d75d412f87d?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d75d412f87d</guid>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Sat, 23 Sep 2017 12:35:01 GMT</pubDate>
            <atom:updated>2017-09-23T12:35:01.341Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>DataPicker &amp; Activity Indicator View</strong></p><p>之前作業沒寫到這2個，這兩天來補充，dataPicker 感覺應該是用在apple Watch，手機應該還是會有數字鍵盤點擊輸入。另外一個應用可以使用在倒數計時，好像可以值皆有寫程式的方式完成，不用使用dataPicker。程式碼中的dataFormat 會依照不同的設定，會有不同的值，這個要特別留意。如下表：</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f939e454ee591d6146ad05aad5e1af31/href">https://medium.com/media/f939e454ee591d6146ad05aad5e1af31/href</a></iframe><ul><li>yyyy：西元年份，像是 2015、1998。</li><li>yy：西元年份末兩位數，像是 15、95。</li><li>MMMM：月份，像是 December、January。</li><li>MMM：月份簡寫，像是 Oct、Feb。</li><li>MM：以數字代表月份，像是 08、12。</li><li>dd：日期，像是 07、31。</li><li>EEEE：星期幾，像是 Saturday、Monday。</li><li>EEE：星期幾的簡寫，像是 Sun、Wed。</li><li>HH：24 小時制的時。</li><li>hh：12 小時制的時。</li><li>mm：分。</li><li>ss：秒。</li></ul><p>Activity Indicator View 一般使用是用程式碼產出，較少利用storyboard的UI元件，不過這次還是會使用UI的元件練習。</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f939e454ee591d6146ad05aad5e1af31/href">https://medium.com/media/f939e454ee591d6146ad05aad5e1af31/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*taytAMCKp4FY5NoYBEOOhA.png" /><figcaption>Hides When Stopped 記得打勾 才會呈現gif呈現的情況</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*lrYdpq5P41CqcP_q_Ykwfw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d75d412f87d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to APP Development with Swift-struct]]></title>
            <link>https://medium.com/@louis.chiang26520/intro-to-app-development-with-swift-struct-bbf6fcfbc691?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbf6fcfbc691</guid>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Tue, 19 Sep 2017 16:31:16 GMT</pubDate>
            <atom:updated>2017-09-19T16:31:16.075Z</atom:updated>
            <content:encoded><![CDATA[<p>這章在介紹struct，應該是在講structure，譬如說鞋子，他有不同的顏色 大小 廠牌名字，因此定義新的type就很重要了。可是裡面有介紹很活的用法，譬如在裡面定義變數，變數裡面還有常數和return，看到都暈了…..。</p><p>另外，“return 的新用法，真奇妙”</p><pre>struct Song {</pre><pre>let title : String</pre><pre>let artist : String</pre><pre>let duration : Int</pre><pre><strong>var formatting : String {</strong></pre><pre><strong>let minute = duration / 60</strong></pre><pre><strong>let second = duration % 60</strong></pre><pre><strong>return &quot;\(minute)m \(second)s&quot;</strong></pre><pre><strong>}</strong></pre><pre>}</pre><pre>let song = Song(title : &quot;年輪說&quot;, artist : &quot;louis&quot;, duration :150)</pre><pre>song.title</pre><pre>song.formatting</pre><p>用struct定義完後，代入function，然後回傳bool。(這是自己改寫的)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a9afccf37914fa9bea32c8d971dcce8/href">https://medium.com/media/8a9afccf37914fa9bea32c8d971dcce8/href</a></iframe><p>教材教的如下，裡面有提到 底線的用法。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOjYeHmj2NagkOMWTvOE-Q.png" /></figure><p>也可以把function定義到struct裡面，也就是method，看好久好久好久才稍微懂一點。exercise裡面說要改寫，是要怎麼改寫?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDmaqLe4SVThBvpsyHpPhg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbf6fcfbc691" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[文組生的iOS App程式設計入門5-心得分享]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E6%96%87%E7%B5%84%E7%94%9F%E7%9A%84ios-app%E7%A8%8B%E5%BC%8F%E8%A8%AD%E8%A8%88%E5%85%A5%E9%96%805-%E5%BF%83%E5%BE%97%E5%88%86%E4%BA%AB-4fef93d0e01?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fef93d0e01</guid>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Mon, 18 Sep 2017 12:47:23 GMT</pubDate>
            <atom:updated>2017-09-18T12:47:23.519Z</atom:updated>
            <content:encoded><![CDATA[<p>非常榮幸可以參加小王子的文組生iOS課程，對於一個完全沒有程式背景的化工人，可以利用短短的10堂課可以對基本的Xcode有基本的認識，這段旅程深感值回票價，雖然每週的星期二都要趕5點下班，然後開車到桃園高鐵站搭18:10的高鐵，等車的空擋總是要在7–11的咖哩飯和義大利麵2選一當作晚餐，抵達台北車站後再搭著捷運和走路到資策會的教室，進教室的時間總是離上課時間不到5分鐘。上完課程後，回到家裡已經是00點。<br><strong>如果有人問我說，為什麼Peter Pan的課程值得你這樣作，我想有下列幾個原因：</strong><br>1. 生動活潑的教學方式，讓艱澀難理解帶點苦悶的程式和軟體課程，可以像一塊蛋糕般且輕易地咀嚼吸收並了解底蘊。尤其Peter Style 的幽默讓每個同學都忘卻了工作的煩惱。<br>2.循循善誘鼓勵寫作業，完成一個作業就是增加對課程的了解提升實力，避免下一堂課跟不上Peter Pan的飛行速度(誤，是教學進度)。<br>3.不厭其煩的回覆初學者的課程疑問，不用懷疑不懂問就對了。<br>4.開發者 作家 講師 三重身份的經歷和經驗，值得讓想投入iOS領域的初心者一定要認識的人。<br><strong>而在這10堂課將會用到以下工具: </strong><br>1. trello 共做平台 軟體業界常用的工具之一 強烈推薦其他領域的業者可以學習使用。<br>2.medium 全球軟體科技業的blog，裡面有3輩子看也看不完的內容，以及iOS的技術，一定要知道的分享平台。<br>3.GitHub 原始碼開放平台。<br>4.video 轉換成GIF。</p><p><a href="https://ezgif.com/">Animated GIF editor and GIF maker</a></p><p>5.Marvel 業界常用的prototype，課堂推薦2個，不過我只用過一個，缺點就是每一個畫面都要重新製作。此外，Prott也有人推薦。</p><ul><li><a href="https://marvelapp.com/">Marvel - The design platform for digital products. Get started for free.</a></li><li><a href="https://prottapp.com/tw/">Prott - Prototyping tool for Web iOS Android apps</a></li></ul><p>6.手機背景mockups，把做完的app加入美美的背景，免費又漂亮，不過現在有iPhone8 跟X，可能一段時間後才有免費的mockups或是要找新的免費資源。</p><ul><li><a href="http://magicmockups.com/">Magic Mockups * Free real-life mockup generator</a></li><li><a href="http://dunnnk.com/#0">Dunnnk - Generate Product Mockups For Free</a></li></ul><p>7.免費iOS icon</p><p><a href="http://www.iconbeast.com/free/">IconBeast Lite | 500 Free iOS Tab Bar Icons for iPhone and iPad</a></p><p><strong>分享這10堂課學到和認識到的Xcode和swift:<br></strong>1.傳說中的練功遊樂園 playground<br>2.畫面魔術師storyboard<br>3.static table 實作，app百分之70的畫面是table<br>4.不用寫任何程式打造電子書，美工夠強可以找到好題材，做一個可以上架的app不是問題。<br>5.常數(let) 變數(var) <br>6.if else <br>7.array ＆亂數應用<br>8.迴圈 for in (部分應用)<br>9.option <br>10.prepare 資料傳遞<br>11.IBaction IBOutlet 拉線<br>12.數10種物件….應用及介紹<br>13.app上架<br>14.數個有趣的app<br>.<br>.<br>.<br>哇！真的有多，想不到我可以撐過去。最後，期待10月底的彼得潘班，相信人類可以做到的事情，我也可以撐過去的。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnXSk6SLdzB8%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnXSk6SLdzB8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FnXSk6SLdzB8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/67325dc8be356943248ceaf841b05dd2/href">https://medium.com/media/67325dc8be356943248ceaf841b05dd2/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fef93d0e01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E6%96%87%E7%B5%84%E7%94%9F%E7%9A%84ios-app%E7%A8%8B%E5%BC%8F%E8%A8%AD%E8%A8%88%E5%85%A5%E9%96%805-%E5%BF%83%E5%BE%97%E5%88%86%E4%BA%AB-4fef93d0e01">文組生的iOS App程式設計入門5-心得分享</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%8C%9C%E6%95%B8%E5%AD%97-app-33a60cb5b260?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/33a60cb5b260</guid>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Sat, 16 Sep 2017 03:56:06 GMT</pubDate>
            <atom:updated>2017-09-16T03:56:06.206Z</atom:updated>
            <content:encoded><![CDATA[<p>這個app 我覺得很有趣誒！這題的重點如下：<br>1.是當猜錯的時候，要給提示，譬如：正確數字為35時，當猜15的時候，要給15–50這要的提示，解決的方法設2個變數值，然候用if else作處理。<br>2.再玩一次的button則將所有的值恢復到一開始，並且重新設定新的答案，這樣才有新鮮感。<br>3.有加入progress，這是之前有說可以把這個加入到選擇題的app裡面，想說可以把這個加入到這個app中練習一下，不過畫面可以在處理得更好一點。想去買ios design kit了。(打這段的時候，突然發現“再玩一次”，沒有把progress恢復到初始值….)<br>4.收鍵盤：這裡是設定按下Go的時候，會自動收起來。另外也順便也有設計當按下旁邊的空白的時候，也會自動收起來。利用上課教的。<br>5.text輸入數字時，上一個數字會自動清空，設定的方式如圖片。不過模擬器實際跑的時候，有時候會秀逗…..。</p><p>覺得對Xcode的介面越來越習慣了，不會有一種卡卡的感覺……。這週被客訴的報告弄的好忙好煩，希望下週狀況可以越來越好。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53X_ijRjiSTx3aoqVU4n2g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*PC9tZuygDqBrLI4ontfgog.gif" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/72082d8f1998783655de22d689ff9fa0/href">https://medium.com/media/72082d8f1998783655de22d689ff9fa0/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*A7nf3eUfbgxwVB30dtonPA.png" /><figcaption>text 的設定</figcaption></figure><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/%E8%A8%AD%E8%A8%88-ios-app-%E7%9A%84%E5%AF%B6%E5%88%80-ios-design-kit-803e83b41b6e">設計 iOS App 的寶刀 — iOS Design Kit</a></li><li><a href="https://github.com/louis26520/guestNumberGame.git">louis26520/guestNumberGame</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33a60cb5b260" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E7%8C%9C%E6%95%B8%E5%AD%97-app-33a60cb5b260">猜數字 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- unwind segue回到指定頁面]]></title>
            <link>https://medium.com/@louis.chiang26520/%E5%BF%83%E7%90%86%E9%81%8A%E6%88%B2app-unwind-segue%E5%9B%9E%E5%88%B0%E6%8C%87%E5%AE%9A%E9%A0%81%E9%9D%A2-25c9f23dad4e?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/25c9f23dad4e</guid>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Mon, 11 Sep 2017 14:57:27 GMT</pubDate>
            <atom:updated>2017-09-11T14:57:27.045Z</atom:updated>
            <content:encoded><![CDATA[<p>上次提到 “再玩一次”的部分，只是單純的用segue中的show，畫面應該是一個一個疊上去的，這樣好像不是很好的解法，應該有更好的方法。剛好課堂有教到，利用unwindsegue，回到自己想要的頁面。<br>此專案有三個頁面，現在要從第三頁面，回到第一個頁面，並重新開始遊戲。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*DGodPZwD710HE3lvdFbJoA.png" /></figure><p>首先，要再回去的頁面加入下面程式碼，一定要有＠IBAction，參數的型別為 UIStoryboardSege。unwindToViewControllerPage 是自己定義的，可以依自己喜好定義，這個命名會影響到第二步要選擇的項目。</p><pre>@IBAction func unwindToViewControllerPage(segue:UIStoryboardSegue）{<br>  }</pre><p>接著，再將在玩一次連到右邊紅色的標記，點選unwindToViewControllerPage。即可完成回到指定的頁面，其實有點小複雜！需要花時間在熟悉熟悉。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*DmaJDgcj28gRZouEuiuGvw.gif" /></figure><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%BF%83%E7%90%86%E9%81%8A%E6%88%B2app-9ca478f3643f">心理遊戲app</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25c9f23dad4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to APP Development with Swift — arrays and Loops]]></title>
            <link>https://medium.com/@louis.chiang26520/intro-to-app-development-with-swift-arrays-and-loops-d25517df4407?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d25517df4407</guid>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Sat, 09 Sep 2017 09:41:44 GMT</pubDate>
            <atom:updated>2017-09-09T09:41:44.614Z</atom:updated>
            <content:encoded><![CDATA[<p>覺得對array還是不太懂，所以來唸一下第14個章節，有提到幾個array的觀念：<br>1. 日常生活中有很多的list, 音樂清單 採買清單 願望清單，有這麼多的清單，每個音樂用一個常數或變數，實在很不方便，因此array就被用來儲存這些清單，等需要的時候拿出來。</p><p>2.課堂上好像都是教 let 去命名 array，原來這是在清單不變得狀況下，如果清單會改變，那就會用var，解答我的疑惑。</p><p>3.清單增加的三種方法，append insert += 。</p><p>4.清單去除的幾個方法， remove removeFirst removeLast removeAll 。</p><p>5. 計算投票的結果 有幾個 true 和 false 。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j6P5KB-ET8mRiP7PzODg2Q.png" /></figure><p>6. loop則是用來執行清單裡面的內容。</p><p>7.最後一題練習題 卡關了，要用什去比對句子裡面的關鍵字。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d25517df4407" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[心理遊戲app]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E5%BF%83%E7%90%86%E9%81%8A%E6%88%B2app-9ca478f3643f?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ca478f3643f</guid>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Sat, 02 Sep 2017 04:12:31 GMT</pubDate>
            <atom:updated>2017-09-02T05:00:32.369Z</atom:updated>
            <content:encoded><![CDATA[<p>這個作業結合選擇題和不同頁面資料傳遞，概念是選擇不同的答案會有不一樣的分數，最後累積的分數，會依照間距有不同的結果。這裡有些問題可以討論，1. 選擇題若要每題的每個選項要不同的分數，會增加code的複雜度。2. 最後一頁的“再玩一次”，只是單純的用segue中的show，畫面應該是一個一個疊上去的，這樣好像不是很好的解法，應該有更好的方法。</p><p>另外，這裡有一個特別的功能，他可以有條件的限制是否要執行segue。把這個輸入，就可以回答完問題再跳到下一頁呈現最後的結果。常見的問題，swift總是很貼心的把它列入功能裡面，讓寫程式的人可以輕易達到目標。</p><pre>// 限制segue，點擊5次後再跳到下一頁</pre><pre>override func shouldPerformSegue(withIdentifier identifier: String , sender: Any?) -&gt; Bool {</pre><pre>if number == 5 {</pre><pre>return true</pre><pre>}</pre><pre>else {</pre><pre>return false</pre><pre>}</pre><pre>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*XmmK1vV1hGzAiFdwRmNgQw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*paADIRndM6J6XE1r4013cA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7i09wBzIAm-GUESJuSD4qQ.jpeg" /></figure><p><a href="https://github.com/louis26520/testmindgame-.git">louis26520/testmindgame-</a></p><p>應該可以去看apple的解法，Go Go Go!!!</p><p>題目參考如下：</p><p><a href="http://stargogotest.blogspot.tw/2012/09/blog-post_7301.html">【多題心測】你到底是怎樣的一個人(準到嚇死人)</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fwq_vMgM2oKs%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dwq_vMgM2oKs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fwq_vMgM2oKs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2067495654f83b687b23eea9637b32af/href">https://medium.com/media/2067495654f83b687b23eea9637b32af/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ca478f3643f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E5%BF%83%E7%90%86%E9%81%8A%E6%88%B2app-9ca478f3643f">心理遊戲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- 利用prepare傳遞資料]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/%E5%9B%9B%E5%A4%A7%E5%85%AC%E9%96%8B%E8%B3%BD%E4%BB%8B%E7%B4%B9app-%E5%88%A9%E7%94%A8prepare%E5%82%B3%E9%81%9E%E8%B3%87%E6%96%99-caa65d23da9d?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa65d23da9d</guid>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Wed, 30 Aug 2017 12:14:04 GMT</pubDate>
            <atom:updated>2017-08-30T12:14:04.641Z</atom:updated>
            <content:encoded><![CDATA[<p>之前有做過不寫程式只用storyboard的功能，navigation &amp; tab bar controller完成電子書的作業，這次課堂教利用prepare完成資料的傳遞，也結合到前幾次課堂所教的。重頭做一次，雖然只有幾行程式碼加上閱讀相關資料，也花了2個多小時….。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*J5uV684zaN2TwTJpc3Uh4Q.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*VI_AKN2ZlX5usB73Obt2rg.png" /></figure><ul><li><a href="https://github.com/louis26520/-prepare-.git">louis26520/-prepare-</a></li><li><a href="https://www.appcoda.com.tw/swift-optional-intro/">Swift的問號與驚嘆號：可有可無的 Optional</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%E6%95%99%E5%AE%A4/%E9%9B%BB%E5%AD%90%E6%9B%B8app-%E7%B6%B2%E7%90%83%E5%9B%9B%E5%A4%A7%E5%85%AC%E9%96%8B%E8%B3%BD%E6%AD%B7%E5%B1%86%E5%86%A0%E8%BB%8D-a91da0fe1cfe">電子書APP-網球四大公開賽歷屆冠軍</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caa65d23da9d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/%E5%9B%9B%E5%A4%A7%E5%85%AC%E9%96%8B%E8%B3%BD%E4%BB%8B%E7%B4%B9app-%E5%88%A9%E7%94%A8prepare%E5%82%B3%E9%81%9E%E8%B3%87%E6%96%99-caa65d23da9d">四大公開賽介紹app- 利用prepare傳遞資料</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/@louis.chiang26520/%E5%95%8F%E7%AD%94%E9%A1%8Capp-db2529eb1539?source=rss-6503cb63010b------2</link>
            <guid isPermaLink="false">https://medium.com/p/db2529eb1539</guid>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Yi Cheng Chiang]]></dc:creator>
            <pubDate>Mon, 28 Aug 2017 12:34:08 GMT</pubDate>
            <atom:updated>2017-08-28T23:33:22.655Z</atom:updated>
            <content:encoded><![CDATA[<p>先寫一個不用struct或class的，這樣才可以體會struct或class的好！不用class或struct，一個題目或答案就要配一個常數，10題就20個常數了，會增加寫程式許多麻煩。</p><pre>let quesiotn1 = &quot;湖人KO連線是那兩個人&quot;</pre><pre>let question2 = &quot;灰熊雙塔是那兩個人&quot;</pre><pre>let question3 = &quot;馬刺雙塔是那兩個人&quot;</pre><pre>let answer1 = &quot;Kobe O&#39;Niel&quot;</pre><pre>let answer2 = &quot;gasol Randolf&quot;</pre><pre>let answer3 = &quot;Duncan Robison&quot;</pre><pre>var Number = [1,2,3]</pre><pre>let chooseNumber = GKShuffledDistribution(lowestValue: 0, highestValue: 2)</pre><pre>var questionAmount = 0</pre><pre>func choosing(){</pre><pre>let trueNumber = chooseNumber.nextInt()</pre><pre>let questionNumber = Number[trueNumber]</pre><pre>print(questionNumber)</pre><pre>if questionNumber == 1 {</pre><pre>questionLabel.text = quesiotn1</pre><pre>}</pre><pre>if questionNumber == 2 {</pre><pre>questionLabel.text = question2</pre><pre>}</pre><pre>if questionNumber == 3 {</pre><pre>questionLabel.text = question3</pre><pre>}</pre><pre>}</pre><pre>@IBAction func theAnswer(_ sender: Any) {</pre><pre>questionAmount = questionAmount + 1</pre><pre>if questionLabel.text == quesiotn1{</pre><pre>answerLabel.text = answer1</pre><pre>}</pre><pre>if questionLabel.text == question2 {</pre><pre>answerLabel.text = answer2</pre><pre>}</pre><pre>if questionLabel.text == question3{</pre><pre>answerLabel.text = answer3</pre><pre>}</pre><pre>if questionAmount == 3 {</pre><pre>responseAnswerButton.isEnabled = false</pre><pre>nextQuestionButton.isEnabled = false</pre><pre>}</pre><pre>}</pre><pre>@IBAction func restsrAction(_ sender: Any) {</pre><pre>responseAnswerButton.isEnabled=true</pre><pre>nextQuestionButton.isEnabled = true</pre><pre>}</pre><pre>@IBAction func nextButtonAction(_ sender: Any) {</pre><pre>choosing()</pre><pre>answerLabel.text = &quot;&quot;</pre><pre>}</pre><p>用struct來寫，如下：</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/de5790e53e6af703a7eed55bc47195b0/href">https://medium.com/media/de5790e53e6af703a7eed55bc47195b0/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*m4W4bIvTgzkMZJJqAbLoZg.gif" /></figure><p>struct跟class的差別</p><ul><li><a href="https://nodejust.com/stanford-swift-ios-class-struct-enum/">史丹佛 Swift iOS 開發筆記五：類別、結構與例舉的比較 - Just Node.js</a></li><li><a href="http://justeatplay.com/swift-class-struct-difference/">[Swift] class與struct的區別 &quot; 痴痴呵呵</a></li><li><a href="https://tw.alphacamp.co/2016/07/20/swift-struct-or-class/">給困惑的 Swift 初學者：struct or class？ - ALPHA Camp Taiwan</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db2529eb1539" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>