<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-269677114887139175</id><updated>2024-09-02T00:37:16.473-07:00</updated><title type='text'>流浪者的網誌</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-9048116012231146907</id><published>2016-03-16T02:15:00.000-07:00</published><updated>2016-03-18T00:37:07.170-07:00</updated><title type='text'>跆拳道足技展示(TKD)APP(v1.0)開發心得分享</title><content type='html'>&lt;h3&gt;
&lt;/h3&gt;
&lt;div&gt;
最近做了一個「跆拳道足技展示」的APP，英文名稱Taekwondo Kick Demo，簡稱TKD，現在已上架到Google Play上，iOS的部份則還在等審查中。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
基本上做這個APP的目的是想要讓更多人了解跆拳道這個運動，以推廣為目的，因此是永久免費的APP，而做這類的APP也算是我個人的興趣，也希望藉由分享自己的興趣及各種成果來找到更多志同道合的朋友來一起努力追求夢想。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE1Bx-o-APebqyYi_5yXs9Y2ZBMXyPWmAeU5GofnoTE0vONiosMKARWEnHZq26P41STC0-9Dnm3BCr4rOGkC0SbX4JNfqmYHZxtn8U-V2RxiVeAJKQEVIIa0H2P1y8G0zKEDovISP6CPnx/s1600/MainMenu_320x480.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE1Bx-o-APebqyYi_5yXs9Y2ZBMXyPWmAeU5GofnoTE0vONiosMKARWEnHZq26P41STC0-9Dnm3BCr4rOGkC0SbX4JNfqmYHZxtn8U-V2RxiVeAJKQEVIIa0H2P1y8G0zKEDovISP6CPnx/s200/MainMenu_320x480.png&quot; width=&quot;133&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5OrBdVs9PdD2QRIZv27BnX_wVUd8sh5bf6iv5I1vPyP9LGJ4cDXAfp1klMr8Ol8QZ1n3M0jwOyKoWy8axrnRnCn_naMfZwqfbhbiiSjeTFcpcO1Xfn0gujkB4QCXfTGz62is8UMwGP77d/s1600/DemoMenu_320x480.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5OrBdVs9PdD2QRIZv27BnX_wVUd8sh5bf6iv5I1vPyP9LGJ4cDXAfp1klMr8Ol8QZ1n3M0jwOyKoWy8axrnRnCn_naMfZwqfbhbiiSjeTFcpcO1Xfn0gujkB4QCXfTGz62is8UMwGP77d/s200/DemoMenu_320x480.png&quot; width=&quot;132&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGC227RO56x5CN0NyB2O6bDAs1lVVUp3SAkEeKDODoV2W1zM-AnCb1e8blglXPkQNpRDIFC5MBScQeNGSD1t3_ZA927h_VcWo_XRcFpPL3lnebOVYCwXjVKUIvqVAaagqx4PE2QTe3o4lF/s1600/BasicKickDemo_320x480.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGC227RO56x5CN0NyB2O6bDAs1lVVUp3SAkEeKDODoV2W1zM-AnCb1e8blglXPkQNpRDIFC5MBScQeNGSD1t3_ZA927h_VcWo_XRcFpPL3lnebOVYCwXjVKUIvqVAaagqx4PE2QTe3o4lF/s200/BasicKickDemo_320x480.png&quot; width=&quot;133&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
發想與起源&lt;/h3&gt;
&lt;div&gt;
在大學時代我全心全力投入的事情有兩件，第一件是到處參加跆拳道比賽，和各種不同的選手比賽，追求拳來腳往的快感。第二件則是程式設計，然而程式設計是非常消耗精神和時間的，不利於經常需要參加比賽的運動選手所需要的固定作息時間，於是我當時將絕大部份的時間和心思都投入了跆拳道對練技巧的鑽研，但實際上我還是利用了寫程式的一些方法來提升自己的實力，從某個角度來說，我當時是把比賽的應對法則寫成了程式，再經由自我訓練的方式將程式強制輸入到自己的身體裡。用了這個辦法，讓我在當時得到了足以挑戰世界的實力和自信。雖然後來因為種種原因而沒有繼續比賽下去，卻又在陰錯陽差之間讓我全心投入了軟體開發的領域，累積了十幾年的各種開發經驗下來，我也算是有自信可以寫出所有自己想寫的程式，重點有明確的邏輯需求，接下來的關鍵只在於有多少資源，需要花多少時間而已。&lt;br /&gt;
&lt;br /&gt;
從2012搬回台北的這幾年來，我一直想開發的是一種可以跟自己做跆拳道對練的虛擬3D應用程式，但這幾年來卻因為種種瑣事，一直無法如願。&lt;br /&gt;
除了生活瑣事之外，其中最大的原因是我在前二十多年以來，前十年只專注於跆拳道對練法則的鑽研，後十年則只專注於程式設計的領域，其他的事情我是完全不想管。&lt;br /&gt;
&lt;br /&gt;
雖然我的心中有很多想法，但是我總覺得要表達自己的想法，應該是要先拿一個東西出來給別人看，告訴別人我能做得到，而不是只靠一張嘴講得天花亂墜，實際上卻拿不出一點本事。&lt;br /&gt;
當然還有一個很大的問題在於，雖然我對這件事情很有興趣，但實際上我也還沒看到相關的商機，也沒有信心可以說服金主投入資金，所以我只能默默的利用業餘的時候，試著自己做做看。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
嘗試與學習&lt;/h3&gt;
由於資金有限，我花了將近一年的時間，做了各種技術面的嘗試，利用了一些網路上現有的資源去做，其中包含了Kinnect SDK和一些Unity相關套件，但一直找不到能令我滿意的工具。&lt;br /&gt;
最後我發現其實我對於3D技術的了解實在太有限，於是我又花了兩年的時間去電腦補習班學習3D遊戲的製作方法，雖然我真正想做的並不是遊戲，但可以肯定的是我應該可以在學習3D遊戲製作的過程中得到許多我想要知道的方法和技術。&lt;br /&gt;
&lt;br /&gt;
在學習的過程中，我才發現到3D動畫的技術比我想象的要費工，而我想了解的也不過是其中的一小部份而已。對我來說，我應該先學會3D角色的控制，但事實上在試做之後，才發現3D人形的製作也比想象中難，但製做3D模型的過程倒也有趣。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
從選用工具到上手&lt;/h3&gt;
我一開始學的是3DS Max，雖聽說現在市面上大多的遊戲都是用這個軟體做的，但他的缺點就是只支援Windows，因為這些年來我已經完全習慣在OSX上面做開發了，實在不想只為了使用這個軟體而特地開啟Windows，於是我又重頭開始學習使用Maya，用了Maya之後，我發現用Maya比較容易做出質感較好的3D人體模型，而且有MEL可以輔助設計，感覺上比較適合原本就是RD的我，於是就改用Maya來做了。&lt;br /&gt;
&lt;br /&gt;
但Maya和Max主要的功能還是在於3D動畫的製作，其中雖然也有可以用程式語言去控制模型的功能，但基本上仍然只限於動畫的製做層面，如果要做出可以與用戶互動的軟體，還是要靠遊戲引擎，目前我選用的是Unity，選用的原因主要是他比較容易上手，網路上的相關技術支援也比較充足。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
從練習到實做&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
基於尊重原創，但又缺乏美術能力，而且3D塑模技術也不成熟，拿了幾張美女的照片塑出來的都像怪物，最後決定還是先拿自己的開刀好了～因為自己的人像無論做得好壞，都不會得罪別人，也不會有仿冒或被仿冒的問題存在，實在是一舉數得的選擇。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://scontent-tpe1-1.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/10394506_858609847487384_9121141737808129509_n.jpg?oh=fc28f5bd850eb85eeb410342049b7f91&amp;amp;oe=574EA762&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://scontent-tpe1-1.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/10394506_858609847487384_9121141737808129509_n.jpg?oh=fc28f5bd850eb85eeb410342049b7f91&amp;amp;oe=574EA762&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://scontent-tpe1-1.xx.fbcdn.net/hphotos-prn2/v/t1.0-9/10441464_858613084153727_5251395789279864053_n.jpg?oh=798d8be8e9dac1c8a7928b8b5652c418&amp;amp;oe=578F11C6&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://scontent-tpe1-1.xx.fbcdn.net/hphotos-prn2/v/t1.0-9/10441464_858613084153727_5251395789279864053_n.jpg?oh=798d8be8e9dac1c8a7928b8b5652c418&amp;amp;oe=578F11C6&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
剛開始先在3DS Max上練習做的自己的頭像&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://scontent-tpe1-1.xx.fbcdn.net/hphotos-prn2/v/t1.0-9/10616398_896010607080641_6196456492692369812_n.jpg?oh=bc1f2250967420f5b1b6c31723bace25&amp;amp;oe=5754C9C0&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://scontent-tpe1-1.xx.fbcdn.net/hphotos-prn2/v/t1.0-9/10616398_896010607080641_6196456492692369812_n.jpg?oh=bc1f2250967420f5b1b6c31723bace25&amp;amp;oe=5754C9C0&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
後來將在Max做的頭像轉到Maya上修改過的頭像&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://scontent-tpe1-1.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/12243388_1155261184488914_6791450739135193791_n.jpg?oh=cc95bbce83b1a6dcfa23361991b0535a&amp;amp;oe=5788A7CE&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://scontent-tpe1-1.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/12243388_1155261184488914_6791450739135193791_n.jpg?oh=cc95bbce83b1a6dcfa23361991b0535a&amp;amp;oe=5788A7CE&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
全身做好上完骨架，腳底做得有點扁平足&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
太極一場&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/A4hhE2ta85M/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/A4hhE2ta85M?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
從剛上好骨架的T-Pose，要進入足技的準備動作之前，最順勢可以做的就是稍息，立正，平行預備，接著就有一股想做型場動畫的衝動，就做了太極一場的動畫來玩玩。後來覺得這些應該可以分享給有需要的人學習用，所以就乾脆PO到YouTube上了。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
前抬腳&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/WDsuddejMJA/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/WDsuddejMJA?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
從平行預備動作接到前抬腳預備的動作也比較簡單，於是先做了前抬腳的動畫，但實際上這個動作做起來並不順利，因為電腦算的骨架動作會亂轉，最後只好一幀幀的將動作固定好。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
下壓&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/hLu_UIiluuI/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/hLu_UIiluuI?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
做完前抬腳接著做下壓也是順理成章，基本上動畫的製作順利跟實際學習的過程幾乎可以完全相同。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
前踢&lt;/h4&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/EVwSGXCtxmc/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/EVwSGXCtxmc?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
接下來其他的足技動作就必須從平行預備接成退右腳預備的動作，由於之前做的太極一場有做前踢的動作，只要先做好退右腳之後，就可以直接把太極一場的前踢動作拿來接到後面去改一下就能完成。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
旋踢&lt;/h4&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/BxvWwwNZW80/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/BxvWwwNZW80?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
旋踢的動作只要把前踢的動作後半加上轉腰和膝蓋，腳背壓平即可。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
側踢&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/w40z3Cwl-wQ/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/w40z3Cwl-wQ?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
旋踢改成側踢也是順理成章。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
後踢&lt;/h4&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/Bb0dFlAbuYk/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/Bb0dFlAbuYk?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
只要將側踢的前半段改成從背後轉身即可變成後踢。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
後旋踢&lt;/h4&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/G_t4K2DH8Cw/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/G_t4K2DH8Cw?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
後旋踢的轉身可以拿後踢的一部份和上端旋踢來改。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
基本上這些動畫都是練習的作品，有不少人覺動作太快，但我個人是覺得現階段只要掌握關鍵幀的分解動作正確，動作的節奏合理即可，由於我最後想做的是可以和自己甚至是其他人做模擬對練的應用，如果是做為訓練器材，後續如果真的要調整，還有很多地方要依據各種狀況和需求去做修改。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
基本動作都做完之後，就可以把些動畫丟到遊戲引擎(Unity)來玩了，於是剛開始的時候，由於我是想做一個能跟自己對練的人偶，因此我並不想知道他每一次都會做出什麼動作，所以就把所有動作加入了隨機的亂數，基本上做到這裡已經可以拿這組東西來做很多應用了，後來靈機一閃，就拿了這個東西來做成了現在的「跆拳道足技展示」APP。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
從開發到上架&lt;/h3&gt;
&lt;div&gt;
從將3D模型及動畫匯入到Unity，到做出可隨機踢擊各種基本動作，且可以隨機變換左右腳這個部份，大概花不到幾個小時的時間，程式量大概也不超過200行，就想把這些資源做成現在的TKD APP應該不是什麼難事。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
原本的設計就是先做一個可以依照學習動作的順序來展示動作，之後也可以按照用戶的喜好，點選自己想看的動作，而隨機踢擊的部份則可以用來做一些簡單的小測驗來提升用戶學習上的樂趣，大致上的構想就是這麼簡單。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
但實際上要將這個簡單的構想做成APP則沒有想象中的順利，其中最花時間的程式其實並不是人偶的控制，而是UI（使用者界面）的設計及整個動線的控制，大概花了一個半月左右才做完，之後先拿給完全不懂跆拳道的兒子女兒玩玩看，發現了一些設計不良的地方及Bug，又做了一些補強，雖說不滿意，還有很多可以改進的地方，但基本功能目的已經達到，其實已經可以先上架後續再慢慢修改了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
由於這是我第一次將Unity的專案上架到App Store及時Google Play，在準備上架的打包及材料上也遇到了一些小問題，幸好最後都沒有花很多時間就解決了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h3&gt;
目前已知問題&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
目前比較明顯的問題是在某些設備上展示踢擊動作時，人物面孔會出現破裂的狀況：目前原因不明，因為在Maya或Unity環境下都沒有出現這個問題，也無法在開發環境中模擬出這種狀況，很難解決，有可能要重製人物模型，但也有可能重製後仍然無法解決。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
但老實說我是一個內向的人，不是很喜歡抛頭露面，實在不想花太多時間和心思在這個模型上，如果可以的話，還是再放幾個帥氣美型的角色上去把那個怪老頭換下去比較實在～XD。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
相關連結如下：&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
官方網站：&lt;a href=&quot;http://tkd.app.taiyi.info/&quot;&gt;http://tkd.app.taiyi.info&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Facebook粉絲專頁：&lt;a href=&quot;https://www.facebook.com/tkd.app.taiyi.info/&quot;&gt;https://www.facebook.com/tkd.app.taiyi.info/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Google Play(Android)下載連結：&lt;a href=&quot;https://play.google.com/store/apps/details?id=info.taiyi.tkd&quot;&gt;https://play.google.com/store/apps/details?id=info.taiyi.tkd&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
App Store(Apple)下載連結：&lt;a href=&quot;https://itunes.apple.com/us/app/tai-quan-dao-zu-ji-zhan-shi/id1085509081?l=zh&amp;amp;ls=1&amp;amp;mt=8&quot;&gt;https://itunes.apple.com/us/app/tai-quan-dao-zu-ji-zhan-shi/id1085509081?l=zh&amp;amp;ls=1&amp;amp;mt=8&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/9048116012231146907/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2016/03/tkdappv10.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/9048116012231146907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/9048116012231146907'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2016/03/tkdappv10.html' title='跆拳道足技展示(TKD)APP(v1.0)開發心得分享'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE1Bx-o-APebqyYi_5yXs9Y2ZBMXyPWmAeU5GofnoTE0vONiosMKARWEnHZq26P41STC0-9Dnm3BCr4rOGkC0SbX4JNfqmYHZxtn8U-V2RxiVeAJKQEVIIa0H2P1y8G0zKEDovISP6CPnx/s72-c/MainMenu_320x480.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-7542339326312687533</id><published>2013-02-07T10:38:00.001-08:00</published><updated>2013-02-07T11:28:40.241-08:00</updated><title type='text'>iOS 版Chrome解決網頁亂碼問題</title><content type='html'>在iOS 設備上瀏覽網頁的確是一件很舒適的事，但長期下來唯一覺得美中不足的地方就是有些中文或日語等雙字元編碼的網頁會全部都是亂碼，無法閱讀，身為IT人，當然知道其原因所在，簡單的說就是瀏覽器無法辨識該網頁的編碼，一般在PC上的瀏覽器都有手動調整編碼的功能，但在iOS Safari上就是找不到這個功能，之前遇到這種狀況，我都會乖乖放下iOS設備，去電腦前開啓那個網頁，再手動調整一下編碼。&lt;br /&gt;
&lt;br /&gt;
最近才突然發現iOS Chrome其實已經解決了這個問題，當然還是要做一點手動設定才行，其實非常簡單，比在PC上要容易多了，步驟如下：&lt;br /&gt;
&lt;br /&gt;
1.按右上角的選單鈕。&lt;br /&gt;
2.選擇選單中的設定選項。&lt;br /&gt;
3.選擇進階下的內容設定。&lt;br /&gt;
4.開啟自動偵測編碼選項。&lt;br /&gt;
5.在提示框中點選繼續。&lt;br /&gt;
6.完成。&lt;br /&gt;
&lt;br /&gt;
目前試了幾個本來無法瀏覽的網站，都可順利看到正確的文字了。 &lt;br/&gt;&lt;br/&gt;&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6hAHeigBko3i4tnmHubii8bQ5ANesWPfuY0bq0rPZCDlZJ-VBvZovBi3WlnD1CxR4BsM6EkEvdojA_e4zaUiRANmxG1-YqileAjdoe_szcJKEe3ptjzoIt7ztDXeCB6sNG0nbmPjtKrgy/s640/blogger-image-99309141.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6hAHeigBko3i4tnmHubii8bQ5ANesWPfuY0bq0rPZCDlZJ-VBvZovBi3WlnD1CxR4BsM6EkEvdojA_e4zaUiRANmxG1-YqileAjdoe_szcJKEe3ptjzoIt7ztDXeCB6sNG0nbmPjtKrgy/s640/blogger-image-99309141.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;br/&gt;&lt;br/&gt;&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRTyoBZC2-VhJi0HjCiENwA4AC2zaEeWXDXvAevzd74Da-CaiQz6VjrpBsD5tecsj16eOHiKiW5obF6ZBcIzLfvBt2iIuDjF45zVwdsm4szRLkxxVJ0DF0VLlLY6sjC4JrLZgs8GTYiuUK/s640/blogger-image-630366599.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRTyoBZC2-VhJi0HjCiENwA4AC2zaEeWXDXvAevzd74Da-CaiQz6VjrpBsD5tecsj16eOHiKiW5obF6ZBcIzLfvBt2iIuDjF45zVwdsm4szRLkxxVJ0DF0VLlLY6sjC4JrLZgs8GTYiuUK/s640/blogger-image-630366599.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;br/&gt;&lt;br/&gt;&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxTn0br_DX-2g5VGMJxpsdOY4YHyBFpBgzip2i43o1BSHqaLAOqqsuuUNU8fYJSOsuNNJ-ey0N_zNx8-Mw74BptTAJsr4LDyqUa4GS2h2QvfGn8lxVczKmiagGS0DdXsX3YGNqxsdwQyYD/s640/blogger-image--467668017.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxTn0br_DX-2g5VGMJxpsdOY4YHyBFpBgzip2i43o1BSHqaLAOqqsuuUNU8fYJSOsuNNJ-ey0N_zNx8-Mw74BptTAJsr4LDyqUa4GS2h2QvfGn8lxVczKmiagGS0DdXsX3YGNqxsdwQyYD/s640/blogger-image--467668017.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;br/&gt;&lt;br/&gt;&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjiBnjdGOPc_Fm7zCNAHOn14tqaFdM4Z1Y8JM8ePD5m_duhxkLdfbnSWP2FZN-7KEL9wXrD8S7mGuaHQOcVs2NYdwChT05IYddiKySYHEA6kwgs_HTMAEQPv6pr4ztybUTWXNLgijqaSIo/s640/blogger-image--882148014.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjiBnjdGOPc_Fm7zCNAHOn14tqaFdM4Z1Y8JM8ePD5m_duhxkLdfbnSWP2FZN-7KEL9wXrD8S7mGuaHQOcVs2NYdwChT05IYddiKySYHEA6kwgs_HTMAEQPv6pr4ztybUTWXNLgijqaSIo/s640/blogger-image--882148014.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;br/&gt;&lt;br/&gt;&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu2EqUL3HzVMuVrvz-YX0Tzl4lQjRr7RzJQwhve13EQn14MslL2JWBRy3YpCvZ24Wxs4GBqVlVbytzsMT5RWnmuL7sZBdp-RBy6ZwDxtVQKo3nsAbAq-6qZKSi43hC3Dfrh-Bg2zX_J56a/s640/blogger-image--523884243.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu2EqUL3HzVMuVrvz-YX0Tzl4lQjRr7RzJQwhve13EQn14MslL2JWBRy3YpCvZ24Wxs4GBqVlVbytzsMT5RWnmuL7sZBdp-RBy6ZwDxtVQKo3nsAbAq-6qZKSi43hC3Dfrh-Bg2zX_J56a/s640/blogger-image--523884243.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/7542339326312687533/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2013/02/ios.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/7542339326312687533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/7542339326312687533'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2013/02/ios.html' title='iOS 版Chrome解決網頁亂碼問題'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6hAHeigBko3i4tnmHubii8bQ5ANesWPfuY0bq0rPZCDlZJ-VBvZovBi3WlnD1CxR4BsM6EkEvdojA_e4zaUiRANmxG1-YqileAjdoe_szcJKEe3ptjzoIt7ztDXeCB6sNG0nbmPjtKrgy/s72-c/blogger-image-99309141.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-4374140757253676782</id><published>2012-01-12T23:59:00.000-08:00</published><updated>2012-01-13T01:25:22.626-08:00</updated><title type='text'>Xcode 4.2 - iOS SDK Storyboard學習心得分享（二）- Navigation Controller Transition</title><content type='html'>這次要分享的是Navigation Controller在Storyboard上的使用方法，我們可以從上次的學習心得的Project繼續做下去，關於Storyboard的基本用法，可參考下列網址：&lt;br /&gt;
&lt;a href=&quot;http://yutongchen.blogspot.com/2012/01/xcode-42-ios-sdk-storyboard-modal-view.html&quot;&gt;Xcode 4.2 - iOS SDK Storyboard學習心得分享（一）- Modal View Controller Transition&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.從右下角的Objects裡將Navigation Controller拖拉至Storyboard。&lt;br /&gt;
2.點選右上角的Attribute Inspector。&lt;br /&gt;
3.勾選Is Initial View Controller，將此Navigation Controller變成初始頁。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwSFUSLycHz2K1scVPLW59j_UEoZx-XKY0GhyqdHqQQFZFE35bfxIJqx0Ncu7zBhoclNINIkrf1NipR7vN8VpSyyzK2an5KICV8XakNnLvBwFwE2Hd4agvnmgrca3e8bgy2pFMRZ_LjPg-/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-13+%25E4%25B8%258B%25E5%258D%25882.08.15.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwSFUSLycHz2K1scVPLW59j_UEoZx-XKY0GhyqdHqQQFZFE35bfxIJqx0Ncu7zBhoclNINIkrf1NipR7vN8VpSyyzK2an5KICV8XakNnLvBwFwE2Hd4agvnmgrca3e8bgy2pFMRZ_LjPg-/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-13+%25E4%25B8%258B%25E5%258D%25882.08.15.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4.拖拉一個Bar Button Item至Root View Controller的Navigation Bar右側。&lt;br /&gt;
5.在按鈕上按右鍵，出現關聯選單。&lt;br /&gt;
6.從Storyboard Segues的Push右側的小圓圈拖立至Main View Controller。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM2whJtQLyffSV7qgZTRUEzxT5uoNq5KzzLGzX3V0dA6iQfgMaTDagkhk9IMSoV3pum_UGDkbxdF07QLshK8OGK4oTX9WPtrikM2x72F2BPCeNfjvSZcwJo1y0yGvGgwaqQr0u3HbJ49hf/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-13+%25E4%25B8%258B%25E5%258D%25882.35.51.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM2whJtQLyffSV7qgZTRUEzxT5uoNq5KzzLGzX3V0dA6iQfgMaTDagkhk9IMSoV3pum_UGDkbxdF07QLshK8OGK4oTX9WPtrikM2x72F2BPCeNfjvSZcwJo1y0yGvGgwaqQr0u3HbJ49hf/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-13+%25E4%25B8%258B%25E5%258D%25882.35.51.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7.建立關係後，Root View Controller和Main View Controller之間會建立一個Push關係鏈，Push關係鏈的動畫只有一種從右側滑入的動畫，沒得選。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGlGpUES3P0R5gEmj45M-krmbe6TjThRPmW_OjQSFWytd6xi15Ev2_seiIBPcuuH5u67Y4YPK4SkkXju_yOUTYVriuaRmViUab4Wu-5eTDBS9vU35QDNynD37p5VCTTxDUGYVP9amlp94n/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-13+%25E4%25B8%258B%25E5%258D%25882.56.53.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGlGpUES3P0R5gEmj45M-krmbe6TjThRPmW_OjQSFWytd6xi15Ev2_seiIBPcuuH5u67Y4YPK4SkkXju_yOUTYVriuaRmViUab4Wu-5eTDBS9vU35QDNynD37p5VCTTxDUGYVP9amlp94n/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-13+%25E4%25B8%258B%25E5%258D%25882.56.53.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8.執行動畫如下圖。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/Y3WpSh1YnPQ?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/4374140757253676782/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2012/01/xcode-42-ios-sdk-storyboard-navigation.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/4374140757253676782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/4374140757253676782'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2012/01/xcode-42-ios-sdk-storyboard-navigation.html' title='Xcode 4.2 - iOS SDK Storyboard學習心得分享（二）- Navigation Controller Transition'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwSFUSLycHz2K1scVPLW59j_UEoZx-XKY0GhyqdHqQQFZFE35bfxIJqx0Ncu7zBhoclNINIkrf1NipR7vN8VpSyyzK2an5KICV8XakNnLvBwFwE2Hd4agvnmgrca3e8bgy2pFMRZ_LjPg-/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-13+%25E4%25B8%258B%25E5%258D%25882.08.15.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-134418065935757547</id><published>2012-01-10T23:13:00.000-08:00</published><updated>2012-01-10T23:22:38.947-08:00</updated><title type='text'>Xcode 4.2 - iOS SDK Storyboard學習心得分享（一）- Modal View Controller Transition</title><content type='html'>Xcode 4.2出來到現在已有一段時間了，這一版有一個很特別的功能就是Storyboard，他可以方便讓UI設計者在這個Storybaord上拖拉UI的Layout，並可在各View之間建立關係，也可以直接在上面設定各View之間的過場動畫，有了這個功能，將更有利於UI設計人員來使用。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBmRtzhCE00rJaJfQIQv2dQ_n7R102AA_r8y53BXkZgWrKO7QG6TG_g4N_Ah2EtZCdKNxcGzDGTb0YgABkUoEJfuiLA49_7SGMl-riee-GGhfVy76UlglrCSeM9nd5KqkrK2UQ5NZhvLHq/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258B%25E5%258D%25881.51.46.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBmRtzhCE00rJaJfQIQv2dQ_n7R102AA_r8y53BXkZgWrKO7QG6TG_g4N_Ah2EtZCdKNxcGzDGTb0YgABkUoEJfuiLA49_7SGMl-riee-GGhfVy76UlglrCSeM9nd5KqkrK2UQ5NZhvLHq/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258B%25E5%258D%25881.51.46.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
先來介紹如何做出有Storyboard的Project：&lt;br /&gt;
&lt;br /&gt;
1.從選單中選取File -&amp;gt; New -&amp;gt; New Project。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcqTiWj_iOXsZISoSUQAoVxMgQTpVxnk-sLAFlQoxdEthy45-RUfXb_AfmqvnZjM9CLrT2S9YT7t5Vi8Ocp9Puwo8TAokm-VcloIwiYGbOXPQPz1_X-xoCtTyDr5haFuAix7UEmXL5RFTk/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.06.31.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;144&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcqTiWj_iOXsZISoSUQAoVxMgQTpVxnk-sLAFlQoxdEthy45-RUfXb_AfmqvnZjM9CLrT2S9YT7t5Vi8Ocp9Puwo8TAokm-VcloIwiYGbOXPQPz1_X-xoCtTyDr5haFuAix7UEmXL5RFTk/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.06.31.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2.在這裡，我們先選擇最簡單的Single View Application，選好點選右下方的Next。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgadJ0R6mzaT85HlxdWgDqbUDMoGbJwZDI0UuEja9_cDgkbbEoeNWZGap0whIjx6lz5AYVz2hrNs3c0EsdgQ8YMvQ-Lf796oo3TaDZ6GrhVYTeNNq1o5Xu0lEgPXIC5GHuAJfTONeXYVjGC/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.04.42.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgadJ0R6mzaT85HlxdWgDqbUDMoGbJwZDI0UuEja9_cDgkbbEoeNWZGap0whIjx6lz5AYVz2hrNs3c0EsdgQ8YMvQ-Lf796oo3TaDZ6GrhVYTeNNq1o5Xu0lEgPXIC5GHuAJfTONeXYVjGC/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.04.42.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3.輸入Product Name，要用Storyboard的，記得要勾選Storyboard，選好點選右下方的Next。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpT-kMrYIR1jPSeFVJQhWTVeSpKRebwPV8DBGtHaMNivQFC2RfPXz79l3jJG74ffqgoRyT7Y8qzNgFfT_tEZllCp7mXp5jHGkpqjssFbMbutQNVe6PxDZtgJYvYvE5WZ3Jw63ifWAO_kOQ/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.13.02.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;428&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpT-kMrYIR1jPSeFVJQhWTVeSpKRebwPV8DBGtHaMNivQFC2RfPXz79l3jJG74ffqgoRyT7Y8qzNgFfT_tEZllCp7mXp5jHGkpqjssFbMbutQNVe6PxDZtgJYvYvE5WZ3Jw63ifWAO_kOQ/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.13.02.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4.選擇你要存放的路徑，選好點選右下方的Create。&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5.在左方的Navigators欄，點選MainStoryboard.storyboard，即可在中間的主視窗看見Storyboard，由於選的是Single View Application，所以預設就有一個ViewController。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBlBIiY04qXsye4v9XwSQYNHgYrSs_5FanDXRrYA01rpNhyphenhyphenH62VMN_IC_jss6052mMCkWogGEbgRqQv5cZOcBJOsfog41dL5pS3B-sjCcdSOWU6eX5Vn0-emeVbfGXtdTvXDtdQFcjjogx/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.25.20.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;364&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBlBIiY04qXsye4v9XwSQYNHgYrSs_5FanDXRrYA01rpNhyphenhyphenH62VMN_IC_jss6052mMCkWogGEbgRqQv5cZOcBJOsfog41dL5pS3B-sjCcdSOWU6eX5Vn0-emeVbfGXtdTvXDtdQFcjjogx/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.25.20.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBlBIiY04qXsye4v9XwSQYNHgYrSs_5FanDXRrYA01rpNhyphenhyphenH62VMN_IC_jss6052mMCkWogGEbgRqQv5cZOcBJOsfog41dL5pS3B-sjCcdSOWU6eX5Vn0-emeVbfGXtdTvXDtdQFcjjogx/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.25.20.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
接下來可以開始在Storyboard上設計UI了：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1.先從右下角的控件列表中拖拉出ViewController和Button, Label等其他控件到Storyboard上，做成了Main View和Modal View兩個ViewController。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd7uOY2P6Eg_D-pXuysf03MYglHKXHNYfbxYj3rzDqweinq6PkbcD7wfwWngqRaoWktcuEhUmqg9zOU8UvuItEHlqu8qfDEEB4M8KfqgPtz9-PSN94e1-58sknRGzHAnbK8j52-gLJXpz8/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.54.06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd7uOY2P6Eg_D-pXuysf03MYglHKXHNYfbxYj3rzDqweinq6PkbcD7wfwWngqRaoWktcuEhUmqg9zOU8UvuItEHlqu8qfDEEB4M8KfqgPtz9-PSN94e1-58sknRGzHAnbK8j52-gLJXpz8/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.54.06.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2.在Main View的To Modal View按鈕上按右鍵，會出現按鈕的關聯選單，將Storyboard Segues - Modal右側的小圈圈拖拉到Modal View上。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhef9v46809tES7TFkmw3_BynFm4jRx4jb4te4C1HMLI_QlsQVs3qt84h4uECb8eM6S-CiwoQ5Eij0kIxkR3gz2e7uLbzE1_Xe0PK2_7qq2KCrAsOKOeiIKVpfwO29Xw1cBF5hJyATC6EwP/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.54.40.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;410&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhef9v46809tES7TFkmw3_BynFm4jRx4jb4te4C1HMLI_QlsQVs3qt84h4uECb8eM6S-CiwoQ5Eij0kIxkR3gz2e7uLbzE1_Xe0PK2_7qq2KCrAsOKOeiIKVpfwO29Xw1cBF5hJyATC6EwP/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258A%25E5%258D%258811.54.40.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3.關閉關聯選單，可看到兩個ViewController之間已建立了Modal的關係，點選該關係鏈上的圓圈，右側的Utility欄會出現該Modal鏈的屬性設定，其中Transition欄即為過場動畫效果設定。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDz7MxsQU065BM4UumuDrlUuRgyLOffUBOIpTDdTUU8blL0J7X_MbG9p8zUT9mSa2JneX8QuRY1AVwCTobCQUsfRAvPK-fTQs_cvbH8yzCXQDdjn52dZxpsPHs7y8MHJdhtSiBZWSt_22T/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258B%25E5%258D%25881.51.46.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDz7MxsQU065BM4UumuDrlUuRgyLOffUBOIpTDdTUU8blL0J7X_MbG9p8zUT9mSa2JneX8QuRY1AVwCTobCQUsfRAvPK-fTQs_cvbH8yzCXQDdjn52dZxpsPHs7y8MHJdhtSiBZWSt_22T/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258B%25E5%258D%25881.51.46.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4.點選左上角的Run鈕即可執行結果。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1KhkctHydEIyvF1IG3KtgEGpSmz4P6cSytgWypGI6lTulrukbIXouNKHTFg9A-FM1SCDBCDMh5LeiEXgTL7btzh8QpCGxE9v8D4laY2pWXCBLRWanZo2U-koIJoKf3KslbSSQvWXx1x_1/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258B%25E5%258D%25882.02.10.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;56&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1KhkctHydEIyvF1IG3KtgEGpSmz4P6cSytgWypGI6lTulrukbIXouNKHTFg9A-FM1SCDBCDMh5LeiEXgTL7btzh8QpCGxE9v8D4laY2pWXCBLRWanZo2U-koIJoKf3KslbSSQvWXx1x_1/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258B%25E5%258D%25882.02.10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
執行結果影片如下，點選To Modal View按鈕，自動從下方推上來一個Modal View，此為Default Transition，到此為止，不需寫任何程式即可做到這個程度，至於其他基本的動畫效果，只要改一次Transition的設定，再Run一次就可以看到，有興趣的可以自行測試。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;object class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://i.ytimg.com/vi/9vBnn_x4G1M/0.jpg&quot; height=&quot;266&quot; width=&quot;320&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/9vBnn_x4G1M?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; /&gt;


