<?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 Wade Lu on Medium]]></title>
        <description><![CDATA[Stories by Wade Lu on Medium]]></description>
        <link>https://medium.com/@z0furu?source=rss-4b7406b79f23------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1oroXmg0nkXFFEN8Mcnfcg.jpeg</url>
            <title>Stories by Wade Lu on Medium</title>
            <link>https://medium.com/@z0furu?source=rss-4b7406b79f23------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:12:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@z0furu/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[iOS Silent Notification]]></title>
            <link>https://medium.com/@z0furu/ios-silent-notification-d1f23d0bac03?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1f23d0bac03</guid>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Thu, 13 Jun 2019 03:45:10 GMT</pubDate>
            <atom:updated>2019-06-13T03:45:10.754Z</atom:updated>
            <content:encoded><![CDATA[<h3>取得 token</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7f5b367a5731cdafdfaf79eaa5f38ce8/href">https://medium.com/media/7f5b367a5731cdafdfaf79eaa5f38ce8/href</a></iframe><h3>接收推播</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d475ebdca2bbcf9667e79136d84afce/href">https://medium.com/media/4d475ebdca2bbcf9667e79136d84afce/href</a></iframe><h3><strong>推播格式</strong></h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c751fecfb5dfbb3050b5b75c1b083896/href">https://medium.com/media/c751fecfb5dfbb3050b5b75c1b083896/href</a></iframe><p>測試工具：Easy APNs Provider</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1f23d0bac03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Plugins]]></title>
            <link>https://medium.com/@z0furu/android-plugins-dda502fed043?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/dda502fed043</guid>
            <category><![CDATA[android-studio-plugins]]></category>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Fri, 07 Jun 2019 16:36:26 GMT</pubDate>
            <atom:updated>2019-06-07T16:36:26.070Z</atom:updated>
            <content:encoded><![CDATA[<p>記錄常用到的Plugins，若有新增會再更新</p><h3>UI</h3><ol><li><a href="https://github.com/niorgai/Android-Resource-Usage-Count">Android Resource Count</a></li><li><a href="https://github.com/drakeet/LayoutFormatter">LayoutFormatter</a></li><li><a href="https://github.com/ChrisRM/material-theme-jetbrains">material-theme-jetbrains</a></li><li><a href="https://plugins.jetbrains.com/plugin/10080-rainbow-brackets">Rainbow Brackets</a></li></ol><h3>POJO</h3><ol><li><a href="https://github.com/zzz40500/GsonFormat">GsonFormat</a></li><li><a href="https://github.com/robohorse/RoboPOJOGenerator">RoboPOJOGenerator</a></li><li><a href="https://plugins.jetbrains.com/plugin/9960-json-to-kotlin-class-jsontokotlinclass-">JSON To Kotlin Class</a></li></ol><h3>Git</h3><ol><li><a href="https://plugins.jetbrains.com/plugin/7495--ignore">.ignore</a></li></ol><h3>Database</h3><ol><li><a href="https://plugins.jetbrains.com/plugin/11283-sql-android">SQL Android</a></li></ol><h3>Gradle</h3><ol><li><a href="https://plugins.jetbrains.com/plugin/7299-gradle-dependencies-helper">Gradle Dependencies Helper</a></li></ol><h3>Kotlin</h3><ol><li><a href="https://plugins.jetbrains.com/plugin/10301-kotlin-sequence-debugger">Kotlin Sequence Debugger</a></li></ol><h3>Other</h3><ol><li><a href="https://plugins.jetbrains.com/plugin/9792-key-promoter-x">Key Promoter X</a></li><li><a href="https://plugins.jetbrains.com/plugin/7275-codeglance">CodeGlance</a></li><li><a href="https://plugins.jetbrains.com/plugin/8261-findviewbyme">FindViewByMe</a></li><li><a href="https://github.com/JetBrains/ideavim">ideavim</a></li><li><a href="https://plugins.jetbrains.com/plugin/8603-eventbus3-intellij-plugin">EventBus3 Intellij Plugin</a></li><li><a href="https://plugins.jetbrains.com/plugin/10037-csv-plugin">CSV Plugin</a></li><li><a href="https://github.com/mcharmas/android-parcelable-intellij-plugin">android-parcelable</a></li><li><a href="https://github.com/niorgai/Android-Resource-Usage-Count">計算Resource次數</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dda502fed043" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unit Test 紀錄]]></title>
            <link>https://medium.com/@z0furu/unit-test-%E7%B4%80%E9%8C%84-66062bb50d44?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/66062bb50d44</guid>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Fri, 13 Apr 2018 08:07:54 GMT</pubDate>
            <atom:updated>2018-04-13T08:07:54.929Z</atom:updated>
            <content:encoded><![CDATA[<p>Unit Test 紀錄</p><p>在檢查字串是否輸入為空時，很多人會使用TextUtils.isEmpty() 判斷是否為空，但是因為Android SDK的部分，所以會出現以下錯誤</p><pre>java.lang.RuntimeException: Method isEmpty in android.text.TextUtils not mocked. See <a href="http://g.co/androidstudio/not-mocked">http://g.co/androidstudio/not-mocked</a> for details.</pre><p>我們可以有兩種做法，一種是將 TextUtils.isEmpty()方法改成 Objects.equals() ，另外一種是在 test的目錄底下新增一個一模一樣的Class以及函數名(<a href="https://www.jianshu.com/p/f5d197a4d83a"><strong><em>參考連結</em></strong></a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66062bb50d44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[阿里巴巴Android 開發手冊心得記錄]]></title>
            <link>https://medium.com/@z0furu/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4android-%E9%96%8B%E7%99%BC%E6%89%8B%E5%86%8A%E5%BF%83%E5%BE%97%E8%A8%98%E9%8C%84-45c22f1aa975?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/45c22f1aa975</guid>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Fri, 02 Mar 2018 16:20:00 GMT</pubDate>
            <atom:updated>2018-03-02T16:20:00.011Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android基本組件</h3><ol><li>避免在Service中# onStartCommand()/onBind()方法中執行耗時的工作，如果有需求，應該改用IntentService或其他異步機制完成(p.8)</li><li>避免在BroadcastReceiver#onReceive()中執行耗時的工作，如果有耗時的工作，應該使用IntentService，而不應該在 BroadcaseReceiver內建子線程去做。(p.9)</li><li>應使用LocalBroadcaseManager#sendBroadcast()來發送敏感資料，避免被攔截，同時可提高廣播速度。(p.16)</li><li>當前Activity的onPause()方法執行結束後，才會執行下一個Activity的onCreate()，所以onPause()不適合做太耗時的工作，會影響到下一個Activity開啟時間，造成頁面之間跳轉的效率</li></ol><p>補充第二點說明：</p><p>因為該方法是在主線程執行，如果執行耗時工作會導致UI不流暢，可以使用IntentService、建立 HandlerThread 或者使用Context#registerReceiver(BroadcastReceiver, IntentFilter, Handler)等方法，在其他工作線程執行onReceive方法。BroadcaseReceiver#onReceive()方法耗時超過十秒鐘，可能會被系統Killer。</p><h3>UI相關</h3><ol><li>當UI會有很多層時，應盡量使用 <strong>RelativeLayout </strong>而不是 <strong>LinearLayout 。</strong>(p.22)</li><li>不能在<strong>ScrollView </strong>包 <strong>ListView/ GridView/RecyclerView</strong>..等。因為這樣會把上述的所有item加載到內存中，需要消耗巨大的內存和cpu去繪製。<a href="https://developer.android.com/reference/android/widget/ScrollView.html"><strong>官方也明確禁止</strong></a>。可用NestedScrollView替代(p.28)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45c22f1aa975" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[紀錄]]></title>
            <link>https://medium.com/@z0furu/%E7%B4%80%E9%8C%84-da0f1ce91310?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/da0f1ce91310</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Mon, 20 Feb 2017 01:18:42 GMT</pubDate>
            <atom:updated>2017-02-20T01:18:42.471Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>撥打電話：<a href="https://code.tutsplus.com/tutorials/how-to-make-calls-and-use-sms-in-android-apps--cms-28168?utm_source=Android+Weekly&amp;utm_campaign=24e431e122-android-weekly-245&amp;utm_medium=email&amp;utm_term=0_4eb677ad19-24e431e122-337962066">https://code.tutsplus.com/tutorials/how-to-make-calls-and-use-sms-in-android-apps--cms-28168?utm_source=Android+Weekly&amp;utm_campaign=24e431e122-android-weekly-245&amp;utm_medium=email&amp;utm_term=0_4eb677ad19-24e431e122-337962066</a></li><li>ADB 用法大全 ：<a href="https://github.com/mzlogin/awesome-adb">https://github.com/mzlogin/awesome-adb</a></li><li>android 7.0 : <a href="http://www.jianshu.com/p/56b9fb319310">http://www.jianshu.com/p/56b9fb319310</a></li><li>中國開源：<a href="http://p.codekk.com/">http://p.codekk.com</a></li><li>Android事件分析：<a href="http://www.diycode.cc/topics/352">http://www.diycode.cc/topics/352</a></li><li>Gradle分析：<a href="http://android.walfud.com/android-gradle-%E7%9C%8B%E8%BF%99%E4%B8%80%E7%AF%87%E5%B0%B1%E5%A4%9F%E4%BA%86/">http://android.walfud.com/android-gradle-看这一篇就够了/</a></li><li>CursorLoader 用SQL載入大量資料時可使用：<a href="http://hukai.me/android-training-course-in-chinese/background-jobs/load-data-background/setup-loader.html">http://hukai.me/android-training-course-in-chinese/background-jobs/load-data-background/setup-loader.html</a></li><li>底部導覽：<a href="http://www.jianshu.com/p/826d730bd841">http://www.jianshu.com/p/826d730bd841</a></li><li>書單：<a href="http://givemepass.blogspot.tw/2015/10/blog-post.html">http://givemepass.blogspot.tw/2015/10/blog-post.html</a></li><li><a href="https://github.com/dbacinski/Design-Patterns-In-Kotlin">https://github.com/dbacinski/Design-Patterns-In-Kotlin</a></li><li>螢幕高度 <a href="http://blog.csdn.net/linglongxin24/article/details/52993128">http://blog.csdn.net/linglongxin24/article/details/52993128</a></li><li>搜尋鈕 <a href="https://medium.com/@alexstyl/https-medium-com-alexstyl-animating-the-toolbar-7a8f1aab39dd?source=userActivityShare-4b7406b79f23-1477498357">https://medium.com/@alexstyl/https-medium-com-alexstyl-animating-the-toolbar-7a8f1aab39dd?source=userActivityShare-4b7406b79f23-1477498357</a></li><li>java 面試：<a href="https://zhuanlan.zhihu.com/p/23533393">https://zhuanlan.zhihu.com/p/23533393</a></li><li>開發優化 <a href="http://hukai.me/android-performance-patterns-season-6/">http://hukai.me/android-performance-patterns-season-6/</a></li><li>開發心得 <a href="http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2016/1006/6659.html">http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2016/1006/6659.html</a></li><li>View 衝突 <a href="http://blog.csdn.net/xiaohanluo/article/details/52130923">http://blog.csdn.net/xiaohanluo/article/details/52130923</a></li><li>日期 <a href="https://github.com/JakeWharton/ThreeTenABP">https://github.com/JakeWharton/ThreeTenABP</a></li><li>android bug ：<a href="https://github.com/leibing8912/AndroidCommonBug">https://github.com/leibing8912/AndroidCommonBug</a></li><li>離線優化：<a href="https://zhuanlan.zhihu.com/p/24340160">https://zhuanlan.zhihu.com/p/24340160</a></li><li>okHttp+https：<a href="http://www.jianshu.com/p/9e944688fab9">http://www.jianshu.com/p/9e944688fab9</a></li><li>滾動設計:<a href="http://blog.cgsdream.org/2016/12/30/android-nesting-scroll/">http://blog.cgsdream.org/2016/12/30/android-nesting-scroll/</a></li><li>權限封裝：<a href="http://www.jianshu.com/p/100e23be5b1c">http://www.jianshu.com/p/100e23be5b1c</a> , <a href="http://www.jianshu.com/p/4a60b064a0ab">http://www.jianshu.com/p/4a60b064a0ab</a></li><li>Java 反射 ：<a href="https://github.com/JustinSDK/JavaSE6Tutorial/blob/master/docs/CH16.md">https://github.com/JustinSDK/JavaSE6Tutorial/blob/master/docs/CH16.md</a></li><li>動態切換Layout <a href="https://github.com/chenpengfei88/StatusLayout">https://github.com/chenpengfei88/StatusLayout</a></li><li>TextView Html : <a href="http://stackoverflow.com/questions/2116162/how-to-display-html-in-textview">http://stackoverflow.com/questions/2116162/how-to-display-html-in-textview</a></li><li>倒數：<a href="http://blog.csdn.net/chengxu_hou/article/details/54972502">http://blog.csdn.net/chengxu_hou/article/details/54972502</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da0f1ce91310" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[善用String.xml]]></title>
            <link>https://medium.com/@z0furu/%E5%96%84%E7%94%A8string-xml-634130e9184c?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/634130e9184c</guid>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Wed, 11 May 2016 08:56:58 GMT</pubDate>
            <atom:updated>2016-05-11T08:58:41.915Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>基本用法</strong></p><pre>•我們在string.xml裡面加上：<br>  &lt;string name=”buy_mpbr”&gt;我想買一台MBPR&lt;/string&gt;</pre><pre>•接著使用就可以得到該字串：<br>  getString(R.string.<em>buy_mpbr</em>)</pre><p><strong>添加參數</strong></p><pre>•修改string.xml:<br>  &lt;string name=&quot;buy_mpbr&quot;&gt;我想買%s台MBPR&lt;/string&gt;<br>  &lt;string name=&quot;one&quot;&gt;一&lt;/string&gt;</pre><pre>•若有參數，則可下面方法得到<br>  getString(R.string.<em>buy_mpbr</em>,getString(R.string.<em>one</em>))</pre><p><strong>多個參數</strong></p><pre>•修改string.xml:<br>  &lt;string name=&quot;buy_mpbr&quot;&gt;我想買%1$s台MBPR送給%2$s當作禮物&lt;/string&gt;<br>  &lt;string name=&quot;one&quot;&gt;一&lt;/string&gt;<br>  &lt;string name=&quot;wade&quot;&gt;Wade&lt;/string&gt;</pre><pre>•再多參數下，需要給予參數位置訊息，如%1$s。參數會根據位置訊息而相對應<br>  getString(R.string.<em>buy_mpbr</em>,<br>  getString(R.string.<em>one</em>), <br>  getString(R.string.<em>wade</em>))</pre><p><strong>多國語言</strong></p><pre>•使用美語，翻譯如下：<br> &lt;string name=&quot;buy_mpbr&quot;&gt;I want to buy %1$s MBPR to %2$s as               gift&lt;/string&gt;<br> &lt;string name=&quot;one&quot;&gt;一&lt;/string&gt;<br> &lt;string name=&quot;wade&quot;&gt;Wade&lt;/string&gt;</pre><pre>我們可以發現MBPR這個詞並沒有翻譯，我們可以使用xliff:g，標注起來，這樣別人或是使用google自動翻譯服務時，對方就知道該詞無需翻譯，例如：</pre><pre>&lt;string name=&quot;buy_mpbr&quot;&gt;I want to buy %1$s &lt;xliff:g id = &quot;MBPR&quot;&gt;MBPR &lt;/xliff:g&gt;to %2$s as gift&lt;/string&gt;</pre><p><a href="http://www.jianshu.com/p/bf8c4b4c8049"><strong>原文出處</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=634130e9184c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[REST]]></title>
            <link>https://medium.com/@z0furu/rest-4b50ba48ac92?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b50ba48ac92</guid>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Wed, 11 May 2016 07:36:02 GMT</pubDate>
            <atom:updated>2016-05-11T07:36:02.398Z</atom:updated>
            <content:encoded><![CDATA[<p>具象狀態傳輸(<strong>Re</strong>presentational <strong>S</strong>tate <strong>T</strong>ransfer，簡稱REST)，是一種設計風格而不是標準。</p><pre>REST通常基於使用HTTP，URL，XML以及HTML這些現有的廣泛流行的協定及標準。<br>• 資源由URL來指定。<br>• 對資源的操作包括獲取、創建、修改和刪除資源，這些操作正好對應HTTP協議提供的   GET、POST、PUT和DELETE方法。<br>• 通過操作資源的表現形式來操作資源。<br>• 資源的表現形式則是XML或者HTML，取決於讀者是機器還是人，是消費web服務的客戶軟體還是web瀏覽器。當然也可以是任何其他的格式。</pre><pre>參考：<a href="https://zh.wikipedia.org/wiki/REST">wiki</a></pre><p><strong>RESTful</strong><br>符合REST設計風格的Web API稱為RESTful。由以下三個方面資源進行定義</p><pre>• 直觀簡單的網址。<br>• 傳輸的資源：Web接受傳送及回傳的型態，例如：JSON，XML<br>• 對資源的操作，例如：POST,GET,DELETE,PUT</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b50ba48ac92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java 學習筆記]]></title>
            <link>https://medium.com/@z0furu/java-%E5%AD%B8%E7%BF%92%E7%AD%86%E8%A8%98-258bdd7db2ad?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/258bdd7db2ad</guid>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Thu, 05 May 2016 13:09:48 GMT</pubDate>
            <atom:updated>2016-05-11T06:56:52.811Z</atom:updated>
            <content:encoded><![CDATA[<p>Java 學習筆記</p><p>● <strong><em>&amp; 和 &amp;&amp;區別</em><br></strong>&amp;：會運算前後兩個運算元<br>&amp;&amp;：先運算左邊的運算元，假若左邊為true，才會運算右邊的運算元</p><p>● <strong>assert(斷言)</strong><br>通常用在測試程式時用的，例如：</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5374cf3dc4d502a7cfae1f6c93d57cf8/href">https://medium.com/media/5374cf3dc4d502a7cfae1f6c93d57cf8/href</a></iframe><p>● <strong>GC(Garbage collection)垃圾回收<br></strong>在適當的時候，Javac會自動檢查物件，是否有未被參考的物件，若有的話就會清除物件，回收物件所佔用的記憶體</p><p>● <strong>overLoading(多載) 和 override(覆寫) 差別</strong><br>overLoading:名字一樣的函式，隨著引數的不同，Java會自動呼應相對樣的函式。<br>override:子類別重寫父類別的方法，且函式明與引數皆須一樣。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=258bdd7db2ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RecyclerView]]></title>
            <link>https://medium.com/@z0furu/recyclerview-74165d79b3f?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/74165d79b3f</guid>
            <category><![CDATA[recyclerview]]></category>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Thu, 05 May 2016 07:14:53 GMT</pubDate>
            <atom:updated>2016-05-05T07:14:53.998Z</atom:updated>
            <content:encoded><![CDATA[<p>RecyclerView</p><p>為了使用RecyclerView，我們需要使用LayoutManager和Adapter<br>Adapter :繼承RecyclerView.Adapter 用來綁定數據以及視圖item進行綁定<br>LayoutManager : 設置RecyclerView的佈局，以及item的資料顯示</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eztrsuay1LHzKX03AFIlUQ.png" /><figcaption>RecyclerView基本架構圖</figcaption></figure><p><strong>RecyclerView.Adapter</strong><br>需要覆寫三個方法<br>1. onCreateViewHolder() : 用來創建item視圖，返回相對應的ViewHolder<br>2.onBindViewHolder() ：用來綁定數據<br>3.getItemCount() : 返回item的總數</p><p><strong>RecyclerView.ViewHolder<br></strong>基本用法為放置View的對象。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74165d79b3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object-c上傳]]></title>
            <link>https://medium.com/@z0furu/object-c%E4%B8%8A%E5%82%B3-dcd4a560212f?source=rss-4b7406b79f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcd4a560212f</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Wade Lu]]></dc:creator>
            <pubDate>Thu, 17 Mar 2016 08:45:12 GMT</pubDate>
            <atom:updated>2016-03-17T08:45:12.467Z</atom:updated>
            <content:encoded><![CDATA[<p>Object-c上傳</p><p>-(void)postTest {</p><p>NSLog(@”POST”);</p><p>NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];</p><p>NSURL *url = [[NSURL alloc] initWithString:@”http://163.17.9.116/dr/register.php&quot;];</p><p>NSString *httpBodyString = [NSString stringWithFormat:@”email=%@”, self.account.text];</p><p>NSLog(@”%@”, httpBodyString);</p><p>[request setURL:url];</p><p>[request setHTTPMethod:@”POST”];</p><p>[request setHTTPBody:[httpBodyString dataUsingEncoding:NSUTF8StringEncoding]];</p><p>// NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];</p><p>NSURLSession *session = [NSURLSession sharedSession];</p><p>[[session dataTaskWithRequest:request completionHandler: ^(NSData *data, NSURLResponse *response, NSError *error) {</p><p>if ([data length] &gt; 0) {</p><p>NSString *strResponse = [[NSString alloc] initWithData: data encoding:(NSUTF8StringEncoding)];</p><p>NSLog(@”%@”, strResponse);</p><p>}</p><p>}]resume];</p><p>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcd4a560212f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>