<?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 Wen on Medium]]></title>
        <description><![CDATA[Stories by Ethan Wen on Medium]]></description>
        <link>https://medium.com/@ethanwen?source=rss-19d996b2be31------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LnkV93tV_SaiZyuC.jpg</url>
            <title>Stories by Ethan Wen on Medium</title>
            <link>https://medium.com/@ethanwen?source=rss-19d996b2be31------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 21:27:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ethanwen/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[關於bounds和frame的差別]]></title>
            <link>https://medium.com/@ethanwen/%E9%97%9C%E6%96%BCbounds%E5%92%8Cframe%E7%9A%84%E5%B7%AE%E5%88%A5-f01c573cd2d7?source=rss-19d996b2be31------2</link>
            <guid isPermaLink="false">https://medium.com/p/f01c573cd2d7</guid>
            <category><![CDATA[frames]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[bound]]></category>
            <dc:creator><![CDATA[Ethan Wen]]></dc:creator>
            <pubDate>Fri, 01 Jul 2016 07:11:00 GMT</pubDate>
            <atom:updated>2016-07-01T07:11:00.160Z</atom:updated>
            <content:encoded><![CDATA[<p>Ethan’s 定義：</p><p>Bounds是從自己的角度來看自己的座標點，通常，每一個view左上角的原點都是(0,0)</p><p>Frame則是從superView的觀點來看…</p><p>從下圖來看：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*F3AKKRpqZxcvXVZkPgNqqQ.jpeg" /></figure><p>ViewB左上角的點，從ViewB的Bounds來看，該點的座標為(0,0)，若問ViewB的Frame的話，該點的座標則是(200,100)，因為該座標是從ViewA的角度來看。</p><p>若從程式的參數來看…</p><p>frame(self.frame.original.x, self.frame.original.y, self.frame.size.width, self.frame.size.height)</p><p>bounds(0, 0, self.frame.original.y, self.frame.size.width, self.frame.size.height)</p><p>bounds除非你設定的話，座標默認是0, 0</p><p>frame則是你可以自由在superView的內部中自由調整</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f01c573cd2d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[關於圓角view的製作－以圖片為例]]></title>
            <link>https://medium.com/@ethanwen/%E9%97%9C%E6%96%BC%E5%9C%93%E8%A7%92view%E7%9A%84%E8%A3%BD%E4%BD%9C-%E4%BB%A5%E5%9C%96%E7%89%87%E7%82%BA%E4%BE%8B-57102e1aa631?source=rss-19d996b2be31------2</link>
            <guid isPermaLink="false">https://medium.com/p/57102e1aa631</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[cornerradius]]></category>
            <dc:creator><![CDATA[Ethan Wen]]></dc:creator>
            <pubDate>Fri, 01 Jul 2016 07:06:59 GMT</pubDate>
            <atom:updated>2016-07-01T07:06:59.090Z</atom:updated>
            <content:encoded><![CDATA[<p>雖然之前就做過，但今天記錄下來，分享給大家 :)</p><p>有問題，歡迎彼此交流～</p><p>當設定UIImageView.layer.cornerRadius時，不會立即在UIView上呈現，它只會在背景顏色（background color）和邊界（border）上呈現，因此當你設定…</p><p>UIImageView.layer.cornerRadius = 10 // 這樣並不會呈現</p><p>// 只有當你輸入一下指令，才能產生有圓角的圖示…</p><p>UIImageView.clipToBounds = true</p><p>又或者…另一個寫法是…（如果你希望你的圓角能夠加上邊界的話）</p><p>UIImageView.layer.borderWidth = 1</p><p>UIImageView.layer.borderColor = UIColor.blackColor().CGColor</p><p>UIImageView.layer.masksToBounds = true</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57102e1aa631" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[今天看iCloud文件習得步驟⋯]]></title>
            <link>https://medium.com/@ethanwen/%E4%BB%8A%E5%A4%A9%E7%9C%8Bicloud%E6%96%87%E4%BB%B6%E7%BF%92%E5%BE%97%E6%AD%A5%E9%A9%9F-26aee4ff84d0?source=rss-19d996b2be31------2</link>
            <guid isPermaLink="false">https://medium.com/p/26aee4ff84d0</guid>
            <category><![CDATA[settings]]></category>
            <category><![CDATA[icloud]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Ethan Wen]]></dc:creator>
            <pubDate>Thu, 02 Jun 2016 15:55:57 GMT</pubDate>
            <atom:updated>2016-06-02T15:55:57.219Z</atom:updated>
            <content:encoded><![CDATA[<p>今天看iCloud文件習得步驟⋯</p><p>先透過NSFileManager取得currentiCloudToken⋯</p><p>再將取得的currentiCloudToken與先前Token做比對⋯</p><p>然後針對Token的改變設定NSNotificationCenter⋯</p><p>設定第一次登入以及沒開啟iCloud功能的提醒⋯</p><p>我只看到這裡</p><p>以上⋯</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26aee4ff84d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>