&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;


&lt;embed width=&quot;320&quot; height=&quot;266&quot;  src=&quot;http://www.youtube.com/v/9vBnn_x4G1M?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
接下來要注意了，要如何按下To Main View按鈕回到Main View呢？&lt;br /&gt;
有一個很簡單的做法，就是再從To Main View按鈕，再拉回MainViewController，&lt;br /&gt;
雖然可以這麼做，但這不是好的做法，因為他會再從ModalViewController上方，再蓋上一層MainViewController，如果兩個按鈕一直重覆按下去，就會像堆疊一樣不斷堆高，記憶體也就會不知不覺地被耗盡。&lt;br /&gt;
較理想的做法還是遵循既有的ModalViewController的處理方式，只要在ModalViewController.m中所對應的IBAction中加一句：&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490085; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490085; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #ca00a5;&quot;&gt;self&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490085; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490085; font-family: Menlo; font-size: 11px;&quot;&gt;dismissModalViewControllerAnimated&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490085; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490085; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #ca00a5;&quot;&gt;YES&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490085; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
即可將ModalViewController移除，回到MainViewController，且動畫會自動從相反方向動作。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/134418065935757547/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2012/01/xcode-42-ios-sdk-storyboard-modal-view.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/134418065935757547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/134418065935757547'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2012/01/xcode-42-ios-sdk-storyboard-modal-view.html' title='Xcode 4.2 - iOS SDK Storyboard學習心得分享（一）- Modal View Controller Transition'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBmRtzhCE00rJaJfQIQv2dQ_n7R102AA_r8y53BXkZgWrKO7QG6TG_g4N_Ah2EtZCdKNxcGzDGTb0YgABkUoEJfuiLA49_7SGMl-riee-GGhfVy76UlglrCSeM9nd5KqkrK2UQ5NZhvLHq/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-01-11+%25E4%25B8%258B%25E5%258D%25881.51.46.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-9182554009914362941</id><published>2012-01-03T22:29:00.000-08:00</published><updated>2012-06-12T04:42:18.476-07:00</updated><title type='text'>用 CentOS 架設 VPN 學習心得</title><content type='html'>之前每次一去到大陸，就上不了Facebook, YouTube等網站，後來看到有人去了大陸，照樣能上FB，一問才知道是用了VPN。&lt;br /&gt;
&lt;br /&gt;
後來有朋友要去大陸，說要跟人租VPN來上FB，我就稍微研究了一下架設VPN Server的方法，當時有找到Windows XP的VPN Server架設教學，但我實在不想在家裡整天開一台Windows XP，只為了讓他從大陸連進來上FB，這樣還要花我的電費，而且有問題時還要我幫他處理，而另一方面，我家的頻寬也很有限，萬一他中了木馬什麼的，把我家的網路搞掛了，我還很麻煩，所以還是建議他去租VPN來用。&lt;br /&gt;
&lt;br /&gt;
後來我自己要去大陸出差時，本來有考慮在XP上裝個VPN Server，但想到Windows比較容易當機的問題，到時候家裡又沒人能幫我處理，又找了一下Linux的VPN Server架設方法，稍微在CentOS試了一下，覺得跟教學的狀況有很大的出入，而當時時間也蠻趕的，也就沒搞下去了。&lt;br /&gt;
&lt;br /&gt;
最近剛好有空，而且前一陣子發現要Google找CentOS的設定方法應該要用CentOS來查找，而不該用Linux，因為Linux版本太多了，很可能設定方法都不大一樣，換了關鍵字一查之後，果然很快就找到方法，也設好了，詳細設定方法可參考下列網址：&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=cetos+vpn&amp;amp;source=web&amp;amp;cd=1&amp;amp;ved=0CEcQFjAA&amp;amp;url=http%3A%2F%2Fblog.s135.com%2Fpptp_vpn%2F&amp;amp;ei=v88DT43YB_DumAWqo7l9&amp;amp;usg=AFQjCNG6LLOAPffvesH4am__IGu1KFZZ3g&quot;&gt;CentOS 5.3 下快速安装配置PPTP VPN 服务器- 张宴的博客- Web系统 ...&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
抄錄內容如下：&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;VPN的英文全称是“Virtual Private Network”，翻译过来就是“虚拟专用网络”。顾名思义，虚拟专用网络我们可以把它理解成是虚拟出来的企业内部专线。它可以通过特殊的加密的通讯协议在连接在Internet上的位于不同地方的两个或多个企业内部网之间建立一条专有的通讯线路，就好比是架设了一条专线一样，但是它并不需要真正的去铺设光缆之类的物理线路。这就好比去电信局申请专线，但是不用给铺设线路的费用，也不用购买路由器等硬件设备。VPN技术原是路由器具有的重要技术之一，目前在交换机，防火墙设备或Windows等软件里也都支持VPN功能，一句话，VPN的核心就是在利用公共网络建立虚拟私有网。&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　虚拟专用网（VPN）被定义为通过一个公用网络（通常是因特网）建立一个临时的、安全的连接，是一条穿过混乱的公用网络的安全、稳定的隧道。虚拟专用网是对企业内部网的扩展。虚拟专用网可以帮助远程用户、公司分支机构、商业伙伴及供应商同公司的内部网建立可信的安全连接，并保证数据的安全传输。虚拟专用网可用于不断增长的移动用户的全球因特网接入，以实现安全连接；可用于实现企业网站之间安全通信的虚拟专用线路，用于经济有效地连接到商业伙伴和用户的安全外联网虚拟专用网。&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　PPTP 全称为 Point to Point Tunneling Protocol -- 点到点隧道协议，是VPN协议中的一种。&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;一、CentOS 5.3 下 PPTP VPN 服务器安装&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;1、安装相关软件&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　32位版：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;yum install -y ppp iptables&lt;br /&gt;wget&amp;nbsp;&lt;a href=&quot;http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.i386.rpm&quot; style=&quot;color: #4f6371; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.i386.rpm&lt;/a&gt;&lt;br /&gt;rpm -ivh pptpd-1.3.4-2.rhel5.i386.rpm&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　64位版：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;yum install -y ppp iptables&lt;br /&gt;wget&amp;nbsp;&lt;a href=&quot;http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm&quot; style=&quot;color: #4f6371; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm&lt;/a&gt;&lt;br /&gt;rpm -ivh pptpd-1.3.4-2.rhel5.x86_64.rpm&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;2、配置文件编写&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;①、配置文件/etc/ppp/options.pptpd&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;mv /etc/ppp/options.pptpd /etc/ppp/options.pptpd.bak&lt;br /&gt;vi /etc/ppp/options.pptpd&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　输入以下内容：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;name pptpd&lt;br /&gt;refuse-pap&lt;br /&gt;refuse-chap&lt;br /&gt;refuse-mschap&lt;br /&gt;require-mschap-v2&lt;br /&gt;require-mppe-128&lt;br /&gt;proxyarp&lt;br /&gt;lock&lt;br /&gt;nobsdcomp&lt;br /&gt;novj&lt;br /&gt;novjccomp&lt;br /&gt;nologfd&lt;br /&gt;idle 2592000&lt;br /&gt;ms-dns 8.8.8.8&lt;br /&gt;ms-dns 8.8.4.4&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-color: rgb(99, 180, 205); border-top-style: solid; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; height: 1px;&quot; /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;②、配置文件/etc/ppp/chap-secrets&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;mv /etc/ppp/chap-secrets /etc/ppp/chap-secrets.bak&lt;br /&gt;vi /etc/ppp/chap-secrets&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　输入以下内容&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;# Secrets for authentication using CHAP&lt;br /&gt;# client&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;server&amp;nbsp;&amp;nbsp;secret&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IP addresses&lt;br /&gt;myusername pptpd mypassword *&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　注：这里的myusername和mypassword即为PPTP VPN的登录用户名和密码&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;hr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-color: rgb(99, 180, 205); border-top-style: solid; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; height: 1px;&quot; /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;③、配置文件/etc/pptpd.conf&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;mv /etc/pptpd.conf /etc/pptpd.conf.bak&lt;br /&gt;vi /etc/pptpd.conf&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　输入以下内容：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;option /etc/ppp/options.pptpd&lt;br /&gt;logwtmp&lt;br /&gt;localip 192.168.9.1&lt;br /&gt;remoteip 192.168.9.11-30&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　注：为拨入VPN的用户动态分配192.168.9.11～192.168.9.30之间的IP&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;a href=&quot;&quot; name=&quot;entrymore&quot; style=&quot;color: #4f6371; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;hr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-color: rgb(99, 180, 205); border-top-style: solid; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; height: 1px;&quot; /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;④、配置文件/etc/sysctl.conf&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;vi /etc/sysctl.conf&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　修改以下内容：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;net.ipv4.ip_forward = 1&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　保存、退出后执行：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;/sbin/sysctl -p&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-color: rgb(99, 180, 205); border-top-style: solid; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; height: 1px;&quot; /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;3、启动PPTP VPN 服务器端：&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;/sbin/service pptpd start&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-color: rgb(99, 180, 205); border-top-style: solid; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; height: 1px;&quot; /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;　　&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;strong&gt;4、启动iptables：&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 160, 198); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 160, 198); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 160, 198); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 160, 198); border-top-style: dashed; border-top-width: 1px; font-family: Tahoma, Arial; font-size: 12px; margin-bottom: 0px; margin-left: 5px; margin-right: 5px; margin-top: 5px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;/sbin/service iptables start&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; font-family: Tahoma, Arial; font-size: 12px;&quot;&gt;/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.9.0/24 -j MASQUERADE&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
使用Windows和iPhone都順利連上VPN之後，我想上網，卻發現連不上，於是又找到了CentOS share IP的方法，詳細內容如下：&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=centos+ip+share&amp;amp;source=web&amp;amp;cd=3&amp;amp;ved=0CC4QFjAC&amp;amp;url=http%3A%2F%2Fsnwei.pixnet.net%2Fblog%2Fpost%2F69808385-%25E6%258A%258A-centos-linux-%25E7%2595%25B6-ip-%25E5%2588%2586%25E4%25BA%25AB%25E5%2599%25A8&amp;amp;ei=TcgDT5vkCqrLmAX2taDyCQ&amp;amp;usg=AFQjCNGdEvMnfhffvh2Z722U3_ewlPsHKg&quot;&gt;把CentOS Linux 當IP 分享器@ 光速世界:: 痞客邦PIXNET ::&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
抄錄內容如下：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Verdana; font-size: small; line-height: 19px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;background-color: #cccccc; font-size: 12pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;其實花個一、二千元買了一台功能強IP分享器都遠不及&lt;br /&gt;在一台舊主機上自己架Linux來當IP分享器的效能好&lt;br /&gt;但缺點是比較耗電&lt;br /&gt;當然如果這台主機能再上面提供其他服務&lt;br /&gt;例如檔案伺服器做家中的檔案分享或是FTP、WEB伺服器之類的多功能用途的話&lt;br /&gt;那就比較能物盡其用了&lt;br /&gt;也可以剩下萬把元再去買一台NAS來做檔案分享&lt;br /&gt;&lt;br /&gt;以下介紹如何設定Linux的iptables，讓Linux能變身成為超強的IP分享器&lt;br /&gt;其實IP分享說穿了就只是修改封包標頭並轉寄而已&lt;br /&gt;所以要讓Linux當成IP分享器用，並不需安裝什麼特別的套件&lt;br /&gt;只需要對iptables做設定，讓封包轉寄就可以達成IP分享器的功能&lt;br /&gt;&lt;br /&gt;首先先開啟Linux封包轉寄的功能&lt;br /&gt;修改&lt;/span&gt;&lt;span style=&quot;color: #ff6600;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff6600;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;/etc/sysctl.conf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;將&amp;nbsp;&lt;span style=&quot;color: #ff6600;&quot;&gt;net.ipv4.ip_forward&lt;/span&gt;的值改為&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #ff6600;&quot;&gt;1&lt;/span&gt;接著輸入&amp;nbsp;&lt;span style=&quot;color: #ff6600;&quot;&gt;sysctl -p&lt;/span&gt;&amp;nbsp;使剛才修改的值生效&lt;br /&gt;&lt;br /&gt;接著使用 iptables 指令將內網封包轉至外網&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #ff6600;&quot;&gt;/sbin/iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.100.0/24 -j MASQUERADE&lt;/span&gt;(將來自&amp;nbsp;192.168.100.x IP的封包，轉寄至 ppp0)&lt;br /&gt;&lt;br /&gt;以上二個動作就可以讓Linux變成IP分享器了，是不是很簡單。&lt;br /&gt;下面提供一個完整的範例，可以存入文字檔，並給予執行權限直接執行&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;vim /ipshare&lt;/span&gt;&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-size: small; line-height: 19px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: #cccccc; font-size: 10pt;&quot;&gt;/sbin/iptables -F&lt;br /&gt;/sbin/iptables -X&lt;br /&gt;/sbin/iptables -F -t nat&lt;br /&gt;/sbin/iptables -X -t nat&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-size: small; line-height: 19px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: #cccccc; font-size: 10pt;&quot;&gt;(如果有其他對外服務，如網頁伺服器(port 80)，可將對映的port打開)&lt;br /&gt;/sbin/iptables -A INPUT -i ppp0 -p tcp --dport&amp;nbsp;80 -j ACCEPT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-size: small; line-height: 19px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: #cccccc; font-size: 10pt;&quot;&gt;/sbin/iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.100.0/24 -j MASQUERADE&lt;br /&gt;iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-size: small; line-height: 19px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;background-color: #cccccc; font-size: 12pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;/sbin/iptables -A INPUT -i ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT&lt;br /&gt;/sbin/iptables -A INPUT -i ppp0 -m state --state NEW,INVALID -j DROP&lt;/span&gt;&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;chmod +x /ipshare&lt;br /&gt;/ipshare&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
看了一下，發現跟VPN設定中的某些步驟差不多，但他的說明比較清楚，其中：&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana; font-size: 13px; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;/sbin/iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.100.0/24 -j MASQUERADE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
這條指令中的&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;ppp0&lt;/span&gt;指的是Public IP的路徑，於是我用&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;ifconfig&lt;/span&gt;查了一下，Public IP的網卡為eth1，把指令改成如下：&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana; font-size: 13px; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;/sbin/iptables -t nat -A POSTROUTING -o &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana; font-size: 13px; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;eth1&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana; font-size: 13px; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt; -s 192.168.100.0/24 -j MASQUERADE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
再下一次指令之後，iPhone和Windows都能從這個IP上網了。&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
因為公司有在用CentOS，這樣一來，如果公司有人去到大陸去，想上某些網站，或需要連回公司內網，就很方便了，另一方面，公司也有MIS人員，有什麼問題都可以找到人來協助處理。&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
*有需要下載CentOS的可以到下列網址，就近下載。&lt;/div&gt;
&lt;a href=&quot;http://www.centos.org/modules/tinycontent/index.php?id=13&quot;&gt;CentOS Mirror List&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/9182554009914362941/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2012/01/centos-vpn.html#comment-form' title='7 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/9182554009914362941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/9182554009914362941'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2012/01/centos-vpn.html' title='用 CentOS 架設 VPN 學習心得'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-4809257853998087241</id><published>2012-01-03T01:13:00.000-08:00</published><updated>2012-01-03T18:11:01.205-08:00</updated><title type='text'>自製Xperia Play專用PlayStation遊戲心得</title><content type='html'>Xperia Play出到現在都超過半年了，官方提供的PS遊戲還是那幾款，再加上目前台灣現在不能從Android Market上買付費軟體，而前一陣子Android升到2.3.4之後，連PS模擬器都被禁用了。&lt;br /&gt;
&lt;br /&gt;
前幾天在Mobile01上找到了可以把PS ISO檔轉成apk檔的教學，在安裝apk後，可以直接用Xperia Play上自帶的PS模擬器PlayStation@Pocket來玩。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzek1ZFwO4PkH_2tHHXTaXBik0LrPF6Q_BaAKwOBl6Ga-_wUNNukos-cq2ISuZRP74Z6YU4DBUkuEBr00MYN_c2yilfdazW3rjZSOi89ytaQBAFGQAypoY1O8kr96Lc2EW5fq3sRWgMI-p/s1600/screenshot_2012-01-03_1611.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzek1ZFwO4PkH_2tHHXTaXBik0LrPF6Q_BaAKwOBl6Ga-_wUNNukos-cq2ISuZRP74Z6YU4DBUkuEBr00MYN_c2yilfdazW3rjZSOi89ytaQBAFGQAypoY1O8kr96Lc2EW5fq3sRWgMI-p/s320/screenshot_2012-01-03_1611.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
有關教程的部份可參考下列網址：&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=PsXperia+mobile01&amp;amp;source=web&amp;amp;cd=1&amp;amp;ved=0CCcQFjAA&amp;amp;url=http%3A%2F%2Fwww.mobile01.com%2Ftopicdetail.php%3Ff%3D569%26t%3D2301267%26last%3D32899951&amp;amp;ei=58UCT7OtJImimQXWloiwAw&amp;amp;usg=AFQjCNHXR7HUQWrNqUztohJ-OxyVzaBYZg&quot;&gt;[教學]PsXperia,PS遊戲轉Xperia Paly專用格式轉換器- Mobile01&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
如果是Android 2.3.4版的Xperia Play手機，可參考下列網址：&lt;br /&gt;
&lt;a href=&quot;http://www.mobile01.com/topicdetail.php?f=569&amp;amp;t=2472028&amp;amp;p=2#32511923&quot;&gt;PSXPeria2.0(Beta)釋出!!&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
如果想要下載遊戲，可使用電驢下載：&lt;br /&gt;
&lt;a href=&quot;http://www.verycd.com/topics/47245/&quot;&gt;《索尼家用综合电脑娱乐平台游戏经典回顾 第一季》(PlayStation Games Collection Vol.1)[PS] 第一季 ~完结~_VeryCD电驴下载&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
但電驢有時候不見得能下載得完全，也可以到&lt;a href=&quot;http://www.filecrop.com/&quot;&gt;FileCrop&lt;/a&gt;網站輸入「psx 遊戲名」來搜尋，用Http下載。&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
如果自己有原版或翻版的PS遊戲，也可以使用Alcohol 120%來製作.iso檔。&lt;/div&gt;
&lt;br /&gt;
目前測試.iso, .bin, .img檔都可以轉成.apk。&lt;br /&gt;
&lt;br /&gt;
目前試過的遊戲如下：&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;th&gt;遊戲名&lt;/th&gt;&lt;th&gt;測試結果&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;機器人大戰Alpah&lt;/td&gt;&lt;td&gt;能玩，但開頭動畫會lag，遊戲語音後半會消音&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;機器人大戰Alpah外傳&lt;/td&gt;&lt;td&gt;能玩，遊戲中語音後半會消音&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;妖精戰士&lt;/td&gt;&lt;td&gt;完全正常&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;妖精戰士2&lt;/td&gt;&lt;td&gt;完全正常&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;刀魂&lt;/td&gt;&lt;td&gt;能玩，背景破圖一半&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;生死格鬥&lt;/td&gt;&lt;td&gt;完全正常&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Tear Ring Saga&lt;/td&gt;&lt;td&gt;能玩，部份畫面有細微的破圖&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;實感賽車&lt;/td&gt;&lt;td&gt;能玩，但車子跑到某些點會嚴重lag&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;鐵拳3&lt;/td&gt;&lt;td&gt;能玩一下下，打完第一場就會Crash&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;鐵拳2&lt;/td&gt;&lt;td&gt;不能玩，人體嚴重扭曲&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;惡魔城年代紀&lt;/td&gt;&lt;td&gt;不能玩，只能看開頭動畫&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
由於妖精戰士2代可以使用1代破關的記憶繼續玩下去，所以試著把記憶卡中的資料從妖精戰士1的存檔目錄copy到2的存檔目錄，之後再開啟2，可以從記憶卡中找到1的記錄。&lt;br /&gt;
同理，兩片裝以上的遊戲應該也可以比照此做法來繼續玩下去。&lt;br /&gt;
&lt;br /&gt;
記憶卡的記錄檔放在遊戲資料目錄(/Android/data/com.sony.playstation.遊戲名/)下的files/save/xxx/0.raw(記憶卡1)和1.raw(記憶卡2)。&lt;br /&gt;
&lt;br /&gt;
*ps: xxx為亂數產生之16進位目錄名。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
裝了幾款能玩的遊戲之後，原廠附的8G記憶卡已經被我塞滿了，所以有點想買32G記憶卡了，有人說原廠附的記憶卡速度比較快，本來想買class10的記憶卡來換，但又嫌貴，從機器裡拿出原廠的一看，的也只有class2，看來買較平價的class4應該也夠用，但說不定有些遊戲效果不佳是跟記憶卡的速度有關，class10說不定真的比較牛，後續狀況就等我換了記憶卡再說吧！&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/4809257853998087241/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2012/01/xperia-playplaystation.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/4809257853998087241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/4809257853998087241'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2012/01/xperia-playplaystation.html' title='自製Xperia Play專用PlayStation遊戲心得'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzek1ZFwO4PkH_2tHHXTaXBik0LrPF6Q_BaAKwOBl6Ga-_wUNNukos-cq2ISuZRP74Z6YU4DBUkuEBr00MYN_c2yilfdazW3rjZSOi89ytaQBAFGQAypoY1O8kr96Lc2EW5fq3sRWgMI-p/s72-c/screenshot_2012-01-03_1611.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-8320746897801512815</id><published>2011-10-04T01:14:00.000-07:00</published><updated>2011-10-04T01:14:24.220-07:00</updated><title type='text'>淘寶網API學習心得（二）</title><content type='html'>從上次寫完「&lt;a href=&quot;http://yutongchen.blogspot.com/2011/07/api.html&quot;&gt;淘寶網API學習心得（一）&lt;/a&gt;」到現在已經過了相當的時間，這次要寫的是測試心得，之所以會隔這麼久，是因為測試API需要一組app id和app secret, 而要取得app id和app secret的前提是你的帳號必須做過實名認證，目前我台灣的用戶好像做不了實名認證，所以就只能請公司在大陸申請商家帳號了，由於公司申請淘寶商家帳號花了不少時間，所以直到最近才拿到一組可以讓我測試的商家帳號。&lt;br /&gt;
&lt;br /&gt;
有了實名認證的商家帳號後，就可申請應用程序，有了自已的應用程序就有app id和app secret，詳細申請方法可參考下列網址：&lt;br /&gt;
&lt;a href=&quot;http://dev.open.taobao.com/dev/index.php/Taobao_ID%EF%BC%88%E6%B7%98%E5%B8%90%E5%8F%B7%EF%BC%89%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D&quot;&gt;http://dev.open.taobao.com/dev/index.php/Taobao_ID（淘帐号）产品介绍&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
申請好之後可以從&lt;a href=&quot;https://login.taobao.com/member/login.jhtml?redirectURL=http%3A%2F%2Fmy.open.taobao.com%2Fisv%2Findex.htm&quot;&gt;開發者中心&lt;/a&gt;登入，登入後選擇「應用管理」-&amp;gt;「&lt;a href=&quot;http://my.open.taobao.com/app/app_list.htm&quot;&gt;應用列表&lt;/a&gt;」&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwpcIchRKpfwYet-IZcdpoYPv8hOQobi1ERozxtV9ehPnSadzdSPNJ3v3JwIXeLlTbEpGylRhc2fYtchHv22o3lCJB7IXjKiTcf8G_JrV259nL34ctrW_60OnylQ4O_SQt-gdGc7jz0mWa/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-16+%25E4%25B8%258B%25E5%258D%25882.25.56.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwpcIchRKpfwYet-IZcdpoYPv8hOQobi1ERozxtV9ehPnSadzdSPNJ3v3JwIXeLlTbEpGylRhc2fYtchHv22o3lCJB7IXjKiTcf8G_JrV259nL34ctrW_60OnylQ4O_SQt-gdGc7jz0mWa/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-16+%25E4%25B8%258B%25E5%258D%25882.25.56.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
在應用列表頁，可選擇應用程式圖標，名稱，或右側的修改連結進入「開發測試」頁。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaYq2qk9aHj2UdifONt5zLiJl1mfn1brW7FCk4Y7lUr8vGol6O5NLSomz_6VChD3Ag6hQptvbIculbKVd5YkrxhUBjNlb8O9SQdcP-4XpkD9yA5Muue34Sdd3fU8Vak3jWHXwERao7gujN/s1600/TBAppGo+.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;209&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaYq2qk9aHj2UdifONt5zLiJl1mfn1brW7FCk4Y7lUr8vGol6O5NLSomz_6VChD3Ag6hQptvbIculbKVd5YkrxhUBjNlb8O9SQdcP-4XpkD9yA5Muue34Sdd3fU8Vak3jWHXwERao7gujN/s640/TBAppGo+.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
在開發測試頁，在預設的情況下是處於「沙箱環境開發」之狀態，在填入表單中的必填欄位後，即可點選下方之「進入正式環境測試」。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
沙箱環境和正式環境的差別在於，在沙箱環境所做的任何行為都只是在一個模擬的淘寶網環境，不會影響到正式環境，但有些功能只有在正式環境才比較好測試，如搜尋功能。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
正式環境測試是有時間和次數限制的，目前的情況是，每個App只有3次進入正式環境測試的機會，每次可以有5天的時間做測試，所以，如果要進入正式環境，最好還是先做了充份的準備再進去會比較好。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
點選左側下方的「配置沙箱環境」連結，可進入配置沙箱環境頁。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVBYqGYQjHKeqYJNlN3IWfYUIz_7-wqDm1ElGW9ubywYuQ_Yel89hKfsW3z5L59vXJM_hj3_4oEwEPtnpViWu2YhcBetoQzFG68d_WvRFInV98iy9yEwPfxOwnKh68KBJDBXF0JWspvpbK/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-16+%25E4%25B8%258B%25E5%258D%25883.14.33.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;566&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVBYqGYQjHKeqYJNlN3IWfYUIz_7-wqDm1ElGW9ubywYuQ_Yel89hKfsW3z5L59vXJM_hj3_4oEwEPtnpViWu2YhcBetoQzFG68d_WvRFInV98iy9yEwPfxOwnKh68KBJDBXF0JWspvpbK/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-16+%25E4%25B8%258B%25E5%258D%25883.14.33.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
如果要在沙箱測試到較完整的功能，建議&lt;a href=&quot;http://mini.tbsandbox.com/minisandbox/user/register.htm&quot;&gt;註冊&lt;/a&gt;兩組沙箱測試帳號，「普通帳號」和「商城帳號」各申請一組，並將商城帳號與App綁定。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaj_cXtdUvqmYFf1PVcrdINHJGZ5V0tGzFBBYQ6h7oimikSklVVbTf9HfwQJmVIRfADBDAXRgLzO5YpWkTyr5f2peAnaqgRkI3Vuje6px5OzLBfff9XVhsJmu6tyZortrZOv3EMzLSUkxa/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-19+%25E4%25B8%258A%25E5%258D%258810.41.15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaj_cXtdUvqmYFf1PVcrdINHJGZ5V0tGzFBBYQ6h7oimikSklVVbTf9HfwQJmVIRfADBDAXRgLzO5YpWkTyr5f2peAnaqgRkI3Vuje6px5OzLBfff9XVhsJmu6tyZortrZOv3EMzLSUkxa/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-19+%25E4%25B8%258A%25E5%258D%258810.41.15.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJyQG8niMyS-rOXjBAVgT-uXri7fGg5KHtAnK6P13w2q5SPIp2ZgOqL3eY2ui6L6RGyLNBj7cnPDyJpPjRjOsiIAqMO2N1mPNCqBPWPmwq36Te6kG3Y3KrS395lJl-FRiG09aJvkD-6JMz/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-19+%25E4%25B8%258A%25E5%258D%258811.37.08.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJyQG8niMyS-rOXjBAVgT-uXri7fGg5KHtAnK6P13w2q5SPIp2ZgOqL3eY2ui6L6RGyLNBj7cnPDyJpPjRjOsiIAqMO2N1mPNCqBPWPmwq36Te6kG3Y3KrS395lJl-FRiG09aJvkD-6JMz/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-19+%25E4%25B8%258A%25E5%258D%258811.37.08.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
接下來，我們可以用API在綁定的沙箱商城帳號中上架，但在此之前需先做商城類目授權，也就是說，我們只能在商城中販賣有得到授權的類目的商品。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://mini.tbsandbox.com/minisandbox/user/login.htm&quot;&gt;登入&lt;/a&gt;沙箱商城後，點選左側選單的店舖管理-&amp;gt;「商城類目授權」。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho7RyOuBfMpliEx5Kbq6BNZIyFJDdL8vSyVv-fXMfpKXdziCAYADASe6ef-8Y6snubCzJ0tLA3Btdt8N-sFo12P6J__HyOUnO3DPSXzCkHbNWZJP0Zg53-x_ihhcTgVDz0tBbt1_-4LiFR/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-19+%25E4%25B8%258B%25E5%258D%25885.04.44.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho7RyOuBfMpliEx5Kbq6BNZIyFJDdL8vSyVv-fXMfpKXdziCAYADASe6ef-8Y6snubCzJ0tLA3Btdt8N-sFo12P6J__HyOUnO3DPSXzCkHbNWZJP0Zg53-x_ihhcTgVDz0tBbt1_-4LiFR/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-19+%25E4%25B8%258B%25E5%258D%25885.04.44.png&quot; width=&quot;113&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
從「選擇經營類別」選項中選定一個類別，按右側的「搜索」鈕，下方會出現子選項，選定你所要授權的類別後，點選列表下戶的「授權」按鈕。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
類目授權完成後，需要等到隔天早上才能生效，之後才能在API中使用你所要使用的類別。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgQh0777rLx8t5U76RHlVYxDTTjTLOSOm3yWNm0vHMsdvc1SbJ4MMOkhAB5-iLP7UvnD50lFcdOMGBFhR7oPmwC1xvMlgDIqvwf35vxAzL0ns7vHA0u47eTCTC5mejjUZKGMHxTfBj9WAm/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-19+%25E4%25B8%258B%25E5%258D%25885.08.15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;347&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgQh0777rLx8t5U76RHlVYxDTTjTLOSOm3yWNm0vHMsdvc1SbJ4MMOkhAB5-iLP7UvnD50lFcdOMGBFhR7oPmwC1xvMlgDIqvwf35vxAzL0ns7vHA0u47eTCTC5mejjUZKGMHxTfBj9WAm/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-19+%25E4%25B8%258B%25E5%258D%25885.08.15.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
接下來，可以試著用「&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://api.taobao.com/apitools/apiTools.htm&quot;&gt;API測試工具&lt;/a&gt;」新增商品。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;測試時，記得點選app_key右側的「自定義」按鈕，填入前面申請好的app_key和app_secret。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhykdVGhS97m3R1k9NhL2RDNa5-r__f_m2LweHOIUCyr0derpHMS-NhG1V7lbYgYv52uBuFqw_oTMH6hoFallz8Ye9cTt3a3rCYytQWyszE6geDk76Hf9ApyLQDxLYhx_uMyOCvZl9DKsTP/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-10-04+%25E4%25B8%258B%25E5%258D%25883.20.42.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhykdVGhS97m3R1k9NhL2RDNa5-r__f_m2LweHOIUCyr0derpHMS-NhG1V7lbYgYv52uBuFqw_oTMH6hoFallz8Ye9cTt3a3rCYytQWyszE6geDk76Hf9ApyLQDxLYhx_uMyOCvZl9DKsTP/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-10-04+%25E4%25B8%258B%25E5%258D%25883.20.42.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;在上圖表單中，選擇不同的API類目，則API中的選項會跟著改變，而選擇了不同的API，則下方會根據所選的API出現不同的表單。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;若要新增商品，可在API類目選擇「商品API」，API選擇「taobao.item.add」，選好後，下方會出現下圖之表單，右側有&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;＊&lt;/span&gt;號的為必填欄位。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;當你把游標停在右側的「說明」上方，數秒後可看到該欄位的說明，也可從表單上方的「&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://api.taobao.com/apidoc/api.htm?path=categoryId:4-apiId:22&quot;&gt;API详情&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;」連結查看各欄位之詳細說明。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;其中要注意的欄位是cid，也就是類目id，此id需使用「&lt;/span&gt;&lt;a href=&quot;http://api.taobao.com/apitools/apiPropTools.htm&quot;&gt;API属性工具&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;」查出來。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl3cTo_fmBGnnbFQGw5SU7wKnA3TOJgdZ6GRTC4AaQ1WTiwAD_UJdpYUJXInMt7pb7ZrV_Avwx4tUAAq0JbCOWEpy9nMrcl3-YjZmQt3FqCxbO3Y2iV6AJFmRkgxcTSBsXS338j0GzxuJn/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-10-04+%25E4%25B8%258B%25E5%258D%25883.35.28.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl3cTo_fmBGnnbFQGw5SU7wKnA3TOJgdZ6GRTC4AaQ1WTiwAD_UJdpYUJXInMt7pb7ZrV_Avwx4tUAAq0JbCOWEpy9nMrcl3-YjZmQt3FqCxbO3Y2iV6AJFmRkgxcTSBsXS338j0GzxuJn/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-10-04+%25E4%25B8%258B%25E5%258D%25883.35.28.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;在「&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://api.taobao.com/apitools/apiPropTools.htm&quot;&gt;API属性工具&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;」介面中，選擇你在沙箱商城中申請好的類目，則表單右側會出現其所對應之cid。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtochoe8mxir1XCK1Ocnr3JnzSIVx0Skb3T3zHzFjgPzLDbzo5Vm-jn98og25vq0DCjC3o0Zg5PTGbtznBFkq8Q4ll7j3Hy2sUSqycEQHhst0o3jbZrsTllBT2x-KyiWzAlDPwy-KpdVx3/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-10-04+%25E4%25B8%258B%25E5%258D%25883.49.27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;199&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtochoe8mxir1XCK1Ocnr3JnzSIVx0Skb3T3zHzFjgPzLDbzo5Vm-jn98og25vq0DCjC3o0Zg5PTGbtznBFkq8Q4ll7j3Hy2sUSqycEQHhst0o3jbZrsTllBT2x-KyiWzAlDPwy-KpdVx3/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-10-04+%25E4%25B8%258B%25E5%258D%25883.49.27.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
根據所選的類目的不同，下面幾個欄位的值也會有所不同，如果該欄位有值，則應將各值填到「&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://api.taobao.com/apitools/apiTools.htm&quot;&gt;API測試工具&lt;/a&gt;&lt;/span&gt;」中所對應的欄位中。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-rCpezLodNF5pAmh5Q86lGy3ATiqbP5YjhekRuXJ_5s8bCBx-hnIg8U1kgOUIil0oU_-mUbnzWp_59OkVi-j_hJyVUppax8S1GV6kVtI009Bx2tT24ODVPrVz9bPTVHC-E9C-haquP8-i/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-10-04+%25E4%25B8%258B%25E5%258D%25883.52.45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-rCpezLodNF5pAmh5Q86lGy3ATiqbP5YjhekRuXJ_5s8bCBx-hnIg8U1kgOUIil0oU_-mUbnzWp_59OkVi-j_hJyVUppax8S1GV6kVtI009Bx2tT24ODVPrVz9bPTVHC-E9C-haquP8-i/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-10-04+%25E4%25B8%258B%25E5%258D%25883.52.45.png&quot; width=&quot;266&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;新增商品成功後，可使用查詢API，依照所產生的&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222;&quot;&gt;num_iid&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;來查詢，或到沙箱商城的「&lt;/span&gt;&lt;a href=&quot;http://mini.tbsandbox.com/minisandbox/seller/items_portal.htm&quot;&gt;商品管理&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;」頁面，亦可找到該商品，也可以用你申請好的買家帳號去登入沙箱商城，購買該商品。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/8320746897801512815/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2011/10/api.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/8320746897801512815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/8320746897801512815'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2011/10/api.html' title='淘寶網API學習心得（二）'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwpcIchRKpfwYet-IZcdpoYPv8hOQobi1ERozxtV9ehPnSadzdSPNJ3v3JwIXeLlTbEpGylRhc2fYtchHv22o3lCJB7IXjKiTcf8G_JrV259nL34ctrW_60OnylQ4O_SQt-gdGc7jz0mWa/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-16+%25E4%25B8%258B%25E5%258D%25882.25.56.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-1882331026925362447</id><published>2011-09-01T20:22:00.000-07:00</published><updated>2011-09-01T20:30:33.325-07:00</updated><title type='text'>Facebook API PHP SDK試用心得</title><content type='html'>最近在研究Facebook API，但發現中文的教學似乎不多，而且也有點過時，教程中用的方法和現在的PHP API已經有相當大的差異了，目前能依靠的主要還是官網的說明文件，但也只有英文的，而且由於FB做了很多種API，而且我覺得人心木說明文件整理的不是很好，要東一角西一塊的找，不是很容易上手，所以就將自已上手的過程寫出來供有需要用的人參考。&lt;br /&gt;
&lt;br /&gt;
要使用Facebook API PHP SDK，可依照下列步驟進行：&lt;br /&gt;
&lt;br /&gt;
1.須先向Facebook申請一個App，詳細說明可參照「&lt;a href=&quot;http://yutongchen.blogspot.com/2011/09/facebook.html&quot;&gt;申請Facebook應用程式的步驟說明&lt;/a&gt;」。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2.申請完成後，PHP SDK必須在指定網址才能夠執行，請務必放在您所輸入之網址下，而App ID和App Secret則要記下來，在使用PHP SDK時需要用到。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe7lRna6MzX8PeEoQwJ1nG_Zk7pKod39-JtKxDUiDnimrEPQERaPsvLgUua-leBOTENmj0HeOQ0GCErYVTqrhsnv4usRn8R106cQgGsJ1cDwQDpjqsDSOVlp1gE-tn92w5Yx6vPTaRbUoB/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.28.19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe7lRna6MzX8PeEoQwJ1nG_Zk7pKod39-JtKxDUiDnimrEPQERaPsvLgUua-leBOTENmj0HeOQ0GCErYVTqrhsnv4usRn8R106cQgGsJ1cDwQDpjqsDSOVlp1gE-tn92w5Yx6vPTaRbUoB/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.28.19.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3.從「&lt;a href=&quot;https://developers.facebook.com/docs/&quot;&gt;文件&lt;/a&gt;」-&amp;gt;「&lt;a href=&quot;https://developers.facebook.com/docs/sdks&quot;&gt;SDKs &amp;amp; Tools&lt;/a&gt;」-&amp;gt;「&lt;a href=&quot;https://developers.facebook.com/docs/reference/php&quot;&gt;PHP SDK&lt;/a&gt;」到下載頁，按下&lt;a href=&quot;https://github.com/facebook/php-sdk/archives/master&quot;&gt;Download&lt;/a&gt;按鈕。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw1xTsm_6fiFT9iHLRpapT42BvQiCZUsZoHqab5-cjAQI6WydeHsPQF-cCVWu1A0iwDGwquqQLiZoTNmgyQdBafuKy5fDKisw7eKhAJKcy8I-b-xoieKt2zZzQLBqKEjd1gqu6JzqnXKlj/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.41.50.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw1xTsm_6fiFT9iHLRpapT42BvQiCZUsZoHqab5-cjAQI6WydeHsPQF-cCVWu1A0iwDGwquqQLiZoTNmgyQdBafuKy5fDKisw7eKhAJKcy8I-b-xoieKt2zZzQLBqKEjd1gqu6JzqnXKlj/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.41.50.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrgXJ3ZPngQLP1C5C3-Sy0rNhwTRuudA3lc69N0972vrSZigQD4ToPZOmy9nOutMcCUfMiaNuUn0iK_1GpObwjYMlUeaMH1Y-l5Qh4Wv2AfKLwevyLOB5dAwJtwjIkmRxaxJwDo5vA7rxL/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.43.37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrgXJ3ZPngQLP1C5C3-Sy0rNhwTRuudA3lc69N0972vrSZigQD4ToPZOmy9nOutMcCUfMiaNuUn0iK_1GpObwjYMlUeaMH1Y-l5Qh4Wv2AfKLwevyLOB5dAwJtwjIkmRxaxJwDo5vA7rxL/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.43.37.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
4.下載完後解壓縮，放到你所指定的網址下的任一個目錄&lt;br /&gt;
&lt;br /&gt;
5.在你想寫的程式中加入下列程式碼，&lt;br /&gt;
請將你的App ID和App Secret取代程式中的YOUR_APP_ID和YOUR_APP_SECRET。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; require &#39;php-sdk/src/facebook.php&#39;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; $facebook = new Facebook(array(&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;appId&#39; &amp;nbsp;=&amp;gt; &#39;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;YOUR_APP_ID&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&#39;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;secret&#39; =&amp;gt; &#39;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;YOUR_APP_SECRET&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&#39;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; ));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; // Get User ID&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; $user = $facebook-&amp;gt;getUser(); &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;//$&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;user為所登入用戶之ID&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
6.可用下列程式碼確認用戶是否已登入，並用$loginUrl或$logoutUrl來引導用戶登入或登出：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; if ($user) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;$logoutUrl&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt; = $facebook-&amp;gt;getLogoutUrl();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;$loginUrl &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;= $facebook-&amp;gt;getLoginUrl();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7.$facebook-&amp;gt;api()方法，是呼叫Facebook API的接口：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; if ($user) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; try {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Proceed knowing you have a logged in user who&#39;s authenticated.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $user_profile = $facebook-&amp;gt;api(&#39;/me&#39;); &amp;nbsp;//取得用戶在Facebook的基本資料&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (FacebookApiException $e) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error_log($e);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $user = null;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
8.也可執行examples目錄下的example.php，只要正確登入Facebook，再稍微修改一下$facebook-&amp;gt;api()中的指令，就能知道怎麼用了。&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
9.關於Facebook API的指令，可參考&lt;a href=&quot;https://developers.facebook.com/docs/reference/api/&quot;&gt;Graph API 說明文件&lt;/a&gt;。&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
10.目前試過：&lt;br /&gt;
&#39;me&#39; 可取得所登入用戶之基本資料。&lt;br /&gt;
&#39;me/friends&#39; 可列出登入用戶之所有朋友之姓名及id。&lt;br /&gt;
&#39;me/likes&#39;&amp;nbsp;可列出登入用戶之所有like的專頁。&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
可用https://graph.facebook.com/&amp;lt;?=$id?&amp;gt;/picture來取得指定$id之照片。&lt;/div&gt;
其他還有很多功能，目前還沒試出來。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
上述的me也可以替換成指定用戶之id，但有些功能如果不是該帳戶本人或朋友則無法使用。&lt;br /&gt;
&lt;br /&gt;
基本上應用程式是可以很容易收集很多Facebook用戶的基本資料，因為只要有一個用戶同意使用該App，則表示他的所有朋友的基本資料都可能被該應用程式所取得，雖然都是一些如姓名，性別，所在地區，id等等...非常「基本」個人資料，但如果收集到了足夠數量的資料之後，是可以很輕易的依據該應用程式的功能及用戶的使用狀況來做各種數據分析的。&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/1882331026925362447/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2011/09/facebook-api-php-sdk.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/1882331026925362447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/1882331026925362447'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2011/09/facebook-api-php-sdk.html' title='Facebook API PHP SDK試用心得'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe7lRna6MzX8PeEoQwJ1nG_Zk7pKod39-JtKxDUiDnimrEPQERaPsvLgUua-leBOTENmj0HeOQ0GCErYVTqrhsnv4usRn8R106cQgGsJ1cDwQDpjqsDSOVlp1gE-tn92w5Yx6vPTaRbUoB/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.28.19.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-95610974879823906</id><published>2011-09-01T19:33:00.000-07:00</published><updated>2011-09-01T20:48:53.043-07:00</updated><title type='text'>申請Facebook應用程式的步驟說明</title><content type='html'>由於要開發各種Facebook Application都要先申請，所以將這些共同的步驟單獨整理成一篇。&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
要申請Facebook應用程式，可依照下列步驟進行：&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
1.需先進入&lt;a href=&quot;http://developers.facebook.com/?ref=pf&quot;&gt;Facebook開發者網站&lt;/a&gt;。&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
2.選擇上方選單的「&lt;a href=&quot;https://developers.facebook.com/apps&quot;&gt;應用程式&lt;/a&gt;」連結&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVIxUGHcyFEYWAnyUUAfC-PSPtv1BfhKHjkK1Cu3ZrvO2G_4WoK2i6BnGa5YRmbyOB22yz0_uAqeYV3yiC_jvsa3p1SlIxrX_0ikj7lEQOKq-t6T3mwdHXFdW-RZfgVx5Uk0GfTbYe8Ok-/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25883.54.20.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVIxUGHcyFEYWAnyUUAfC-PSPtv1BfhKHjkK1Cu3ZrvO2G_4WoK2i6BnGa5YRmbyOB22yz0_uAqeYV3yiC_jvsa3p1SlIxrX_0ikj7lEQOKq-t6T3mwdHXFdW-RZfgVx5Uk0GfTbYe8Ok-/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25883.54.20.png&quot; style=&quot;cursor: move;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
3.同意「開發人員」程式之授權請求，如果之前有同意過就不會再出現了。&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1cgIX1Gl4r6lp-D2Mh31Pq-3tHQLOyPRKc3HMIwxBqieilO0Bai8IOp8tPIWtFaABEe4rMjf6v0o8xm455mrfEJrr3DQK19xwxWd7YwayvCT1tiYWDpqL0B2MQwiyLmDl8vWbIhsWqUBb/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.00.43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1cgIX1Gl4r6lp-D2Mh31Pq-3tHQLOyPRKc3HMIwxBqieilO0Bai8IOp8tPIWtFaABEe4rMjf6v0o8xm455mrfEJrr3DQK19xwxWd7YwayvCT1tiYWDpqL0B2MQwiyLmDl8vWbIhsWqUBb/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.00.43.png&quot; style=&quot;cursor: move;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
4.選擇「&lt;a href=&quot;https://developers.facebook.com/ajax/create&quot;&gt;＋建立新的應用程式&lt;/a&gt;」&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiprTspmb7Mf8VcsDS0aAQ4ssxWWwPwdMl05dSaVB6MtxS71zybvvwGLPxoRnmdAl-bSrUNJzKj6Yt9Xsls_7cNQ3eMxB_n8KIjLfJp6O8VonWUTgeZNT_9pXlC416ZIAjkspJuO8XHtd6r/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.03.48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;395&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiprTspmb7Mf8VcsDS0aAQ4ssxWWwPwdMl05dSaVB6MtxS71zybvvwGLPxoRnmdAl-bSrUNJzKj6Yt9Xsls_7cNQ3eMxB_n8KIjLfJp6O8VonWUTgeZNT_9pXlC416ZIAjkspJuO8XHtd6r/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.03.48.png&quot; style=&quot;cursor: move;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;&quot;&gt;
5.輸入App Name，選擇地區，按確定&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiW42skZu2PMoIt5BmhrzFJwhyphenhyphenQOnek4rvq742QIg3Jayy_oB6ZKPJdIlT0y_1xapDuahu7D9o-F7Z7EE7fOunDtls_2FVVl0mkudOoIeE202bVPOrJl4P8fp80ZYlzWkQ1mgvW32Xgj3h/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.07.43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiW42skZu2PMoIt5BmhrzFJwhyphenhyphenQOnek4rvq742QIg3Jayy_oB6ZKPJdIlT0y_1xapDuahu7D9o-F7Z7EE7fOunDtls_2FVVl0mkudOoIeE202bVPOrJl4P8fp80ZYlzWkQ1mgvW32Xgj3h/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.07.43.png&quot; style=&quot;cursor: move;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;&quot;&gt;
6.輸入驗證碼後，按碼認&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdlPMLvpy5lze1tv6-FeIonjW4N03VSH6NdPeWYGZfvb6Gn8N8ue0fbOSBG3c6tbtvuGrW6H00dTgKXYK6T4lPYTwW-NSDgTLMrncmutBhFv9NoLDmJ27rFbtmudMVqCdLo7wFyPJxXUFt/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.08.20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdlPMLvpy5lze1tv6-FeIonjW4N03VSH6NdPeWYGZfvb6Gn8N8ue0fbOSBG3c6tbtvuGrW6H00dTgKXYK6T4lPYTwW-NSDgTLMrncmutBhFv9NoLDmJ27rFbtmudMVqCdLo7wFyPJxXUFt/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25884.08.20.png&quot; style=&quot;cursor: move;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
7.完成，整個流程最主要的目的就是要為你的App產生一組App ID和App Secret，在套用SDK時往往需要將App ID及App Secret加到程式中才能夠合法使用Facebook API，至於其他設定，則視要開發什麼App才能決定了。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_WLGCRuTV0n_t8_Dy2ZyuL9Vchyfo2lkgrKkgviz8564HpxXVTm0u5vj0wQqTNAGG2L9M7Jh0g-rsIuX3IbLZlfm2ZljzebyQoTqk9ebg39zdyPeSh3IH1lGXYmV3rCLd6sllFJ2PIc_x/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-02+%25E4%25B8%258A%25E5%258D%258810.18.10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;488&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_WLGCRuTV0n_t8_Dy2ZyuL9Vchyfo2lkgrKkgviz8564HpxXVTm0u5vj0wQqTNAGG2L9M7Jh0g-rsIuX3IbLZlfm2ZljzebyQoTqk9ebg39zdyPeSh3IH1lGXYmV3rCLd6sllFJ2PIc_x/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-02+%25E4%25B8%258A%25E5%258D%258810.18.10.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
後續要開發什麼App，可參考：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://yutongchen.blogspot.com/2011/09/facebook-api-php-sdk.html&quot;&gt;Facebook API PHP SDK試用心得&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/95610974879823906/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2011/09/facebook.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/95610974879823906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/95610974879823906'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2011/09/facebook.html' title='申請Facebook應用程式的步驟說明'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVIxUGHcyFEYWAnyUUAfC-PSPtv1BfhKHjkK1Cu3ZrvO2G_4WoK2i6BnGa5YRmbyOB22yz0_uAqeYV3yiC_jvsa3p1SlIxrX_0ikj7lEQOKq-t6T3mwdHXFdW-RZfgVx5Uk0GfTbYe8Ok-/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-09-01+%25E4%25B8%258B%25E5%258D%25883.54.20.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-713769554145212767</id><published>2011-08-25T21:49:00.000-07:00</published><updated>2011-08-25T22:34:15.210-07:00</updated><title type='text'>我對海基會九二共識的解讀</title><content type='html'>最近藍綠和共產黨為了九二共識存不存在的問題吵得很大，&lt;br /&gt;
於是，&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;海基會拿出1992年11月中國海協會來函，&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;裡頭寫著：&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;『&lt;b&gt;在相互諒解的前提下，採用貴我兩會各自口頭聲明的方式表述一個中國原則&lt;/b&gt;』，&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;海基會秘書長高孔廉強調，這就是『九二共識』達成共識的開始。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;相關內容可參考：&lt;a href=&quot;http://web.pts.org.tw/php/news/pts_news/detail.php?NEENO=189071&quot;&gt;http://web.pts.org.tw/php/news/pts_news/detail.php?NEENO=189071&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;看來九二共識似乎是存在的，從字面上來解釋，似乎就是這幾年來國民黨一直在說的「一中各表」了，&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;但仔細想想，這其中是有很大的陷阱的，因為他的解釋可以不只有一種，也許他可以解釋成「&lt;b&gt;一國兩制&lt;/b&gt;」，我想中共應該是如此解讀的。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;關於一國兩制的相關說明，可參考：&lt;a href=&quot;http://zh.wikipedia.org/zh-tw/%E4%B8%80%E5%9C%8B%E5%85%A9%E5%88%B6&quot;&gt;http://zh.wikipedia.org/zh-tw/一國兩制&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
從一國兩制的歷史來看，他的出現要比1992年要早了十年以上，如果我們回到那個時代背景，看到共產黨寫來的這句：&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;『在相互諒解的前提下，採用貴我兩會各自口頭聲明的方式表述一個中國原則』，你會如何解讀？我想如果在當時，我會把他解讀為，中共希望國民黨在接受「一國兩制」的前提下來與他們對談。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 26px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
在我從學生到當兵的年代，一國兩制的字眼並不陌生，而且，國民黨也很明白的告訴我們，一國兩制是騙人的，是中共統戰的技倆，而且也是絕對不可以接受的，類似的文章，現在在陸委會的網站也還能找到：&lt;a href=&quot;http://www.mac.gov.tw/ct.asp?xItem=45564&amp;amp;CtNode=6075&amp;amp;mp=1&quot;&gt;http://www.mac.gov.tw/ct.asp?xItem=45564&amp;amp;CtNode=6075&amp;amp;mp=1&lt;/a&gt;，是1998年國民黨執政時所寫的。我想這也就是為什麼後來國共談不下去的原因，因為當時國民黨應該很清楚的知道「九二共識」對中共來說，就等於「一國兩制」。&lt;br /&gt;
&lt;br /&gt;
這幾年來我一直覺得很奇怪，為什麼民進黨一直說九二共識並不存在，但國共卻一直要民進黨承認他的存在？要證明他的存在真的有這麼難嗎？就算他真的不存在，難道國共就不能一起出來解釋他們所謂的「九二共識」是什麼嗎？如果在談相關合約的時候，在前面明確註明九二共識的意涵，或把九二共識另外寫成一個合約來加註進來，真的有這麼難嗎？這麼簡單的道理，難道他們會不知道嗎？答案很簡單，因為他們想要保留彼此之間的模糊地帶，各自解讀。接著，國共就可以取所需，各自進行其後續的動作，我不清楚國民黨真正的目的是什麼，但我想我可以很清楚的知道共產黨的目的就是實現「一國兩制」。&lt;br /&gt;
&lt;br /&gt;
從1992年到2000年之間，為什麼國共會沒有進展？原因很簡單，因為國民黨當時在台灣的勢力還很大，所以是絕對不會接受「一國兩制」的。那為什麼2008年之後就突然有快速進展了呢？我想原因也很簡單，因為國民黨越來越清楚台灣已經不是他們的舞台了，如果他們不借重中共的力量，他們很難做出好的政績，於是他們終於願意接受包著「九二共識」糖衣的「一國兩制」，這樣，他們不但能夠有比較大的機會保住政權，也許還有機會返回大中國的舞台，這麼簡單的道理，我想國民黨的高層不會不知道，只是不能說出口而已。而共產黨則基於統戰的目的，當然也不願意說穿囉～&lt;br /&gt;
&lt;br /&gt;
從上述推論來看，民進黨所謂的「九二共識不存在論」是合理的，因為在當年，國民黨並沒有接受共產黨的提議，既然當年「九二」沒有接受，當然不能稱之為「共識」，如此一來，「九二共識」當然是不存在的，如果要說，也只能說，國民黨在2008年，接受了共產黨在1992年提出的「一國兩制」之建議。&lt;br /&gt;
&lt;br /&gt;
而國共所說的「九二共識存在論」，其實也有一定的道理在，畢竟這個說法是在1992年提出的，而其話中的內容確實是希望達成某種共識，雖然國民黨不是在1992年接受的，但他確實也是共產黨當年希望國民黨接受的一個「共識」。&lt;br /&gt;
&lt;br /&gt;
因此，就我個人觀點來看，這個爭論表面上看似沒意義，其實中間的意義在於要不要接受共產黨的「一國兩制」，基本上我個人認為「一中各表」只是國民黨給九二共識所加上的另一層糖衣罷了，也就是說，經過十六年的人事變遷，國民黨其實已經接受了共產黨的「一國兩制」。&lt;br /&gt;
&lt;br /&gt;
以上言論純屬就事論事的推論，不代表個人之政治立場，也可能因為我手頭的資料的不週全而有所忽略的地方，如有其他事證或見解，也歡迎指教！</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/713769554145212767/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2011/08/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/713769554145212767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/713769554145212767'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2011/08/blog-post.html' title='我對海基會九二共識的解讀'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-1405238191537908491</id><published>2011-08-07T23:57:00.000-07:00</published><updated>2011-08-08T06:24:06.115-07:00</updated><title type='text'>iOS 5 iPhone Beta 4試用心得（一）</title><content type='html'>&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;從安裝說起&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
因為是Beta版，所以只有付費的iOS開發者才能夠下載。&lt;br /&gt;
由於之前從iPhone 3.x升到4.0 Beta時，有遇到某些問題導致必須降回3.x版，而Apple官方通常不提供降級的解決方案，必須尋求第三方的解決方案(JB之類的)。&lt;br /&gt;
所以從那次以後，如果不是有很吸引我的功能，實在不太願意去嚐試iOS的Beta版。&lt;br /&gt;
原本真的是不打算安裝的，但後來發現iCloud可以用了，我想這是很重要的功能，以後如果要開發可在iPhone和iPad上都能用的App，就可以用這個功能來提供更好的服務，所以在iCloud的引誘下，還是決定裝來試試看了。&lt;br /&gt;
&lt;br /&gt;
安裝iOS 5.0 Beta版之前，通常需先下載Beta版的相應軟體&amp;nbsp;iTunes &amp;amp; Xcode，才能夠用他們來安裝iOS Beta版，相關檔案可到iOS Dev Center下載：&lt;br /&gt;
&lt;a href=&quot;http://developer.apple.com/devcenter/ios/index.action&quot;&gt;http://developer.apple.com/devcenter/ios/index.action&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
下載完後安裝，發現Xcode和iTunes都不讓我安裝，只好上網尋求協助，還好找到解決方法了，下面網站提供了完整的安裝教學：&lt;br /&gt;
&lt;a href=&quot;http://www.thinkingcap.com.au/news/guide-installing-ios-5-beta&quot;&gt;http://www.thinkingcap.com.au/news/guide-installing-ios-5-beta&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;第一次開機&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.thinkingcap.com.au/sites/default/files/ios-recovery-mode-02.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://www.thinkingcap.com.au/sites/default/files/ios-recovery-mode-02.png&quot; width=&quot;211&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
初次開機的畫面和4.x版以前有很大的不同，之前的版本都必須先接到iTunes上去註冊，現在不需要了，改成用精靈的方式一步步引導用戶設定。&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGOnTpOTrbA7g0M5hZar9LutBrKqiUBHWxjwbZqT0_nzl3ZVEARbK3S548zhIsJm0ncTYgCgxX4jfEAtnl9A6J25CHFNnMkM1DnxNPgEcBinAt6xCkPk6KXZ4bjtQGQKsbatNCt1LT0R2Y/s1600/Screenshot+2011.08.03+16.25.54.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGOnTpOTrbA7g0M5hZar9LutBrKqiUBHWxjwbZqT0_nzl3ZVEARbK3S548zhIsJm0ncTYgCgxX4jfEAtnl9A6J25CHFNnMkM1DnxNPgEcBinAt6xCkPk6KXZ4bjtQGQKsbatNCt1LT0R2Y/s1600/Screenshot+2011.08.03+16.25.54.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGOnTpOTrbA7g0M5hZar9LutBrKqiUBHWxjwbZqT0_nzl3ZVEARbK3S548zhIsJm0ncTYgCgxX4jfEAtnl9A6J25CHFNnMkM1DnxNPgEcBinAt6xCkPk6KXZ4bjtQGQKsbatNCt1LT0R2Y/s320/Screenshot+2011.08.03+16.25.54.png&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR-8jbF8jJ_j2_44_wj7PB8w6_lIMMhlnKgCt7CB8t5fz8yR66eTei4nMZNoZfGjC0Bnkz_rsfckPB8GzQ_aPyMA0ZcKPkiWpBdEKCaJn3UoJgv1j-FVY-yOPwwzyIPFJTsgQ9IvSQtXBQ/s1600/Screenshot+2011.08.03+16.25.46.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR-8jbF8jJ_j2_44_wj7PB8w6_lIMMhlnKgCt7CB8t5fz8yR66eTei4nMZNoZfGjC0Bnkz_rsfckPB8GzQ_aPyMA0ZcKPkiWpBdEKCaJn3UoJgv1j-FVY-yOPwwzyIPFJTsgQ9IvSQtXBQ/s320/Screenshot+2011.08.03+16.25.46.png&quot; width=&quot;212&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLXQcqG9efQidD1QpaPPJyEPP9mswtyQAEMMxHVyMFVeume1bUq8qkM340T8bWlHQMQnlfEYWKDj0ZuHXokgqe6nFAvh83MvNTD4O6L2lGI3eduGd0IJX8R9_ZMLgaqTHuplTBSBX1wuTG/s1600/Screenshot+2011.08.03+16.26.03.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLXQcqG9efQidD1QpaPPJyEPP9mswtyQAEMMxHVyMFVeume1bUq8qkM340T8bWlHQMQnlfEYWKDj0ZuHXokgqe6nFAvh83MvNTD4O6L2lGI3eduGd0IJX8R9_ZMLgaqTHuplTBSBX1wuTG/s320/Screenshot+2011.08.03+16.26.03.png&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaGyadA7FojqjUE-QS2f6SPMLXp7M2vN9qELwPLUyltVYIH8MI_HueewBFftBorIsI0VQBFwlEDTlTBBa8tz6tffDBR_O_lI4yBqX7bgfG902mD1AwiocQFNKu2QLJREhnsT4RWWq-F_jL/s1600/Screenshot+2011.08.03+16.30.29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaGyadA7FojqjUE-QS2f6SPMLXp7M2vN9qELwPLUyltVYIH8MI_HueewBFftBorIsI0VQBFwlEDTlTBBa8tz6tffDBR_O_lI4yBqX7bgfG902mD1AwiocQFNKu2QLJREhnsT4RWWq-F_jL/s320/Screenshot+2011.08.03+16.30.29.png&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;當然，還是可以使用iTunes去做還原。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;主畫面&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-2ntU6pmhPi16LkHKFFUplE9G9uQcif9z0TQWN80iJfah71znuo1dhNh6R9W3lUad_5zjl_YIL53_hWJLwS-NMLuYE-7MhE0tN_i_Et7PzDYHgOlGJxWHLdmnQzbdz9fqyVzUfGNo-TfU/s1600/Screenshot+2011.08.03+16.58.54.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-2ntU6pmhPi16LkHKFFUplE9G9uQcif9z0TQWN80iJfah71znuo1dhNh6R9W3lUad_5zjl_YIL53_hWJLwS-NMLuYE-7MhE0tN_i_Et7PzDYHgOlGJxWHLdmnQzbdz9fqyVzUfGNo-TfU/s1600/Screenshot+2011.08.03+16.58.54.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-2ntU6pmhPi16LkHKFFUplE9G9uQcif9z0TQWN80iJfah71znuo1dhNh6R9W3lUad_5zjl_YIL53_hWJLwS-NMLuYE-7MhE0tN_i_Et7PzDYHgOlGJxWHLdmnQzbdz9fqyVzUfGNo-TfU/s320/Screenshot+2011.08.03+16.58.54.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
這次的基本功能主要是多了&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;提醒事項&lt;/span&gt;&lt;/b&gt;和&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;書報櫃&lt;/span&gt;&lt;/b&gt;。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;書報櫃：目前似乎無法使用。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;提醒事項：可輸入要做的事情，除可選擇提醒的時間，亦可選擇地點。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;音樂，視訊：只是把原本iPod中的視訊抽出來做成另一個App，和iPad一樣。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;鎖定畫面&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxuqWpigwJOoHMT6t2_2W415F-lM6T5yHzyBnPa3vePrJrI0E2ocAhVbr4ZRpr3XCHumKJBpjrmRHRDs6xq1Xpv_FmWxizxLlR5U7xtoBSZnv3aaBhVIw7JfccQUTJtlZfQhjT5gluIiV5/s1600/Screenshot+2011.08.08+11.31.26.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxuqWpigwJOoHMT6t2_2W415F-lM6T5yHzyBnPa3vePrJrI0E2ocAhVbr4ZRpr3XCHumKJBpjrmRHRDs6xq1Xpv_FmWxizxLlR5U7xtoBSZnv3aaBhVIw7JfccQUTJtlZfQhjT5gluIiV5/s320/Screenshot+2011.08.08+11.31.26.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;在鎖定狀態下，&lt;br /&gt;
&lt;br /&gt;
按一下Home鍵時，的鎖定畫面和原來是相同的。&lt;br /&gt;
&lt;br /&gt;
而當連按兩下Home鍵時，則右下角會出現照相機鈕，&lt;br /&gt;
按下後可直接開啟相機進行拍照。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;iCloud&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
設定頁面，從圖可看出開關按鈕的風格和4.x版不同了&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiTKdsgaGL9_PABm-pu3i8opyRVAQYwyzKxMpNeS8YG2s_reY8BmI5sEl7uvjaOWQ3NVDx5M7KdmOM99Zls2xVuy8gx1J-yay5ibi-50l754MQRbFc25UXZl52jYT879Oz7CSPjzs32VFy/s1600/Screenshot+2011.08.08+11.50.53.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiTKdsgaGL9_PABm-pu3i8opyRVAQYwyzKxMpNeS8YG2s_reY8BmI5sEl7uvjaOWQ3NVDx5M7KdmOM99Zls2xVuy8gx1J-yay5ibi-50l754MQRbFc25UXZl52jYT879Oz7CSPjzs32VFy/s320/Screenshot+2011.08.08+11.50.53.png&quot; width=&quot;212&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicHlCfy-h51ek-LNGWvyVELFGe6pmxaqiAAZ-ij3MoVpfaUKxM7n1jFWmq4yKgsZEXJ3h-PMGLSnNwiFIz3fbtbHaUrfWfCInvOgyvCUvZUQPBedDB2D2BHqxgfyYfJJgqwCgUR8m7E792/s1600/Screenshot+2011.08.08+11.51.03.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicHlCfy-h51ek-LNGWvyVELFGe6pmxaqiAAZ-ij3MoVpfaUKxM7n1jFWmq4yKgsZEXJ3h-PMGLSnNwiFIz3fbtbHaUrfWfCInvOgyvCUvZUQPBedDB2D2BHqxgfyYfJJgqwCgUR8m7E792/s320/Screenshot+2011.08.08+11.51.03.png&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaYMbHLRmtQtW-NXDYf2g1yJ4itw9zOS10qj_kmSm7NQTAaqxPC6vnnz4Ic9EAZ3HNQTkL2VPRjEJm2Rv-UryXDqCTUAfRolnpvgjPqA4KeeHtaL-xdGv_-lpMkcdbNIG6CRGmjalunsL6/s1600/Screenshot+2011.08.08+11.53.14.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaYMbHLRmtQtW-NXDYf2g1yJ4itw9zOS10qj_kmSm7NQTAaqxPC6vnnz4Ic9EAZ3HNQTkL2VPRjEJm2Rv-UryXDqCTUAfRolnpvgjPqA4KeeHtaL-xdGv_-lpMkcdbNIG6CRGmjalunsL6/s1600/Screenshot+2011.08.08+11.53.14.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaYMbHLRmtQtW-NXDYf2g1yJ4itw9zOS10qj_kmSm7NQTAaqxPC6vnnz4Ic9EAZ3HNQTkL2VPRjEJm2Rv-UryXDqCTUAfRolnpvgjPqA4KeeHtaL-xdGv_-lpMkcdbNIG6CRGmjalunsL6/s320/Screenshot+2011.08.08+11.53.14.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
儲存與備份設定，每人有5GB的免費儲存空間。&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ5n6cpl-lOTfJ1QyOz5O5ZD3JfpbwPwYt4tYZQXXDcIX-HyGaW6OcJ4u-LimAfpzPj28flb2ANHoCJzYEi0mjO-jYBYch356pFEbau-39m5htiGU8qmZaIpfi4L5ZbgUnjjry3u2FDwC4/s1600/Screenshot+2011.08.08+11.53.39.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ5n6cpl-lOTfJ1QyOz5O5ZD3JfpbwPwYt4tYZQXXDcIX-HyGaW6OcJ4u-LimAfpzPj28flb2ANHoCJzYEi0mjO-jYBYch356pFEbau-39m5htiGU8qmZaIpfi4L5ZbgUnjjry3u2FDwC4/s320/Screenshot+2011.08.08+11.53.39.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
除了免費的5GB之外，還可以加購10GB，20GB，50GB，平均每10GB的年費為20USD。&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK36ug2blsmuUmyCoQYh0e67iiGOKKwiRNYXjrxzpln5BimKUMrKU9JOEfPDre_6O1Mwmvrx6I75KPaFb_4-ZfiArrpNH77EKe2HXSg5H4i5wYDhM-G4cqRTI8s0gjEvsXjLAWIeJtDrQi/s1600/Screenshot+2011.08.08+11.54.08.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK36ug2blsmuUmyCoQYh0e67iiGOKKwiRNYXjrxzpln5BimKUMrKU9JOEfPDre_6O1Mwmvrx6I75KPaFb_4-ZfiArrpNH77EKe2HXSg5H4i5wYDhM-G4cqRTI8s0gjEvsXjLAWIeJtDrQi/s320/Screenshot+2011.08.08+11.54.08.png&quot; width=&quot;212&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNFG9G6Y_m1xozxPoW9W4USOzst4aqi5GXW_nBpOcZ9Y_otyV4TF69E9NLID_iLD_k4tB_cflZf_dkMZodBMwKsimmPu6JgH6WsK0FwVsW8nw3h0Y7DewelEcIr9oXhaPsbETRI0YEdxGc/s1600/Screenshot+2011.08.08+11.56.43.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNFG9G6Y_m1xozxPoW9W4USOzst4aqi5GXW_nBpOcZ9Y_otyV4TF69E9NLID_iLD_k4tB_cflZf_dkMZodBMwKsimmPu6JgH6WsK0FwVsW8nw3h0Y7DewelEcIr9oXhaPsbETRI0YEdxGc/s320/Screenshot+2011.08.08+11.56.43.png&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK36ug2blsmuUmyCoQYh0e67iiGOKKwiRNYXjrxzpln5BimKUMrKU9JOEfPDre_6O1Mwmvrx6I75KPaFb_4-ZfiArrpNH77EKe2HXSg5H4i5wYDhM-G4cqRTI8s0gjEvsXjLAWIeJtDrQi/s1600/Screenshot+2011.08.08+11.54.08.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; color: black;&quot;&gt;同一組iCloud帳號可備份多台設備的資料，也可只備份自已想備份的App。&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7UqrbBQEKnQNJXqxT8qNuxMSzXXZm0zfg9Uth5z_7sbICozvJ3-gGogS2W3n6us5ry2mzCXCuWkynyf3fys8VSv_H6GbFxwUoVBvfQYzS1j1Nu8oYlNuAIxepaog92zTFWd3cedctB7e_/s1600/Screenshot+2011.08.08+12.03.21.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7UqrbBQEKnQNJXqxT8qNuxMSzXXZm0zfg9Uth5z_7sbICozvJ3-gGogS2W3n6us5ry2mzCXCuWkynyf3fys8VSv_H6GbFxwUoVBvfQYzS1j1Nu8oYlNuAIxepaog92zTFWd3cedctB7e_/s320/Screenshot+2011.08.08+12.03.21.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
如果在AB設備開啟了照片串流的功能，且AB使用同一個iCloud帳號時，一旦用A拍了新照片，拍完後大約1分鐘左右，就能在AB的相簿中的&lt;b&gt;照片串流&lt;/b&gt;圖庫中都看到剛才所拍的照片。&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
另外，可從&lt;a href=&quot;http://www.icloud.com/&quot;&gt;www.icloud.com&lt;/a&gt;登入查看或下載iCloud的內容。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7LrOFzY9PhyuxE43EUKatt3vwIG-6iE_s57BTMVTbVwjyMu_lpjQ7x7uVwlPXJbwH54Svw1NMpyFUjU5lcErRaxCssFGhPE9PpEtJ-mJGq3LlY9H5x6omlAadHQy-_Qw7xyCSQ-B5Ejvo/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-08+%25E4%25B8%258B%25E5%258D%25882.52.57.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;78&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7LrOFzY9PhyuxE43EUKatt3vwIG-6iE_s57BTMVTbVwjyMu_lpjQ7x7uVwlPXJbwH54Svw1NMpyFUjU5lcErRaxCssFGhPE9PpEtJ-mJGq3LlY9H5x6omlAadHQy-_Qw7xyCSQ-B5Ejvo/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-08+%25E4%25B8%258B%25E5%258D%25882.52.57.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Notification Center&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirrMfbeY7hHILH2sIvdp4suboqW97PurbPDzOnAnf5l6YuFqxdCCVelvhWAwEWV5p4omfy0WRrIZF3Mx0krbN5ZHsqhvdxgKIFdYZ5rvQb1MtwXXGuejJ_m7BXZcEj35NZVnoDtvVAha79/s1600/Screenshot+2011.08.08+11.58.19.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirrMfbeY7hHILH2sIvdp4suboqW97PurbPDzOnAnf5l6YuFqxdCCVelvhWAwEWV5p4omfy0WRrIZF3Mx0krbN5ZHsqhvdxgKIFdYZ5rvQb1MtwXXGuejJ_m7BXZcEj35NZVnoDtvVAha79/s320/Screenshot+2011.08.08+11.58.19.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
用手指從狀態列開始往下划動，會出現訊息列表，感覺和Android差不多，但看起來畫面相當細緻。&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;提醒事項&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2ODZwvi-acwWz8V0w6aRiG9Y8XR0kNtO4Wf4niivh3SK0rsxBsAjtqo6EcWzXpmrEkuWh7xCkROpaXat93Aar5-j9zSreNvqOBAxPlD-16dxVqzHFbZTc23BfLntrjfhK1rG5pUTPrWRh/s1600/Screenshot+2011.08.08+12.13.07.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2ODZwvi-acwWz8V0w6aRiG9Y8XR0kNtO4Wf4niivh3SK0rsxBsAjtqo6EcWzXpmrEkuWh7xCkROpaXat93Aar5-j9zSreNvqOBAxPlD-16dxVqzHFbZTc23BfLntrjfhK1rG5pUTPrWRh/s320/Screenshot+2011.08.08+12.13.07.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
按下左上角的＋鈕，可新增提醒事項。&lt;br /&gt;
&lt;br /&gt;
如果該事項已完成，可點選左側的確認框，則該事項會消失，並顯示在已完成事列表中項中。&lt;br /&gt;
&lt;br /&gt;
如果要設定詳細資訊，可點選該事項右側的＞鈕。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRYARIFht55O0wIwV6mHM9h63NDJdRyp81z_jLSpQh39QbQTjTEXHNR87PQXWyhaSdxbli6D_lVGJaIx9lDk4j2CVHeUlN4kMuYXfgxMC5XkM84tMjQmCZA82U4GIImOqU8ZQJyRNUPSBv/s1600/Screenshot+2011.08.08+12.13.15.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRYARIFht55O0wIwV6mHM9h63NDJdRyp81z_jLSpQh39QbQTjTEXHNR87PQXWyhaSdxbli6D_lVGJaIx9lDk4j2CVHeUlN4kMuYXfgxMC5XkM84tMjQmCZA82U4GIImOqU8ZQJyRNUPSBv/s320/Screenshot+2011.08.08+12.13.15.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
點選事項名稱可修改名稱。&lt;br /&gt;
&lt;br /&gt;
點選提醒欄，可指定時間或位置，詳如下圖。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_1OgGr927io5wtIJvwnsTWGVJ_UeXM2xp_hVUCNOZhbe7Vc6TCAHCosZv0qjL-E3R0YzwRIaeemJhcYUlCqSU21uCsYv0qA61RXB7X98_ldsSXPXaYfry3ZovuJ8Y7TbWvOkUGLKP7mPi/s1600/Screenshot+2011.08.08+12.14.07.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_1OgGr927io5wtIJvwnsTWGVJ_UeXM2xp_hVUCNOZhbe7Vc6TCAHCosZv0qjL-E3R0YzwRIaeemJhcYUlCqSU21uCsYv0qA61RXB7X98_ldsSXPXaYfry3ZovuJ8Y7TbWvOkUGLKP7mPi/s320/Screenshot+2011.08.08+12.14.07.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
指定位置可使用目前位置，或是從連絡人名單中的連絡人地址中指定。&lt;br /&gt;
&lt;br /&gt;
可設定是要離開的時候，或是抵達的時候做提醒。&lt;br /&gt;
&lt;br /&gt;
當然如果要指定位置，則會被要求開啟定位功能。&lt;br /&gt;
&lt;br /&gt;
但如果沒有開啟3G功能的情況下，也有可能到了指定的地點，他仍然沒有做提醒，似乎是要在能上網的狀態才能辨識地點。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk1recn43rVmk6qf0nkny1LFW0KTOkU6tf1JFyqpWb7MgO68-muxx5EyHbLEpjVL4Vfr8qp1oYXJhg-hMWZ7yxwTcBNmIc6fngu1Uk2YnJqT9_oY_zf_o6XcwBfEbcjr95ejBEUgF59jxp/s1600/Screenshot+2011.08.08+14.40.11.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk1recn43rVmk6qf0nkny1LFW0KTOkU6tf1JFyqpWb7MgO68-muxx5EyHbLEpjVL4Vfr8qp1oYXJhg-hMWZ7yxwTcBNmIc6fngu1Uk2YnJqT9_oY_zf_o6XcwBfEbcjr95ejBEUgF59jxp/s320/Screenshot+2011.08.08+14.40.11.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
當指定時間或地點到了，就會發出提醒。&lt;br /&gt;
&lt;br /&gt;
在鎖定狀態下，可直接按住提醒事項圖示往右划，就可直接進入提醒事項，將他設為已完成，或修改提醒時間地點等動作，這是屬於Notification Center的功能，應可套用到其他相關功能上，如行事曆，簡訊，電話，推播通知等等...&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;iWork&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwUGUQIrtGWyi-CCoCzbidEZxePAMSs4Ilge7TP2TynrvDmtDyFu4AyohdVQAGswDoYEH_8QaBKvras8CySR78wdt6-1rgLIqqKMv2zjG1B2naTFAubip0WvKANKngxPnEBZFVmePYVTcl/s1600/Screenshot+2011.08.05+13.45.05.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwUGUQIrtGWyi-CCoCzbidEZxePAMSs4Ilge7TP2TynrvDmtDyFu4AyohdVQAGswDoYEH_8QaBKvras8CySR78wdt6-1rgLIqqKMv2zjG1B2naTFAubip0WvKANKngxPnEBZFVmePYVTcl/s320/Screenshot+2011.08.05+13.45.05.png&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
官網還是供了Pages, Numbers, Keynote讓開發者試用，而在裡面寫好的文件都能同步到iCloud。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;另外聽說有人在Beta 3測試到可以將FaceTime的畫面用Air Play的方式顯示到電視螢幕上，但目前雖已將Apple TV也升到Beta 3，但還是找不到相關按鈕。&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/1405238191537908491/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2011/08/ios-5-iphone-beta-4.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/1405238191537908491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/1405238191537908491'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2011/08/ios-5-iphone-beta-4.html' title='iOS 5 iPhone Beta 4試用心得（一）'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGOnTpOTrbA7g0M5hZar9LutBrKqiUBHWxjwbZqT0_nzl3ZVEARbK3S548zhIsJm0ncTYgCgxX4jfEAtnl9A6J25CHFNnMkM1DnxNPgEcBinAt6xCkPk6KXZ4bjtQGQKsbatNCt1LT0R2Y/s72-c/Screenshot+2011.08.03+16.25.54.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-998562598716640779</id><published>2011-07-29T02:56:00.000-07:00</published><updated>2011-07-29T03:05:41.030-07:00</updated><title type='text'>用PHP寫的Google Pie Chart (圖餅圖) API Class</title><content type='html'>最近在用PHP做一些Server的數據分析，做到一個程度後，突然覺得如果能把分析的結果做成圖表，可能會比較好，於是就開始找PHP的Chart Library，找到了幾個雖然都能用，但還是覺得不太滿意，到後來我想做圓餅圖時，就找不到什麼Library了，後來發現了原來Google有做了很強大的Chart API, 只要把相關參數用GET的方式傳到：&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;http://chart.apis.google.com/chart&lt;/span&gt;，Google就可以幫我們做出我們要的圖表。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
先直接用API畫個簡單的圓餅圖,&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;URL如下：&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;a href=&quot;http://chart.apis.google.com/chart?chs=400x200&amp;amp;cht=p&amp;amp;chd=t:3,4,5&amp;amp;chl=%E6%A8%99%E7%B1%A41|%E6%A8%99%E7%B1%A42|%E6%A8%99%E7%B1%A43&amp;amp;chdl=%E5%9C%96%E4%BE%8B1|%E5%9C%96%E4%BE%8B2|%E5%9C%96%E4%BE%8B3&quot;&gt;http://chart.apis.google.com/chart?chs=400x200&amp;amp;cht=p&amp;amp;chd=t:3,4,5&amp;amp;chl=標籤1|標籤2|標籤3&amp;amp;chdl=圖例1|圖例2|圖例3&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
畫出來的結果如下圖：&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://chart.apis.google.com/chart?chs=400x200&amp;amp;cht=p&amp;amp;chd=t:3,4,5&amp;amp;chl=%E6%A8%99%E7%B1%A41|%E6%A8%99%E7%B1%A42|%E6%A8%99%E7%B1%A43&amp;amp;chdl=%E5%9C%96%E4%BE%8B1|%E5%9C%96%E4%BE%8B2|%E5%9C%96%E4%BE%8B3&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;http://chart.apis.google.com/chart?chs=400x200&amp;amp;cht=p&amp;amp;chd=t:3,4,5&amp;amp;chl=標籤1|標籤2|標籤3&amp;amp;chdl=圖例1|圖例2|圖例3&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;圖1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
詳細用法可參考官方說明文件：&lt;br /&gt;
&lt;a href=&quot;http://code.google.com/intl/zh-TW/apis/chart/image/docs/gallery/pie_charts.html&quot;&gt;http://code.google.com/intl/zh-TW/apis/chart/image/docs/gallery/pie_charts.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
由於我是要把自已分析好的各種數據做成各種圖表，如果每次要做圖，都要用這種方式搞一次，會讓我覺得很累，所以就先把Google Chart寫成一個基礎的Class, 之後再依據自已的需要針對各種圖表去繼承他。&lt;br /&gt;
&lt;br /&gt;
以上面的例子，我只要先寫好一個GoogleChart.php的腳本，再像下面這樣寫，就可以做出上面的圖表（圖1）了。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #999999;&quot;&gt;nclude(&quot;GoogleChart.php&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #999999;&quot;&gt;$chart = new GooglePieChart(400,200);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #999999;&quot;&gt;$data = array(3,4,5);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #999999;&quot;&gt;$labels = array(&quot;標籤1&quot;,&quot;標籤2&quot;,&quot;標籤3&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #999999;&quot;&gt;$legends = array(&quot;圖例1&quot;,&quot;圖例2&quot;,&quot;圖例3&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #999999;&quot;&gt;$chart-&amp;gt;setData($data,$labels,$legends);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #999999;&quot;&gt;$chart-&amp;gt;draw();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
雖然表面上看起來字是比較多，但實際上會比較容易理解，而且不管我的數據是什麼，我只要用1個陣列，就能產生出另外2個陣列來畫出我要的圖表，到時候也就差不多這幾行，另外一個好處就是，如果將來沒有其他特殊需求的話，以後就算過了很久，就算我都忘了Google API是長怎樣的了，但我只要看到上面那幾句，就能夠直接套用而不必再去爬文了。&lt;br /&gt;
&lt;br /&gt;
GoogleChart.php程式如下，有需要的可以自已copy回去用：&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;class GoogleChart{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; var $width,$height;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; var $chart_type;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; var $api_url;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; var $parameters;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; function GoogleChart($w,$h,$type,$url=&quot;http://chart.apis.google.com/chart&quot;){&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;parameters = array();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;width = $w;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;height = $h;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;chart_type = $type;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;api_url = $url;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;parameters[&#39;chs&#39;] = $w.&quot;x&quot;.$h;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;parameters[&#39;cht&#39;] = $type;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; function draw(){&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $url = $this-&amp;gt;api_url;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach($this-&amp;gt;parameters as $key =&amp;gt; $value){&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params[] = &quot;$key=$value&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $url .= &quot;?&quot;.implode(&quot;&amp;amp;&quot;,$params);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;header(&quot;Location: $url&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;} //class GoogleChart&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;class GooglePieChart extends GoogleChart{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; function GooglePieChart($w,$h,$type=&quot;p&quot;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parent::GoogleChart($w,$h,$type);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; function setData($data,$labels=null,$legends=null){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;parameters[&#39;chd&#39;] = &quot;t:&quot;.implode(&quot;,&quot;,$data);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if($labels) $this-&amp;gt;setLabels($labels);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if($legends) $this-&amp;gt;setLegends($legends);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; function setLabels($labels){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;parameters[&#39;chl&#39;] = implode(&quot;|&quot;,$labels);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; function setLegends($legends){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;parameters[&#39;chdl&#39;] = implode(&quot;|&quot;,$legends);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;} //class GooglePieChart extends: GoogleChart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;class GooglePieChart3D extends GooglePieChart{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; function GooglePieChart3D($w,$h){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parent::GooglePieChart($w,$h,&quot;p3&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/998562598716640779/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2011/07/phpgoogle-pie-chart-api-class.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/998562598716640779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/998562598716640779'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2011/07/phpgoogle-pie-chart-api-class.html' title='用PHP寫的Google Pie Chart (圖餅圖) API Class'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-2441312119222863667</id><published>2011-07-25T03:17:00.000-07:00</published><updated>2011-07-25T03:29:46.917-07:00</updated><title type='text'>Mac OSX 10.7 Lion 使用心得（一）</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Fravz7Vzmvq_wGfAOK7oDMW4nwSTEPTNfEVEjdk95sZ3m4bn8Hs4v2oCXUSBL98sVBFxiUq5mUa6NKIDRcY1QnranmqgBDZM523DlHzfv2lN-6GZD7sbjTPmgkY1btws19hCpokVEBpB/s1600/MacInfo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Fravz7Vzmvq_wGfAOK7oDMW4nwSTEPTNfEVEjdk95sZ3m4bn8Hs4v2oCXUSBL98sVBFxiUq5mUa6NKIDRcY1QnranmqgBDZM523DlHzfv2lN-6GZD7sbjTPmgkY1btws19hCpokVEBpB/s320/MacInfo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;左圖是我的主機配備，是10.7才有的「關於這部Mac」訊息頁，這一代顯示的訊息比前一版的還完整。&lt;br /&gt;
&lt;br /&gt;
雖說Lion出來已經有好幾天了，但根據過去使用各種OS的經驗，剛出來的OS最好不要輕易嚐試，尤其上次從10.5升10.6時，發現原本4G的RAM可以開好幾個VM來玩Windows 3D Game，還可以同時用Safari到處亂逛，都還能很順暢，豈知一升級後，就不太夠用了，當然正常使用的情況下還是很夠用。&lt;br /&gt;
&lt;br /&gt;
前一陣子把Xcode升到4.0，雖然好用，但吃記憶體超兇，隨便開幾個Interface Builder就會把記憶體吃光光，原本在這種情況下，我是不敢去升級OS的，還好前一陣子突然從某個管道得知雖然這台MB官方說只能升到4G，但其實是可以升到8G，一試之下，果然可以，真是太爽了！有了8G RAM，我想再怎麼樣也夠我玩獅子了吧？&lt;br /&gt;
&lt;br /&gt;
雖然如此，我也還是不放心，直到前天看到新聞上說第一天下載量就有100萬次，看了一下評價，似乎還不錯，會跑不動的都是只有2G RAM或款式過舊的主機，看到有人用跟我差不多的4G MBP，說跑起來蠻順的，而且跑VM也蠻順的，就鼓起勇氣點（買）下去了。&lt;br /&gt;
&lt;br /&gt;
點下去之後，下載的速度還算蠻快的，大概1小時多就下完了，安裝也沒有花很多時間，大概半小時左右，原本我比較擔心的是升完級後，用TC備份會超久（之前升10.6時，備份了200G，大概花了兩天），這次倒是蠻快的，300G左右的硬碟使用量，只備份了8G的份量就完事。&lt;br /&gt;
&lt;br /&gt;
整體上來說，雖然有發現一些小Bug或美中不足的地方，但這一代確實又比上一代更好用了，而硬體需求當然也更高了，基本上2G記憶體應該是不夠用的，另一方面由於動畫效果又更華麗了，所以3D資源也吃得比較兇，所以如果要用VM玩Windows 3D Game，就會比較吃力，因此如果是超過3年以上的Mac中低階款式要升10.7，最好還是直接買新主機吧。&lt;br /&gt;
&lt;br /&gt;
如果是Mac OS的老用戶，起初可能會比較不習慣，主要最大的差別在於捲視畫面時的捲動方向，跟之前是上下左右完全相反，起初我也是不太習慣。&lt;br /&gt;
&lt;br /&gt;
如果想切換回舊的方式，可從&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;系統偏好設定-&amp;gt;滑鼠&lt;/span&gt;（下圖左），或&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;系統偏好設定-&amp;gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;觸控軌跡板&lt;/span&gt;（下圖右）的「&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;捲視方向：自然&lt;/span&gt;」選項改回去。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJprrRxEZ5FkfhSBbpcYhL8f4p-eaKxDJ7E1XUlGeHhwDqfGi1Y7hwYLBzydl-m3Gfl9sskgrbG_9wZROEedXDoUh8q4_OeFugIRA7jY3rXdEh1nbGqdV9n6I9mvxR4-i0AF5WxC9rf16W/s1600/trackpad7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;157&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJprrRxEZ5FkfhSBbpcYhL8f4p-eaKxDJ7E1XUlGeHhwDqfGi1Y7hwYLBzydl-m3Gfl9sskgrbG_9wZROEedXDoUh8q4_OeFugIRA7jY3rXdEh1nbGqdV9n6I9mvxR4-i0AF5WxC9rf16W/s200/trackpad7.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS6a0TBldQoZ6-irfbO1gk1k4nG3mBHYHDktpvm7NZHJ8jJ3_Wz8CWpfv4UMAHZChnFQYJyiPRk8ecqaleI-8EsicjcLP-UvCYJiUBk3_BfLWrmoM2N7wIL-wHNMX1DODfsTTrvKtha-Wn/s1600/mouse7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS6a0TBldQoZ6-irfbO1gk1k4nG3mBHYHDktpvm7NZHJ8jJ3_Wz8CWpfv4UMAHZChnFQYJyiPRk8ecqaleI-8EsicjcLP-UvCYJiUBk3_BfLWrmoM2N7wIL-wHNMX1DODfsTTrvKtha-Wn/s200/mouse7.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
但其實以這一代的概念來說，他是以&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;觸控螢幕&lt;/span&gt;的角度去切入，所以思維上和之前傳統設備都不同了。&lt;br /&gt;
簡單的來說，從前的捲視，捲動的是視窗右側或下方的捲軸控件，而現在的思維則是以手指去撥動整個頁面或視圖。&lt;br /&gt;
只要運用自已的想像力，把自己捲動的對象調整一下，就當做自已是在用iOS的設備，手指就像是在螢幕上面滑動，自然就能得心應手。&lt;br /&gt;
&lt;br /&gt;
因此，從上述改變來看，Apple的目的是想把OSX改得像iOS，讓只用過iOS而不熟悉電腦的客戶群更容易上手，從而將iOS市場的用戶拉到Mac市場。&lt;br /&gt;
另一個方面，滑鼠和軌跡板畢竟不是觸控螢幕，因此這種操控方式仍然不夠直覺，個人推測，這種介面很可能只是一種過渡期的產物，OSX的觸控螢幕電腦應該會在不久後問世，而他有可能不只是一台平板電腦。&lt;br /&gt;
甚至在下一代，或後幾代，Apple會在某個時間點把iOS和OSX整合在一起，想來也是順理成章的事，當然這都是我個人的推測。</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/2441312119222863667/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2011/07/mac-osx-107-lion.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/2441312119222863667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/2441312119222863667'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2011/07/mac-osx-107-lion.html' title='Mac OSX 10.7 Lion 使用心得（一）'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Fravz7Vzmvq_wGfAOK7oDMW4nwSTEPTNfEVEjdk95sZ3m4bn8Hs4v2oCXUSBL98sVBFxiUq5mUa6NKIDRcY1QnranmqgBDZM523DlHzfv2lN-6GZD7sbjTPmgkY1btws19hCpokVEBpB/s72-c/MacInfo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-269677114887139175.post-9055271612685938794</id><published>2011-07-22T02:39:00.000-07:00</published><updated>2011-10-04T01:19:14.248-07:00</updated><title type='text'>淘寶網API學習心得（一）</title><content type='html'>由於最近工作上需要，研究了一下淘寶網的API，在此將我是如何上手的心得分享上來，希望能夠幫助有心想使用這個API的人上手。&lt;br /&gt;
&lt;br /&gt;
以下網址為淘寶開發文件的首頁，內容還蠻豐富的，豐富到對於沒經驗的人可能會不知該從何下手。&lt;br /&gt;
&lt;a href=&quot;http://open.taobao.com/dev/index.php&quot;&gt;http://open.taobao.com/dev/index.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
以下網址為API目錄，基本上已針對客戶的各種需求做了很好的分類。&lt;br /&gt;
&lt;a href=&quot;http://my.open.taobao.com/apidoc/main.htm&quot;&gt;http://my.open.taobao.com/apidoc/main.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
實際上，要上手並不難，不需要先去讀他繁雜的文件，只要先用一次他們所提供的測試工具，基本上只要對HTTP協定有一點概念，在這方面有一點點開發經驗的人，只要看到這個工具，隨便試用一下，就已經算是上手了，測試工具網址如下：&lt;br /&gt;
&lt;a href=&quot;http://my.open.taobao.com/apitools/apiTools.htm&quot;&gt;http://my.open.taobao.com/apitools/apiTools.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
測試時如果不知道各參數該如何下時，別忘了回到API目錄，針對您所要測試的API文件，查詢相關參數的說明。&lt;br /&gt;
&lt;a href=&quot;http://my.open.taobao.com/apidoc/main.htm&quot;&gt;http://my.open.taobao.com/apidoc/main.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
如果還是不清楚他的原理，可以參考官方提供的快速上手指南。&lt;br /&gt;
&lt;a href=&quot;http://open.taobao.com/dev/index.php/%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B%E6%8C%87%E5%8D%97&quot;&gt;http://open.taobao.com/dev/index.php/快速上手指南&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
關於進一步的測試心得，可參考「&lt;a href=&quot;http://yutongchen.blogspot.com/2011/10/api.html&quot;&gt;淘寶網API學習心得（二）&lt;/a&gt;」。</content><link rel='replies' type='application/atom+xml' href='http://yutongchen.blogspot.com/feeds/9055271612685938794/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yutongchen.blogspot.com/2011/07/api.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/9055271612685938794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/269677114887139175/posts/default/9055271612685938794'/><link rel='alternate' type='text/html' href='http://yutongchen.blogspot.com/2011/07/api.html' title='淘寶網API學習心得（一）'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>