<?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 Iris Liu on Medium]]></title>
        <description><![CDATA[Stories by Iris Liu on Medium]]></description>
        <link>https://medium.com/@YCL72920?source=rss-61dd7585b3a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G1B-t-Sxi5A7h8zYs-_vAw@2x.jpeg</url>
            <title>Stories by Iris Liu on Medium</title>
            <link>https://medium.com/@YCL72920?source=rss-61dd7585b3a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 14:07:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@YCL72920/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[#004 使用 iOS SDK-做一張長輩圖]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/004-%E4%BD%BF%E7%94%A8-ios-sdk-%E5%81%9A%E4%B8%80%E5%BC%B5%E9%95%B7%E8%BC%A9%E5%9C%96-e94d01e1728a?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e94d01e1728a</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Mon, 18 Jul 2022 04:50:07 GMT</pubDate>
            <atom:updated>2022-07-18T08:23:46.684Z</atom:updated>
            <content:encoded><![CDATA[<p>使用圖片，文字，emoji，邊框 &amp; 圓角製作漂亮卡片</p><p>那就…試試看做成長輩圖好了(?!)</p><blockquote>成果</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hRQd8JmGZq4DLxQxmEgfzw.png" /></figure><blockquote>素材</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4DQqsrphAl3WD1NJfRfRqw.jpeg" /><figcaption>荷花</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*r25kUvPpJZRb9MN47YbHUQ.jpeg" /><figcaption>神明圖</figcaption></figure><blockquote>程式碼</blockquote><pre><strong>import</strong> UIKit;</pre><pre>//荷花</pre><pre><strong>let</strong> lotusImg = UIImage(named: &quot;lotus.jpg&quot;);</pre><pre><strong>let</strong> lotusImgView = UIImageView(image: lotusImg);</pre><pre>//神明</pre><pre><strong>let</strong> oracleImg = UIImage(named: &quot;oracle.jpeg&quot;);</pre><pre><strong>let</strong> oracleImgView = UIImageView(image: oracleImg);</pre><pre>//訊息內容</pre><pre><strong>let</strong> messageLabel = UILabel();</pre><pre>messageLabel.text = &quot;&quot;&quot;</pre><pre>親愛的朋友早安～</pre><pre>用一顆感恩的心看待事物</pre><pre>世界將變得更美好</pre><pre>&quot;&quot;&quot;;</pre><pre>messageLabel.font = UIFont.systemFont(ofSize: 200);</pre><pre>messageLabel.numberOfLines = 0;</pre><pre>messageLabel.sizeToFit();</pre><pre><strong>let</strong> messageView = UIView(frame: messageLabel.bounds);</pre><pre>//漸層圖層，大小同訊息圖層</pre><pre><strong>let</strong> gradientLayer = CAGradientLayer();</pre><pre>gradientLayer.frame = messageView.bounds;</pre><pre>gradientLayer.colors = [UIColor.red.cgColor, UIColor.yellow.cgColor, UIColor.blue.cgColor, UIColor.purple.cgColor];</pre><pre>//斜漸層</pre><pre>gradientLayer.startPoint = CGPoint(x: 0, y: 0);</pre><pre>gradientLayer.endPoint = CGPoint(x: 1, y: 1);</pre><pre>//在訊息上疊加漸層，只顯示mask裡非透明的區塊</pre><pre>messageView.layer.addSublayer(gradientLayer);</pre><pre>messageView.mask = messageLabel;</pre><pre>//拉大神明圖層，並調整至右下方</pre><pre>oracleImgView.frame = CGRect(x: 1600, y: 700, width: 1100, height: 1100);</pre><pre>//避免拉大後失真，維持圖片比例</pre><pre>oracleImgView.contentMode = .scaleAspectFit;</pre><pre>//在荷花上疊加神明</pre><pre>lotusImgView.addSubview(oracleImgView);</pre><pre>//調整訊息位置(維持原本設定的訊息大小)，並在荷花上疊加文字</pre><pre>messageView.frame = CGRect(x: 100, y: 100, width: messageLabel.frame.width, height: messageLabel.frame.height);</pre><pre>lotusImgView.addSubview(messageView);</pre><pre>//加上外框</pre><pre>lotusImgView.layer.borderWidth = 10;</pre><pre>lotusImgView.layer.borderColor = UIColor.orange.cgColor;</pre><pre>lotusImgView.layer.cornerRadius = 150;</pre><pre>lotusImgView.clipsToBounds = <strong>true</strong>;</pre><pre>//加上顏文字</pre><pre><strong>let</strong> angleLabel = UILabel();</pre><pre>angleLabel.text = &quot;😇😇&quot;;</pre><pre>angleLabel.font = UIFont.systemFont(ofSize: 220);</pre><pre>angleLabel.sizeToFit();</pre><pre>angleLabel.frame = CGRect(x: 1800, y: 70, width: angleLabel.frame.width, height: angleLabel.frame.height);</pre><pre>lotusImgView.addSubview(angleLabel);</pre><blockquote>參考資料</blockquote><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/142-%E4%BD%BF%E7%94%A8%E5%9C%96%E7%89%87-%E6%96%87%E5%AD%97-emoji-%E9%82%8A%E6%A1%86-%E5%9C%93%E8%A7%92%E8%A3%BD%E4%BD%9C%E6%BC%82%E4%BA%AE%E5%8D%A1%E7%89%87-401741bf23f7"># 142 使用圖片，文字，emoji，邊框 &amp; 圓角製作漂亮卡片</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/%E5%88%A9%E7%94%A8-uiview-%E7%9A%84-mask-%E8%A3%BD%E4%BD%9C%E6%BC%B8%E5%B1%A4%E7%9A%84%E5%9C%96%E7%89%87%E5%92%8C%E6%96%87%E5%AD%97-2130cd4f3f53">利用 UIView 的 mask 為圖片文字染上美麗的漸層</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e94d01e1728a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/004-%E4%BD%BF%E7%94%A8-ios-sdk-%E5%81%9A%E4%B8%80%E5%BC%B5%E9%95%B7%E8%BC%A9%E5%9C%96-e94d01e1728a">#004 使用 iOS SDK-做一張長輩圖</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[View Controller]]></title>
            <link>https://medium.com/@YCL72920/view-controller-fa52c351088?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa52c351088</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 17:12:56 GMT</pubDate>
            <atom:updated>2022-07-17T17:12:56.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJJyiiUclOA1u3seDpiE6g.png" /></figure><p>用於新增一個畫面。</p><p>APP的起始畫面會有一個箭頭（如果沒有箭頭，跑起來會是黑的）：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*1ovlekFXmC49KYFUcz_E6A.png" /></figure><p>若畫面很多不好拖移箭頭時，可先停在controller上，並勾選is initial view controller</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPlOo4LG5nTUKtbtCAd-Fg.png" /></figure><p>若要移動畫面位子，可點選長方形後拖移</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*DrJCMi-Z96CfXELc9wv8CQ.png" /></figure><p>串起兩個Controller View的方式：</p><ol><li>在A View的Button上按右鍵，拉到B View<br>或是按著control，按著滑鼠左鍵拉到B View</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HWWcPTe6Z9ERrMDHUwUBdQ.png" /></figure><p>2.在A View的Button上點一下，透過左側的Connections Inspector拉線到B View；未來也可透過此方式看到連接的資訊。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H_dyztW5VZdKEyHV5rHa5A.png" /></figure><p>這種線稱<strong>segue</strong> /ˈseɡ.weɪ/ 轉場</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa52c351088" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS學習筆記]]></title>
            <link>https://medium.com/@YCL72920/ios%E5%AD%B8%E7%BF%92%E7%AD%86%E8%A8%98-86258212fa63?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/86258212fa63</guid>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 15:33:12 GMT</pubDate>
            <atom:updated>2022-07-18T04:55:39.071Z</atom:updated>
            <content:encoded><![CDATA[<p>這是一個…筆記集中區</p><blockquote><strong><em>元件</em></strong></blockquote><p><a href="https://medium.com/@YCL72920/label-441a36681f93">Label</a></p><p><a href="https://medium.com/@YCL72920/button-b7ad15c64ed2">Button</a></p><p><a href="https://medium.com/@YCL72920/text-e8cd381fd472">Text</a></p><p><a href="https://medium.com/@YCL72920/view-controller-fa52c351088">View Controller</a></p><blockquote><strong><em>雜項</em></strong></blockquote><p><a href="https://medium.com/@YCL72920/%E6%AA%94%E6%A1%88%E5%8A%9F%E8%83%BD-%E5%9C%96%E7%A4%BA%E5%90%AB%E7%BE%A9-minima-%E9%A1%8F%E6%96%87%E5%AD%97-c556c8ccbb43">檔案功能、圖示含義、Minimap、顏文字</a></p><p><a href="https://medium.com/@YCL72920/%E7%88%B2app%E5%8A%A0%E4%B8%8Aicon-ea2c8f0b1ef">爲APP加上icon</a></p><blockquote><strong><em>作業</em></strong></blockquote><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/001-%E7%86%9F%E6%82%89-app-gif-%E9%8C%84%E8%A3%BD-github-97aca1dde711">#001 熟悉 App gif 錄製，GitHub</a></p><p><a href="https://medium.com/@YCL72920/004-%E4%BD%BF%E7%94%A8-ios-sdk-%E5%81%9A%E4%B8%80%E5%BC%B5%E9%95%B7%E8%BC%A9%E5%9C%96-e94d01e1728a">#004 使用 iOS SDK-做一張長輩圖</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86258212fa63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Text]]></title>
            <link>https://medium.com/@YCL72920/text-e8cd381fd472?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8cd381fd472</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 15:32:36 GMT</pubDate>
            <atom:updated>2022-07-17T16:39:27.270Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UD-sI7v2US5cIsabkIwnfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6tBc51Mou5X5-C5OGi86XQ.png" /><figcaption>text view會有scroll bar 可上下捲動內容</figcaption></figure><blockquote>Text Field</blockquote><p>比較適合用來做單行的文字處理(例如：帳號、姓名)</p><blockquote>Text View</blockquote><p>比較適合用來做多行的文字處理(例如：文章內容)</p><p>可設定是否能編輯，若有打勾，點選後可輸入文字</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*noHYqDsLmdYUAQTFChr_6A.png" /></figure><p>有時模擬器不會正確出現鍵盤，可到I/O&gt;keyboard&gt;toggle software keyboard叫出鍵盤</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYIzhEQKrWUpPaFLN-rS_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*okaUcGW2KkCOFa0Jxpb5Sg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8cd381fd472" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Button]]></title>
            <link>https://medium.com/@YCL72920/button-b7ad15c64ed2?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7ad15c64ed2</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 15:03:00 GMT</pubDate>
            <atom:updated>2022-07-17T15:23:39.202Z</atom:updated>
            <content:encoded><![CDATA[<h3>一般的Button</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCHVKQVo4fiZ2h-cVIcIxw.png" /></figure><blockquote>幫按鈕換底色、文字顏色</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivOc2gjyxY3XGDqbniWOgQ.png" /></figure><blockquote>挑選圖片當按鈕背景色</blockquote><p>以下圖為例，為一個正方形的圖片</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*qZbHmliMCRxSygFYSM-yzg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyo0ZN3q_YuloH_dWwejVg.png" /></figure><p>Content Mode可設定要以圖片哪部分為背景</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Nu5UJap7Ic93RL580UeQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4c6PC0AKJN5zijXTL4LTpw.png" /><figcaption>TOP</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9x66cHyyE06VIp0JJIpiKQ.png" /><figcaption>Center</figcaption></figure><p>可設定文字的水平、垂直對齊位置</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jAxHHCeWYN3O060TvvmANg.png" /></figure><p>image為文字前的小圖示</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPGdY6N3r6ZkRchg0uz8ZQ.png" /></figure><h3>選項型Button</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tiTS0Cc5lmYKxM-rCjrgrw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7ad15c64ed2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[爲APP加上ICON]]></title>
            <link>https://medium.com/@YCL72920/%E7%88%B2app%E5%8A%A0%E4%B8%8Aicon-ea2c8f0b1ef?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea2c8f0b1ef</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 14:40:00 GMT</pubDate>
            <atom:updated>2022-07-17T14:40:00.773Z</atom:updated>
            <content:encoded><![CDATA[<p>在X Code 14內可直接設定一張高清圖為ICON(須為1024*1024，否則執行時會報錯)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2El_kyDJsmy5baRI.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oabI569d9txaGr8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*61QCtUz6UowitBxX.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kzkYCW0vWYHo01h-.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea2c8f0b1ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[檔案功能、圖示含義、Minimap、顏文字]]></title>
            <link>https://medium.com/@YCL72920/%E6%AA%94%E6%A1%88%E5%8A%9F%E8%83%BD-%E5%9C%96%E7%A4%BA%E5%90%AB%E7%BE%A9-minima-%E9%A1%8F%E6%96%87%E5%AD%97-c556c8ccbb43?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c556c8ccbb43</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 14:33:46 GMT</pubDate>
            <atom:updated>2022-07-17T14:37:53.398Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>檔案功能</strong></h3><p>新增storyboard的APP專案後，預設會有下列檔案</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*8qM532qfHtmnDPIep05haA.png" /></figure><ol><li>AppDelegate.swift</li><li>SceneDelegate.swift</li><li>ViewController.swift</li><li>Main.storyboard 用來設計畫面</li><li>Assets.xcassets 圖庫，用來存放APP內會用到的圖片、設定APP的ICON</li><li>LaunchScreen.storyboard</li><li>Info.plist</li></ol><h3><strong>畫面連接關係</strong></h3><p>進入APP後要呈現的第一個畫面<br>畫面的連接關係(表示會從左邊的畫面，連接到右邊）</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfqMBxLwsketxTq-pnhp7A.png" /></figure><h3>Inspector</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kdkpr1tywZYfRte31lxcaQ.png" /><figcaption>可點選Hide or show the Inspector來隱藏或開啟</figcaption></figure><blockquote>Attributes Inspector</blockquote><p>可用來設定元件的屬性(例如:顏色、字型)<br>快速鍵：cmd+option+5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F--NNgkk_D0wMdP9I-yT5A.png" /><figcaption>View</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXufBIwfywj0Uh-OQ2ivXw.png" /><figcaption>Button</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9DYnbtZiSZ4MoinBLyv0ig.png" /><figcaption>有多種模式可設定顏色、透明度(左二可設定RGB、左四可import圖片後從圖片吸色)</figcaption></figure><blockquote>Size Inspector</blockquote><p>可用來調整所在的x,y位置、元件大小</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nfNiSgVpwwFfiMDoLdokJQ.png" /></figure><h3><strong>Minimap</strong></h3><p>透過minimap可快速知道目前在哪個頁面上<br>但如果初期頁面不多，可先關掉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oeMo5aNl2cE32JxGchTUkQ.png" /></figure><h3>插入顏文字</h3><p>Edit &gt; Emoji，或按fn</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdZztOxZXGV2D0GSWMAulw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c556c8ccbb43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Label]]></title>
            <link>https://medium.com/@YCL72920/label-441a36681f93?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/441a36681f93</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 14:22:08 GMT</pubDate>
            <atom:updated>2022-07-17T14:45:38.247Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*As3G6qDHXnnKWuXbUEpHmA.png" /></figure><p>可透過CONTROL+ENTER換行</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*VYlBEau4nteXWEmoFhX9aA.png" /></figure><p>若元件太小導致無法看到所有文字，可點Editor&gt;Size to Fit Content自動適應文字大小</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7ofqPbLnyD80828HCnJ4w.png" /></figure><p>屬性Lines可用來設定顯示的行數(0:不限、1:行….etc.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dMIhn1F__wuAUX8R6IZ8TQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GvJFU88qMYYBs9P0pseMuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zluILm0Wbjv3RVkXlddCxQ.png" /></figure><h3>調整字型</h3><blockquote>預設系統字體是San Francisco(SF Pro)</blockquote><p>SF Pro is the system font in iOS and iPadOS. iOS and iPadOS apps can also use NY.</p><p><a href="https://developer.apple.com/design/human-interface-guidelines/foundations/typography/">Typography</a></p><blockquote>調整方式</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QDR5Hdo3uoXrLAWK3y7lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ucyrrGOC8dBg_9fV7dkQNg.png" /><figcaption>font要先選Custom才可選擇字型</figcaption></figure><h3>安裝與使用系統外的字型</h3><p>參考此篇練習</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/%E7%82%BA-ios-app-%E5%8A%A0%E5%85%A5%E5%AE%A2%E8%A3%BD%E5%AD%97%E5%9E%8B-custom-font-d2b28b0269e0">為 iOS App 加入客製字型 (custom font)</a></p><p>先到免費的字型網站下載ttf：<br><a href="https://www.1001freefonts.com/various-fonts.php">https://www.1001freefonts.com/various-fonts.php</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZoPRG1BheeGDJdsXVcqtw.png" /></figure><p>接著把.ttf拉到專案內，並勾選add to targets內的專案名稱，該專案才能使用字型</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I2bcfKiT1iIkV7c3GIZmQQ.png" /></figure><p>點擊專案資料夾，並切到info<br>於任何一個key上按+，並新增Fonts provided by application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aNVhlVm-MlxAs1cAeNtOGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8Yk5XPMg9mPcQA7BKwpNA.png" /></figure><p>新增後點+，會出現item0<br>建議先把右側的視窗關掉，否則會擋住value欄<br>在value欄輸入完整的字型檔案名稱，如果引用多ttf，則要有多個item(一個item對應一組ttf)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VPlEWRaghUuWvBydMuqrjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8rY0eifvurJH70UEJWhcTg.png" /></figure><p>回到Label屬性，可選用剛剛設定的字型</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k8soVm_Zm4uSRQXn4uk6dQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*8MQBcplLhX4hyCSR_cjSxQ.png" /><figcaption>模擬器內顯示正常</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=441a36681f93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#001 熟悉 App gif 錄製，GitHub]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/001-%E7%86%9F%E6%82%89-app-gif-%E9%8C%84%E8%A3%BD-github-97aca1dde711?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/97aca1dde711</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Mon, 11 Jul 2022 08:16:50 GMT</pubDate>
            <atom:updated>2022-07-11T10:18:55.238Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>本次練習重點</strong></blockquote><ol><li>於Simulator錄製影片與Gif</li><li>爲APP加上icon</li><li>使用label、Button、View Controller、Segue</li><li>於X Code內直接連結GitHub，並新增、修改專案</li><li>將APP放入手機內</li></ol><blockquote><strong>Git連結</strong></blockquote><p><a href="https://github.com/YCL72920/HW001_FirstBasicApp">GitHub - YCL72920/HW001_FirstBasicApp</a></p><blockquote><strong>於Simulator錄製影片與Gif</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*BsF218wUktHfkBU5B7nE8Q.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNUA3rhoV2QYNAFZk9FLXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*MvHC_YShZJhRK-TMRXx8Hw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*rm8Q7cW_DgnUESBgDlxvog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*cb7KaE3Mc4za8x3xFVlh5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7AjcaJiPjEmr9USjWJB5Gw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*2dYlcGiS0rvuHjO3lrUJmA.png" /></figure><blockquote><strong>爲APP加上icon</strong></blockquote><p>在X Code 14內可直接設定一張高清圖為ICON(須為1024*1024，否則執行時會報錯)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CSDsQ7Q6Z4Te5XEkqlqXrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NdqIIKXA5LdGEXWICUWOhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cDBuO_H_QuXjNYWCcqu2Ng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O79aNsLg-yJqqixcA50VCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DzNG2TbiYo4-9AV2JKOivA.png" /></figure><blockquote><strong>練習使用label、Button、View Controller、segue</strong></blockquote><p>label：用來呈現單純的文字(無法設定action)</p><p>Button：按鈕(可設定action)</p><p>View Controller：一整個顯示畫面(畫布的概念)</p><p>segue：設定轉場</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qazU4wrSPU2UFkzcp8IQBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzdLC2k0WnpaPFr12IKpdg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTGHu5VMuyEpBnNeRfz2Fw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfjBdJG0zZSpBlUVfUK__w.png" /></figure><blockquote><strong>參考資料</strong></blockquote><p>錄製Gif</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/%E9%8C%84%E8%A3%BD%E5%88%86%E4%BA%AB%E7%B2%BE%E9%87%87%E7%9A%84ios-app%E6%93%8D%E4%BD%9C%E5%BD%B1%E7%89%87%E5%92%8Cgif-ffae55ffdbe1">錄製分享精采的 iOS App 操作影片</a></p><p>如何將 iOS App 作業上傳到 GitHub</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%A6%82%E4%BD%95%E5%B0%87-ios-app-%E4%BD%9C%E6%A5%AD%E4%B8%8A%E5%82%B3%E5%88%B0-github-135416069dfd">如何將 iOS App 作業上傳到 GitHub</a></p><p>從 Xcode 將 App 安裝到 iPhone</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%BE%9E-xcode-8-%E5%B0%87app%E5%AE%89%E8%A3%9D%E5%88%B0-iphone-%E7%9A%84%E5%B0%8F%E5%B0%8F2%E5%80%8B%E6%AD%A5%E9%A9%9F-39f7b81b69a6">從 Xcode 將 App 安裝到 iPhone</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97aca1dde711" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/001-%E7%86%9F%E6%82%89-app-gif-%E9%8C%84%E8%A3%BD-github-97aca1dde711">#001 熟悉 App gif 錄製，GitHub</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[#000 關於初學APP的我]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/000-%E9%97%9C%E6%96%BC%E5%88%9D%E5%AD%B8app%E7%9A%84%E6%88%91-7cf9c5114803?source=rss-61dd7585b3a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cf9c5114803</guid>
            <dc:creator><![CDATA[Iris Liu]]></dc:creator>
            <pubDate>Sun, 10 Jul 2022 19:33:17 GMT</pubDate>
            <atom:updated>2022-07-11T03:52:41.722Z</atom:updated>
            <content:encoded><![CDATA[<p>我是Iris ，原本是活在JAVA世界的挨踢狗。</p><blockquote><strong>從來沒想過會碰APP，直到我膝蓋中了一箭</strong></blockquote><p>2021/09換單位後，在沒討論的情況下，被老闆安排處理iOS APP業務。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Vuhxnaoul5ITP8pn4XYN5w.jpeg" /></figure><blockquote><strong>不喜歡無能的自己</strong></blockquote><p>雖然APP有配合的PG協助開發，但在不懂APP的情況下和User/PG討論需求可行性和邏輯、解線上問題，還是造成非常大的困擾，每天都在懷疑人生。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*kDbQs2r2n0HHctq7UGJV6A.jpeg" /></figure><blockquote><strong>既然工作會用到，那就來點個技能吧 !<br>說不定下次轉職還會派上用場(?)</strong></blockquote><p>抱持著這樣的心態，透過google大神找到了彼得潘的課程。<br>看完後立刻填單報名，而新買的MAC成了我2022的兒童節禮物XD</p><p>至於四月報名完畢、七月離職又是另一個故事了(菸）</p><blockquote><strong>想提醒自己「紅皇后假說」：<br>你必須用力奔跑，才能使自己留在原地</strong></blockquote><p>這行永遠會有新的挑戰、更好的解法問世。<br>即使每天進步一點點也好，至少你是在前進的。<br>放棄學習並不是停在原地，而是在倒退。<br>不要成為那個，連自己都會討厭的人。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cf9c5114803" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/000-%E9%97%9C%E6%96%BC%E5%88%9D%E5%AD%B8app%E7%9A%84%E6%88%91-7cf9c5114803">#000 關於初學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>
    </channel>
</rss>