<?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-7538894016523007360</id><updated>2024-09-27T14:45:45.808-07:00</updated><category term="APP-開發-基礎"/><category term="APP-開發-進階"/><category term="APP-收入來源-廣告"/><category term="APP-開發-Corona"/><category term="APP- 介紹"/><category term="APP- 開站"/><category term="APP-收入來源-InApp"/><category term="APP-開發-API"/><category term="APP-開發-雜誌"/><category term="APP-題外話"/><title type='text'>來自小島</title><subtitle type='html'>APP開發，程式，設計</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-3394821934671407284</id><published>2013-11-20T16:20:00.000-08:00</published><updated>2013-11-26T07:31:59.591-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-Corona"/><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-基礎"/><title type='text'>Graphics 1.0 to 2.0 要知道的事- corona</title><content type='html'>從Public Release 2013.2076 之後&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/AVvXsEiUNA9fdhAH3suVJha6aaJpOksF7vqXa_HfwKf5lB1Pde90WYiHyBcq31DRk_4lmlW5WOGDuubFzG58nv0EIFDotgpJgN33vFO964HzgjMygn9fIqqGtP7izQj8KDGKKnyHSnXVpqC9-2kB/s1600/myImage+(1).png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUNA9fdhAH3suVJha6aaJpOksF7vqXa_HfwKf5lB1Pde90WYiHyBcq31DRk_4lmlW5WOGDuubFzG58nv0EIFDotgpJgN33vFO964HzgjMygn9fIqqGtP7izQj8KDGKKnyHSnXVpqC9-2kB/s200/myImage+(1).png&quot; width=&quot;198&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
可以說是自上次widget 1.0 升級成 2.0之後 又一個重大改變&lt;br /&gt;
&lt;br /&gt;
對開發者來說 最大困擾是－原本的CODE怎麼BUILD不過了！？&lt;br /&gt;
&lt;br /&gt;
原因是在2076版使用了Graphics 2.0，在原本的CODE上增加了些彈性和強化&lt;br /&gt;
&lt;br /&gt;
有三個需要知道如何修正程式碼地方要了解&lt;br /&gt;
&lt;br /&gt;
在修改之前，Corona &amp;nbsp;也提供了一個方法讓既有開發者能&quot;無痛&quot;的移殖至Graphics 2.0&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
在config.lua 設定檔中加上 graphicsCompatibility = 1&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/fengyuanyang/7566349.js&quot;&gt;&lt;/script&gt;

使其相容於graphics 1.0－運氣好的話就能BUILD過了....官方是如此說著&lt;br /&gt;
&lt;br /&gt;
所以－為了能夠獲得更好的相容性及更多的彈性&lt;br /&gt;
&lt;br /&gt;
我們來了解需要修改的部份有哪些&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;display.setReferencePoint =&amp;gt; Anchor Point&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;color values 0~255 =&amp;gt; 0~1&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;text color : setTextColor =&amp;gt; setFillColor&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;display.setReferencePoint =&amp;gt; Anchor Point&lt;/span&gt;&lt;/h4&gt;
&lt;br /&gt;
在程式撰寫時，為了不讓元件走位，通常都會設置ReferencePoint，讓其固定以某一個方位為座標對照點&lt;br /&gt;
&lt;br /&gt;
現在我們必須使用錨點來指定座標對照點，優點是再也不受邊角的限制，不一定要將對照點設在正中央或四個角&lt;br /&gt;
&lt;br /&gt;
舊用法&lt;br /&gt;
&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;object:setReferencePoint(display.CenterReferencePoint)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
新用法&lt;br /&gt;
&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;object.anchorX,object.anchorY = 0.5,0.5&lt;/span&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/AVvXsEgd_iJXXtgTJPevuQiyIOWpZ1Io45rcjdQ9KkBBYG6HIQkMpJc5PabAm0ZBsKuRY9GQ_uy7dk2D1KcUdPsvifBhIV3YVUOB370-qBI_OI1t9bRoq6MW-JkMcWI5530AH0SMOrVeAQ3TkRkq/s1600/myImage.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;288&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd_iJXXtgTJPevuQiyIOWpZ1Io45rcjdQ9KkBBYG6HIQkMpJc5PabAm0ZBsKuRY9GQ_uy7dk2D1KcUdPsvifBhIV3YVUOB370-qBI_OI1t9bRoq6MW-JkMcWI5530AH0SMOrVeAQ3TkRkq/s640/myImage.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
由對照圖表可以看出原來的&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;referencePoint VS anchor Point&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.TopLeftReferencePoint &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; 0,0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.TopCenterReferencePoint &amp;nbsp; &amp;nbsp; =&amp;gt; 0.5,0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.TopRightReferencePoint &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; 1,0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.CenterLeftReferencePoint &amp;nbsp; &amp;nbsp; =&amp;gt; 0,0.5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.CenterReferencePoint &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; 0.5,0.5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.CenterRightReferencePoint &amp;nbsp; =&amp;gt; 1,0.5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.BottomLeftReferencePoint &amp;nbsp; =&amp;gt; 0,1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.BottomCenterReferencePoint=&amp;gt; 0.5,1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;display.BottomRightReferencePoint &amp;nbsp;=&amp;gt; 1,1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
而且 不只如此，此錨點能作用在像rotation旋轉的動作上，舉例來說要做一個時鐘，現在只要將時針，分針的圖放上螢幕，然後將anchor Point(錨點)設在其轉軸點(如0.2,0.5)，接著按每秒轉動的角度做旋轉，就能夠使用更簡潔的程式碼完成。&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;color values 0~255 =&amp;gt; 0~1&lt;/span&gt;&lt;/h4&gt;
顏色設定的使用方法從0~255的值變成0~1&lt;br /&gt;
&lt;br /&gt;
實際用法依然是使用0~255 只是現在要除上一個255的基底&lt;br /&gt;
&lt;br /&gt;
舊用法&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;obj:setFillColor(255,200,200,255)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
新用法&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;obj:setFillColor(255/255,200/255,200/255,255/255)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;h4&gt;
&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;textColor : setTextColor =&amp;gt; setFillColor&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
同時將設定字體顏色的用法調整和設定Color的方法一致&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
並且套用最新設置顏色的值 0~1&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
舊用法&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;textObj:setTextColor(255,200,200,255)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
新用法&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;textObj:setFillColor(255/255,200/255,200/255,255/255)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
雖然這次更動幾乎讓小島的程式都要回去再看過，但看在加強了不少東西的份上，就勉勉強強欣然接受了！&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/3394821934671407284/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2013/11/graphics-10-to-20-corona.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/3394821934671407284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/3394821934671407284'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2013/11/graphics-10-to-20-corona.html' title='Graphics 1.0 to 2.0 要知道的事- corona'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEiUNA9fdhAH3suVJha6aaJpOksF7vqXa_HfwKf5lB1Pde90WYiHyBcq31DRk_4lmlW5WOGDuubFzG58nv0EIFDotgpJgN33vFO964HzgjMygn9fIqqGtP7izQj8KDGKKnyHSnXVpqC9-2kB/s72-c/myImage+(1).png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-5383022151820655986</id><published>2013-09-04T21:40:00.002-07:00</published><updated>2013-09-04T21:40:36.915-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-進階"/><title type='text'>遠端更新福音！ZIP Support in Corona</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWAjoz0I0p7HzGoxq16-myvVWQWHpeRIECnTK3r0TD4deF7snUyzpRkLimbYpKL2gDVC7fkqYRzPedhEtdxBu6wO96NV4TxtD-ik3Go6ocw7w2d3BVJ24xWq24SJ3cLhUB2iVdBdp2V35N/s1600/test1.jpg&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;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWAjoz0I0p7HzGoxq16-myvVWQWHpeRIECnTK3r0TD4deF7snUyzpRkLimbYpKL2gDVC7fkqYRzPedhEtdxBu6wO96NV4TxtD-ik3Go6ocw7w2d3BVJ24xWq24SJ3cLhUB2iVdBdp2V35N/s200/test1.jpg&quot; width=&quot;150&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;解壓後小心水母和鱷魚！&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
有段時間在思考一件事情&lt;br /&gt;
&lt;br /&gt;
是不是&lt;span style=&quot;color: red;&quot;&gt;每次更新都要很麻煩的上架一次新版本&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
七天以上的APPLE 審核速度 OMG&lt;br /&gt;
&lt;br /&gt;
如果我有不少圖片，文字需要讓使用者更新&lt;br /&gt;
&lt;br /&gt;
那不是很麻煩嗎，放在網路空間就好幾十個檔&lt;br /&gt;
&lt;br /&gt;
其實有一個更方便的方法，自從Corona 支援Plugin 後不久&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;ZIP 的Plugin 就出現了！！&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;沒錯，壓縮，解壓縮的好幫手，相信你已經想到很多應用的方法了吧！？&lt;br /&gt;
&lt;br /&gt;
讓我們趕快來看看怎麼使用吧。&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/fengyuanyang/6445973.js&quot;&gt;&lt;/script&gt;

在&lt;span style=&quot;color: red;&quot;&gt;build.settings&lt;/span&gt;加上這段後，第一次編譯會從Corona Server端取得此Plugin元件&lt;br /&gt;
&lt;br /&gt;
之後就可以很順𣈱的使用ZIP&lt;br /&gt;
&lt;br /&gt;
接下來小島來介紹一下怎麼從網路端下載ZIP並放在屬意的資料夾內供之後使用&lt;br /&gt;
&lt;br /&gt;
重點如下&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;使用network.download 從網路上下載檔案&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;利用networkListener,判斷下載完成後將該檔案利用zip解壓縮&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;接著接壓縮完成後呼叫zipListener，在這裡就可以告訴使用者，更新完成謝謝等候囉！&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/fengyuanyang/6446147.js&quot;&gt;&lt;/script&gt;

小島在ZIP中放了兩個檔案，跑完此段程式碼應該可以在DocumentsDirectory看到兩張圖片，恭禧您！這樣就完成囉！將其應用在APP的更新上吧！配合JSON來判斷將更無往不利喔！&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/AVvXsEjUUmF0Z9FwWjaaR_wWQELfvJ6mcI-9rrJxtxTrOv0HDQzViJlwmVovd1IL4LTEkQOVVOd3YyxbK5BWZUYsHeRmB77jvXsenpqELyGkjtY5BVNduTj2pRDNbngJeFr9g5TI4R3XYpHqIQvI/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-09-05+%E4%B8%8B%E5%8D%8812.36.21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;176&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUUmF0Z9FwWjaaR_wWQELfvJ6mcI-9rrJxtxTrOv0HDQzViJlwmVovd1IL4LTEkQOVVOd3YyxbK5BWZUYsHeRmB77jvXsenpqELyGkjtY5BVNduTj2pRDNbngJeFr9g5TI4R3XYpHqIQvI/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-09-05+%E4%B8%8B%E5%8D%8812.36.21.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/5383022151820655986/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2013/09/zip-support-in-corona.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/5383022151820655986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/5383022151820655986'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2013/09/zip-support-in-corona.html' title='遠端更新福音！ZIP Support in Corona'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEgWAjoz0I0p7HzGoxq16-myvVWQWHpeRIECnTK3r0TD4deF7snUyzpRkLimbYpKL2gDVC7fkqYRzPedhEtdxBu6wO96NV4TxtD-ik3Go6ocw7w2d3BVJ24xWq24SJ3cLhUB2iVdBdp2V35N/s72-c/test1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-482767531263895716</id><published>2013-05-10T01:11:00.001-07:00</published><updated>2013-05-10T01:11:26.218-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-收入來源-廣告"/><title type='text'>大躍進！Admob Plugin for corona</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz1ysSNr0wYRGFUtoaHqrg8T_Jtt06shyphenhyphenFqMivi8Z7YreyiDDXXTBC2ruKTy_43L12ZMus_82on9V3VeiDs_fdeKfqGcX1IKUQUEraXUFIIQrFT_1nNrmAqHNf7F82JM4X7OlOITcznKL3/s1600/%E7%9B%B8%E7%89%87+13-5-9+%E4%B8%8B%E5%8D%8811+07+49.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz1ysSNr0wYRGFUtoaHqrg8T_Jtt06shyphenhyphenFqMivi8Z7YreyiDDXXTBC2ruKTy_43L12ZMus_82on9V3VeiDs_fdeKfqGcX1IKUQUEraXUFIIQrFT_1nNrmAqHNf7F82JM4X7OlOITcznKL3/s320/%E7%9B%B8%E7%89%87+13-5-9+%E4%B8%8B%E5%8D%8811+07+49.png&quot; width=&quot;179&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;IOS admob plugin screen&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
真的很令人興奮&lt;br /&gt;
&lt;br /&gt;
最近手機平台發生了很多事&lt;br /&gt;
&lt;br /&gt;
IOS &lt;span style=&quot;color: red;&quot;&gt;2013/05/01&lt;/span&gt;起不再支持UDID的APP上架&lt;br /&gt;
&lt;br /&gt;
Corona Widget 出了2.0版&lt;br /&gt;
&lt;br /&gt;
小島身為深深的受害者之一&lt;br /&gt;
&lt;br /&gt;
光改了widget 1.0 -&amp;gt; 2.0就花了快一週&lt;br /&gt;
&lt;br /&gt;
重點是。。還是很多Bug&lt;br /&gt;
&lt;br /&gt;
最後 放棄，直接使用回widget 1.0的 opensource&lt;br /&gt;
&lt;br /&gt;
扯遠了&lt;br /&gt;
&lt;br /&gt;
這次是要講大躍進！&lt;br /&gt;
&lt;br /&gt;
Corona 終於直接支援&lt;span style=&quot;color: red;&quot;&gt;admob&lt;/span&gt; 的&lt;span style=&quot;color: red;&quot;&gt;Plugin&lt;/span&gt;了！！(需使用最新的daily sdk)&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;不像之前的admediator ，使用的是web 連結來呈現admob ad&lt;br /&gt;
&lt;br /&gt;
而且很多廣告無法點擊...殘念&lt;br /&gt;
&lt;br /&gt;
所謂的plugin 就是編譯後會根據平台使用native SDK來呈現&lt;br /&gt;
&lt;br /&gt;
所以 再也不用擔心違法被封帳的問題！&lt;br /&gt;
&lt;br /&gt;
從二三年前，就有人在要求admob 官方支援了，但遲遲沒有消息......還遲了很久&lt;br /&gt;
&lt;br /&gt;
這次，終於不再黃牛了！！&lt;br /&gt;
&lt;br /&gt;
首先需要告訴Corona 要使用plugin&lt;br /&gt;
&lt;br /&gt;
首次使用將會自動從Server 端下載 admob 的 plugin&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/fengyuanyang/5553015.js&quot;&gt;&lt;/script&gt;

在build.setting 裡加上上面這段就行了&lt;br /&gt;
&lt;br /&gt;
接著在程式裡加上這段&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/fengyuanyang/5553045.js&quot;&gt;&lt;/script&gt;

至於x,y就是你想要廣告在哪裡秀出的位置了&lt;br /&gt;
&lt;br /&gt;
請各位客倌自行調校吧&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV0wefTBzzD-4kWFeW_evWMuHn2r1J_YpAvqXUTlMZhGkeDEJEfSF8S5kVAe169EYF-xR3py8mqbUcE0EHvCso_mI8G8UitSgKT-gIqFddkz-d3dVscKWO1ued0kwubX0u9bov05Kd1Sak/s1600/%E7%9B%B8%E7%89%87+13-5-10+%E4%B8%8A%E5%8D%881+32+00.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV0wefTBzzD-4kWFeW_evWMuHn2r1J_YpAvqXUTlMZhGkeDEJEfSF8S5kVAe169EYF-xR3py8mqbUcE0EHvCso_mI8G8UitSgKT-gIqFddkz-d3dVscKWO1ued0kwubX0u9bov05Kd1Sak/s320/%E7%9B%B8%E7%89%87+13-5-10+%E4%B8%8A%E5%8D%881+32+00.jpg&quot; width=&quot;240&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;android admob plugin screen&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTL4PtQVKAxNY1fb3f5hw0T3lcDnMyrfbqlNovwAwYqdvn3WpewW3MB7ZIj-Rn3JEQr9S4ZIO0bQdqtT2gBCI1PbBiwG9JLHN0UHG7krjcJdZxwiH_SyiCuAf4unJMOpUtrqGiG8LdtwUb/s1600/%E7%9B%B8%E7%89%87+13-5-10+%E4%B8%8A%E5%8D%881+32+14.jpg&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;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTL4PtQVKAxNY1fb3f5hw0T3lcDnMyrfbqlNovwAwYqdvn3WpewW3MB7ZIj-Rn3JEQr9S4ZIO0bQdqtT2gBCI1PbBiwG9JLHN0UHG7krjcJdZxwiH_SyiCuAf4unJMOpUtrqGiG8LdtwUb/s320/%E7%9B%B8%E7%89%87+13-5-10+%E4%B8%8A%E5%8D%881+32+14.jpg&quot; width=&quot;240&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;android admob click screen&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiZvvTYLo0hRC0b6BdU8OMWax1_u175AiL6xUjWP-q92UYPy15f-QgLTAQCSpcu2avWwoW1jK1JEAnftL6vheV1yksexjk4yeQeEiX_WKqd04GDh4P4YHRokNZ-v7KMCvUvitmIUmPw_kb/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-05-10+%E4%B8%8B%E5%8D%883.07.05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;99&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiZvvTYLo0hRC0b6BdU8OMWax1_u175AiL6xUjWP-q92UYPy15f-QgLTAQCSpcu2avWwoW1jK1JEAnftL6vheV1yksexjk4yeQeEiX_WKqd04GDh4P4YHRokNZ-v7KMCvUvitmIUmPw_kb/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-05-10+%E4%B8%8B%E5%8D%883.07.05.png&quot; width=&quot;640&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;小島親自測試的，有錢進來囉&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/482767531263895716/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2013/05/admob-plugin-for-corona.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/482767531263895716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/482767531263895716'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2013/05/admob-plugin-for-corona.html' title='大躍進！Admob Plugin for corona'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEgz1ysSNr0wYRGFUtoaHqrg8T_Jtt06shyphenhyphenFqMivi8Z7YreyiDDXXTBC2ruKTy_43L12ZMus_82on9V3VeiDs_fdeKfqGcX1IKUQUEraXUFIIQrFT_1nNrmAqHNf7F82JM4X7OlOITcznKL3/s72-c/%E7%9B%B8%E7%89%87+13-5-9+%E4%B8%8B%E5%8D%8811+07+49.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-8236020014361852813</id><published>2013-02-28T20:23:00.000-08:00</published><updated>2013-02-28T20:28:41.274-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-收入來源-InApp"/><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-進階"/><title type='text'>in-App Purchase with Corona(iOS)</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMUPFuEAhQhYkdeh1GaBijiwY9fM3v44eITGZ8Bf1wJ4cUikaaYItszVxLZD4EJpgfbgAMODsJo5jSG188RCSag10ObPF-Wr9eJeNNKuJ-fhofiXU5wIrPf76wQ-vxlQ8GACrQK97YeykC/s1600/Photo+13-3-1+%25E4%25B8%258A%25E5%258D%25882+30+41.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMUPFuEAhQhYkdeh1GaBijiwY9fM3v44eITGZ8Bf1wJ4cUikaaYItszVxLZD4EJpgfbgAMODsJo5jSG188RCSag10ObPF-Wr9eJeNNKuJ-fhofiXU5wIrPf76wQ-vxlQ8GACrQK97YeykC/s320/Photo+13-3-1+%25E4%25B8%258A%25E5%258D%25882+30+41.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;不論是&lt;span style=&quot;color: red;&quot;&gt;遊戲&lt;/span&gt;或是&lt;span style=&quot;color: red;&quot;&gt;工具類&lt;/span&gt;的APP&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
在APP STORE 都有著一個趨勢&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&quot;使用者不喜歡付費下載&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
是的！大家看到要付錢的APP，經常先略過，看看有沒有免費的&lt;/div&gt;
&lt;div&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;
這也是為什麼遊戲幾乎都是免費下載，然後收取內部的道具費用&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;雜誌平台也是收取每本雜誌的購買費(APP都是Free)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
今天粗淺介紹in-App在iOS如何使用&lt;br /&gt;
&lt;br /&gt;
有些前置作業要先完成(&lt;span style=&quot;color: red;&quot;&gt;這裡將探討紅色內容&lt;/span&gt;)&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;購買開發者帳號&lt;/li&gt;
&lt;li&gt;填好銀行資訊(匯款用)，稅號(台灣不用填)&lt;/li&gt;
&lt;li&gt;在iOS provisioning Protal 中App ID 選項裡建立APP ID&lt;/li&gt;
&lt;li&gt;建立該APP ID 對應的provisioning profile&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;在iTunes Store 使用該bundle ID 建立一個APP&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;依類型增加可購買道具&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;建立測試帳號&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
Setp5:&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZzpMTfx86QMlJr3ZzSiuidVYZ2joBo8QWBHxNiSYTruLRZj4-ITVm0R1t8JhWeXEXVHCtqMuBTNPVj-ksbzLmT741xXi0cJkJF071bYe3zQXqlxtPt8GdcHQxx1FbcZJTt54o4BQxv11K/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2013-02-24+%25E4%25B8%258B%25E5%258D%25882.43.05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZzpMTfx86QMlJr3ZzSiuidVYZ2joBo8QWBHxNiSYTruLRZj4-ITVm0R1t8JhWeXEXVHCtqMuBTNPVj-ksbzLmT741xXi0cJkJF071bYe3zQXqlxtPt8GdcHQxx1FbcZJTt54o4BQxv11K/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2013-02-24+%25E4%25B8%258B%25E5%258D%25882.43.05.png&quot; width=&quot;400&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;選取Manage your Application&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI5djKZKVaQHCn-fnnUwtsvbaNE4xBssasm8AkroQipNWqWE4E4CV207aEbGLfx3MYdqQqt-9bC8Mai9dxrYPyOmlpxn-WNUTDHxpkQroz8cfB4s5zxBuSBO884V4OWvY0szrunlqKbPlX/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2013-02-24+%25E4%25B8%258B%25E5%258D%25883.04.26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI5djKZKVaQHCn-fnnUwtsvbaNE4xBssasm8AkroQipNWqWE4E4CV207aEbGLfx3MYdqQqt-9bC8Mai9dxrYPyOmlpxn-WNUTDHxpkQroz8cfB4s5zxBuSBO884V4OWvY0szrunlqKbPlX/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2013-02-24+%25E4%25B8%258B%25E5%258D%25883.04.26.png&quot; width=&quot;400&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 APP&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Step6:增加道具&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUO8Le9yRWI5bb-ta5sxCnLbZJtBMHJvRXfR_xsA1617IDU1inlRQuHRW-kq3Bosq5tgn0gU3y2jMC7g1lkCv4oFRQ3ajZynq9JASTHDBaP2MQLxnL2rV7L9ZSaSOCEnmjqyIVcmK1dl3Z/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-25+%E4%B8%8A%E5%8D%8812.32.57.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUO8Le9yRWI5bb-ta5sxCnLbZJtBMHJvRXfR_xsA1617IDU1inlRQuHRW-kq3Bosq5tgn0gU3y2jMC7g1lkCv4oFRQ3ajZynq9JASTHDBaP2MQLxnL2rV7L9ZSaSOCEnmjqyIVcmK1dl3Z/s400/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-25+%E4%B8%8A%E5%8D%8812.32.57.png&quot; width=&quot;400&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;進入APP內容點選Manage In-APP Purchases&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
必須先建好欲販賣的道具，在程式裡才能夠從apple 方讀取相關資料&lt;br /&gt;
&lt;br /&gt;
道具分為以下幾種&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Consumable:一次性道具，如遊戲金幣&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;NonConsumable:永久性道具，如永久經驗加倍&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Auto-Renewable Subscriptions:自動更新，如雜誌訂閱&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Free Subcription:ONLY書報攤使用，如免費刊物&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Non-Renewing Subscription:限定時間道具&lt;/span&gt;&lt;/li&gt;
&lt;/ul&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl7ioKYcB__Qe2Q-683_t1dBfbaNP00b1AnlUpOoEhtmiC74rpO3iBgipOeqcqsymKFNFQpc2cC1TYfsoimzvZprVmfj1nuDsMfV-eWsPybAtXmFGhLUqlvlAXHWHHZe18v2R_2SMLL_Qp/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-20+%E4%B8%8A%E5%8D%889.55.34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl7ioKYcB__Qe2Q-683_t1dBfbaNP00b1AnlUpOoEhtmiC74rpO3iBgipOeqcqsymKFNFQpc2cC1TYfsoimzvZprVmfj1nuDsMfV-eWsPybAtXmFGhLUqlvlAXHWHHZe18v2R_2SMLL_Qp/s400/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-20+%E4%B8%8A%E5%8D%889.55.34.png&quot; width=&quot;400&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;選擇販賣道具種類&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
在這我們示範一個&lt;span style=&quot;color: red;&quot;&gt;Consumable&lt;/span&gt;道具，販賣5金幣&lt;br /&gt;
&lt;br /&gt;
底下是新增道具要填的欄位&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Reference Name&lt;/span&gt;:開發者參考用&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Product ID&lt;/span&gt;:程式內呼叫使用，建議使用APP id 後再增加如&lt;span style=&quot;color: red;&quot;&gt;com.abc.coin5&lt;/span&gt;(這裡用coin5)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Cleared For Sale&lt;/span&gt;: yes - 可購買, no - 不可購買&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Price Tier&lt;/span&gt;: 欲販售價格(這裡選Tier 1 - 30台幣,1美元)，會根據國家不同秀出不同幣值金十口&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/AVvXsEhGEkMmmdzd9ZLXBG_RoT22XGLuFiJVYBssLZnJsUmr9rh70nPOuYKSWqIbPtkE9kTmLC-B6jb2Gj1Lvk9k5T1EvGkxjXAWJQzVbcCtJYOQSVN-9-t_Zzlkj7Q1Eku40OojCif2plhP2mVp/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2013-02-25+%25E4%25B8%258B%25E5%258D%25882.23.08.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGEkMmmdzd9ZLXBG_RoT22XGLuFiJVYBssLZnJsUmr9rh70nPOuYKSWqIbPtkE9kTmLC-B6jb2Gj1Lvk9k5T1EvGkxjXAWJQzVbcCtJYOQSVN-9-t_Zzlkj7Q1Eku40OojCif2plhP2mVp/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2013-02-25+%25E4%25B8%258B%25E5%258D%25882.23.08.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
再來增加語言(根據OS不同語言將會秀出不同文字)&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/AVvXsEh5A-RH7YgYwmAba2ysMgroxjQsl444lXB6f_MKNPT8ehH-G6qfeGx7r97X-YljIbT9BFQoe3Kjhulr2DovEbsy8UbaGeoLjo9eTzQ1nMEZj-G8-sxINYT9RS81bOBpqV6oemgL9Xk-Nxb1/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2013-02-20+%25E4%25B8%258A%25E5%258D%258810.21.01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5A-RH7YgYwmAba2ysMgroxjQsl444lXB6f_MKNPT8ehH-G6qfeGx7r97X-YljIbT9BFQoe3Kjhulr2DovEbsy8UbaGeoLjo9eTzQ1nMEZj-G8-sxINYT9RS81bOBpqV6oemgL9Xk-Nxb1/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2013-02-20+%25E4%25B8%258A%25E5%258D%258810.21.01.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Step7:新增測試帳號&lt;br /&gt;
&lt;br /&gt;
為了在測試時能夠模擬購買的動作&lt;br /&gt;
&lt;br /&gt;
所以需要增加一個測試帳號，此帳號不能為現有apple 帳號&lt;br /&gt;
&lt;br /&gt;
必須要是一個未使用的email&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ247MEalNukX2EsX28zEHV3xfmgZMyLAwKOSlje9d8NIlenFhRwpJxUlX0PXt56uQAhuAZHPBKI2vbmFAZUQw_vb9ZWPVBdkJSpxQynz2M1l4IvU0u5Gqhlwu4kfs4K8OeQpqGQFdzv8M/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-24+%E4%B8%8B%E5%8D%883.03.56+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ247MEalNukX2EsX28zEHV3xfmgZMyLAwKOSlje9d8NIlenFhRwpJxUlX0PXt56uQAhuAZHPBKI2vbmFAZUQw_vb9ZWPVBdkJSpxQynz2M1l4IvU0u5Gqhlwu4kfs4K8OeQpqGQFdzv8M/s400/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-24+%E4%B8%8B%E5%8D%883.03.56+2.png&quot; width=&quot;400&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;進入Manage Users 選項&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU409DaoHtt9PKB7JI89cxKA9eUwhg0XrncVoMkWWmUphLlr56kHITe58OTR2oAUz_Szn6vZz4sJKU404DFxllK9Od6kooZRX3PXSjMSYa8aoPkUDqcFtqtOe6xkLNYipsSj2U50qXSICv/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-27+%E4%B8%8B%E5%8D%8811.29.55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU409DaoHtt9PKB7JI89cxKA9eUwhg0XrncVoMkWWmUphLlr56kHITe58OTR2oAUz_Szn6vZz4sJKU404DFxllK9Od6kooZRX3PXSjMSYa8aoPkUDqcFtqtOe6xkLNYipsSj2U50qXSICv/s400/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-27+%E4%B8%8B%E5%8D%8811.29.55.png&quot; width=&quot;400&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;選擇Test User&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6v2r9eIkb-8ktYrgvehE0rizNL9czrV2kxQm6he4eCIUoX2UzIgAcZbLjf5MFNtEq-TZRodU84ONpW75bYyEbDvqSSvtToSyNTdHzy9EX42GTeaizcAAv1fwyJ8PQN1zkOO8DUtbtKyp5/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-27+%E4%B8%8B%E5%8D%8811.31.26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;222&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6v2r9eIkb-8ktYrgvehE0rizNL9czrV2kxQm6he4eCIUoX2UzIgAcZbLjf5MFNtEq-TZRodU84ONpW75bYyEbDvqSSvtToSyNTdHzy9EX42GTeaizcAAv1fwyJ8PQN1zkOO8DUtbtKyp5/s400/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-27+%E4%B8%8B%E5%8D%8811.31.26.png&quot; width=&quot;400&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;新增測試帳號&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
新增成功後，會在該申請E-mail收到一封Apple 寄來的認證信&lt;br /&gt;
&lt;br /&gt;
點擊進入後使用該mail 及 password 做登入完成登入&lt;br /&gt;
&lt;br /&gt;
做到這裡，前置動作就算完成，可以來做程式方面對應的CODING了&lt;br /&gt;
&lt;br /&gt;
程式會用到的兩張圖&lt;a href=&quot;https://www.dropbox.com/s/ohf853flqmjx1sw/buttonBuy.png&quot;&gt;buttonBuy.png&lt;/a&gt;,&lt;a href=&quot;https://www.dropbox.com/s/ibpivm7tj4ab6qa/buttonBuyDown.png&quot;&gt;buttonBuyDown.png&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/fengyuanyang/5058956.js&quot;&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;**此程式必須要Build For Device 才能執行&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;**在測試前要先進iTunes與App Store 將Apple ID 登出，&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;登出後不需要登入，待打開程式，點取購買時再登入&lt;/span&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMUPFuEAhQhYkdeh1GaBijiwY9fM3v44eITGZ8Bf1wJ4cUikaaYItszVxLZD4EJpgfbgAMODsJo5jSG188RCSag10ObPF-Wr9eJeNNKuJ-fhofiXU5wIrPf76wQ-vxlQ8GACrQK97YeykC/s1600/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+41.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMUPFuEAhQhYkdeh1GaBijiwY9fM3v44eITGZ8Bf1wJ4cUikaaYItszVxLZD4EJpgfbgAMODsJo5jSG188RCSag10ObPF-Wr9eJeNNKuJ-fhofiXU5wIrPf76wQ-vxlQ8GACrQK97YeykC/s400/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+41.png&quot; width=&quot;400&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;點選買5金幣，會告訴你是在Sandbox(測試環境)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrLY0RM-Yb7liTxoNanOGSZh3cLXxSeNT7id9kUeKkZssZ0UA0pnpIyOeQQqeP_xTsJfAzW6KqitQS99svnoN5Qo_ObEnIbLYpw-zB8718dInDcO6m3c5aIWHMDRnalx0aIpZVMBmQp3Lj/s1600/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrLY0RM-Yb7liTxoNanOGSZh3cLXxSeNT7id9kUeKkZssZ0UA0pnpIyOeQQqeP_xTsJfAzW6KqitQS99svnoN5Qo_ObEnIbLYpw-zB8718dInDcO6m3c5aIWHMDRnalx0aIpZVMBmQp3Lj/s400/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+19.png&quot; width=&quot;400&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;初次點選購買，要登入帳號，在這裡登入測之前的測試帳號&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8qvdWjtSKg3EktXmpChKbMmgEwr7GCErwkx7m3t_Cqr_And3j9Usb9Avn7ilgVoUjTprLdL6_29vDOxmEdUTnn12_taj5ksT7lwTFH8-qglU-AkhgNDUYs_m0bsWhA8_7Y7qgZu9_52XR/s1600/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+28.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8qvdWjtSKg3EktXmpChKbMmgEwr7GCErwkx7m3t_Cqr_And3j9Usb9Avn7ilgVoUjTprLdL6_29vDOxmEdUTnn12_taj5ksT7lwTFH8-qglU-AkhgNDUYs_m0bsWhA8_7Y7qgZu9_52XR/s400/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+28.png&quot; width=&quot;400&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;如果取消，將會進入transactionCallback的cancelled狀態&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimzBd4EmiQeag_Bu0FDLbdnPQucL69oAxOhILZB2QiTe4BcVyPZrSC38sI_xMYbkEBnZDS2ZG4VunqfbiW1U00Y5xSfFMvinNX3gPWK5Xstz0-Xryes8MICBnkGWL76Uz1-V67OXtwh5jD/s1600/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+52.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimzBd4EmiQeag_Bu0FDLbdnPQucL69oAxOhILZB2QiTe4BcVyPZrSC38sI_xMYbkEBnZDS2ZG4VunqfbiW1U00Y5xSfFMvinNX3gPWK5Xstz0-Xryes8MICBnkGWL76Uz1-V67OXtwh5jD/s400/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+52.png&quot; width=&quot;400&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;成功購買將會進入purchased狀態&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrU_CFzIx67iFtkDzFOCTYaWv5X1Ro-7HJds8CyfmRn3SjHStIBBRo_t3x4cUXFHLQ04UMx09xXE04UZIzHgRwEKp3mMiSSm_MEfw3Fb0C1kGVKtik9s3wMxq8mPMQAC6RYj89EP4bLgNV/s1600/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+50.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrU_CFzIx67iFtkDzFOCTYaWv5X1Ro-7HJds8CyfmRn3SjHStIBBRo_t3x4cUXFHLQ04UMx09xXE04UZIzHgRwEKp3mMiSSm_MEfw3Fb0C1kGVKtik9s3wMxq8mPMQAC6RYj89EP4bLgNV/s400/Photo+13-3-1+%E4%B8%8A%E5%8D%882+30+50.png&quot; width=&quot;400&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;在purchased狀態中，印出購買的productIdentifier-coin5&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
從判斷是否進入purchased 可得知是否成功付款，成功購買後，就可以在後面加上金幣增加動作囉&lt;br /&gt;
&lt;br /&gt;
希望大家in-app 賺大錢囉：D&lt;br /&gt;
&lt;br /&gt;
來自小島&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/8236020014361852813/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2013/02/in-app-purchase-with-coronaios.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/8236020014361852813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/8236020014361852813'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2013/02/in-app-purchase-with-coronaios.html' title='in-App Purchase with Corona(iOS)'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEiMUPFuEAhQhYkdeh1GaBijiwY9fM3v44eITGZ8Bf1wJ4cUikaaYItszVxLZD4EJpgfbgAMODsJo5jSG188RCSag10ObPF-Wr9eJeNNKuJ-fhofiXU5wIrPf76wQ-vxlQ8GACrQK97YeykC/s72-c/Photo+13-3-1+%25E4%25B8%258A%25E5%258D%25882+30+41.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-7448387596253770662</id><published>2013-02-18T23:58:00.001-08:00</published><updated>2013-02-18T23:58:30.716-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-基礎"/><title type='text'>使用iOS內建Twitter- Corona</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV8-7S4c5lS4SflUi41RDbPDEKBUNnd1hAYQSW6y3vY1vDdVNv0YoSAeo2eWvgJhlLOL4x2ziK7QO5gg4T49PzkBW3mpDPCg79F6XeUM5LTcvfYBv6PLFhDftnh65nYTdVKdzCV-hOvPaT/s1600/Photo+13-2-19+%E4%B8%8B%E5%8D%883+19+58.png&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;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV8-7S4c5lS4SflUi41RDbPDEKBUNnd1hAYQSW6y3vY1vDdVNv0YoSAeo2eWvgJhlLOL4x2ziK7QO5gg4T49PzkBW3mpDPCg79F6XeUM5LTcvfYBv6PLFhDftnh65nYTdVKdzCV-hOvPaT/s320/Photo+13-2-19+%E4%B8%8B%E5%8D%883+19+58.png&quot; width=&quot;179&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;不包含圖片&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
開發者會希望使用者能透過&lt;span style=&quot;color: red; font-size: large;&quot;&gt;APP&lt;/span&gt;來分享一些相關的訊息&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
如：告訴大家我正在使用某款APP，希望友人也能夠來使用看看&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Corona&lt;/b&gt;裡，能夠輕易的將訊息分享到&lt;b&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;Facebook,Twitter&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
只要在code上加入一行system.showPopup(&quot;twitter&quot;)，&lt;br /&gt;
&lt;br /&gt;
就能夠輕鬆的在twitter上分享&lt;br /&gt;
&lt;br /&gt;
(&lt;span style=&quot;color: red;&quot;&gt;註&lt;/span&gt;：&lt;b&gt;e-mail&lt;/b&gt;，&lt;b&gt;SMS&lt;/b&gt;，&lt;b&gt;safari&lt;/b&gt;開網頁也是利用&lt;b&gt;Popup&lt;/b&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;iOS 內建Twitter 能夠輕鬆上傳照片，分享文字&lt;br /&gt;
&lt;br /&gt;
也能夠將位置一起分享(小心隱私～)&lt;/div&gt;
&lt;div&gt;
(需build for Device才能使用！)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;script src=&quot;https://gist.github.com/fengyuanyang/4983780.js&quot;&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;twitter&lt;/span&gt; 會用到的參數如下&lt;br /&gt;
(初次使用Twitter，系統會帶入登入畫面)&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;message&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;-預設要顯示在Twitter 上的文字&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;listener&lt;/span&gt; (非必要)&lt;br /&gt;當完成或取消Twitter後會呼叫的function&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;url&lt;/span&gt;&lt;/b&gt; (非必要)&lt;br /&gt;需要上傳網址時需要利用設定url參數(給予table)&lt;br /&gt;方法為{&quot;http://tw.yahoo.com&quot;,&quot;http://www.apple.com&quot;}&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;image&lt;/span&gt;&lt;/b&gt;&amp;nbsp;(非必要)&lt;br /&gt;包含兩參數-baseDir,filename&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBMS_wKrp36sYWuK3FJBFki7gIsUcitsCkJeeb3At8nJy7qPtgCB6psf34d9mstmkf7EjCyPC0PtDXaZv82l1W3u2mMnfYZ7wR6TIyrg3fIdIxRRMtGuXxEnImXwFCMuPmgBM5c04hjiz3/s1600/Photo+13-2-19+%E4%B8%8B%E5%8D%883+25+32.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBMS_wKrp36sYWuK3FJBFki7gIsUcitsCkJeeb3At8nJy7qPtgCB6psf34d9mstmkf7EjCyPC0PtDXaZv82l1W3u2mMnfYZ7wR6TIyrg3fIdIxRRMtGuXxEnImXwFCMuPmgBM5c04hjiz3/s320/Photo+13-2-19+%E4%B8%8B%E5%8D%883+25+32.png&quot; width=&quot;180&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;同時上傳圖片&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCnINu4ct-xZ9EI6DebBpzxawtczwymjdREv8cNCTMMjqGeZT4wQFB2MJ_UQARaGyRulHWwRll6cWg8ZgYUm4n0N7AdZDmO1AhBsCa9xK0h38RzBmYjGJ5iI-XpYc0z4Qz_q03Ai3ynYiR/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-19+%E4%B8%8B%E5%8D%883.26.45.png&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;255&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCnINu4ct-xZ9EI6DebBpzxawtczwymjdREv8cNCTMMjqGeZT4wQFB2MJ_UQARaGyRulHWwRll6cWg8ZgYUm4n0N7AdZDmO1AhBsCa9xK0h38RzBmYjGJ5iI-XpYc0z4Qz_q03Ai3ynYiR/s400/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-02-19+%E4%B8%8B%E5%8D%883.26.45.png&quot; width=&quot;400&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;於Twitter上所示圖片&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/7448387596253770662/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2013/02/iostwitter-corona.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/7448387596253770662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/7448387596253770662'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2013/02/iostwitter-corona.html' title='使用iOS內建Twitter- Corona'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEhV8-7S4c5lS4SflUi41RDbPDEKBUNnd1hAYQSW6y3vY1vDdVNv0YoSAeo2eWvgJhlLOL4x2ziK7QO5gg4T49PzkBW3mpDPCg79F6XeUM5LTcvfYBv6PLFhDftnh65nYTdVKdzCV-hOvPaT/s72-c/Photo+13-2-19+%E4%B8%8B%E5%8D%883+19+58.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-1247475197566763983</id><published>2013-01-06T02:21:00.003-08:00</published><updated>2013-01-06T02:30:11.714-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-進階"/><title type='text'>Flurry-流量分析API-Corona</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEkDI_jufhG9JzaKGWnuRYm8mMw5WE6U1Xj-Hc5UzXMqlrJJyexJ9G_2E_MXeL_KCDD_jz54YfGbdKSw2MKqvLjCNaKLlM508Dn-IkcLaRZlfNmUKFMDM59JOLnhyphenhyphenEiqkhFmb8Uj1CymtD/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%885.50.56.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEkDI_jufhG9JzaKGWnuRYm8mMw5WE6U1Xj-Hc5UzXMqlrJJyexJ9G_2E_MXeL_KCDD_jz54YfGbdKSw2MKqvLjCNaKLlM508Dn-IkcLaRZlfNmUKFMDM59JOLnhyphenhyphenEiqkhFmb8Uj1CymtD/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%885.50.56.png&quot; /&gt;&lt;/a&gt;APP 上線後，常有幾個反覆的問題在心裡迴繞著。。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg28OtaD_sEp7JBc-9xT7SGZJcIMG7rhayOnhjlGjRjcal7v1Qqruk1eXU9l1m0PrrFg3Jikn6nnD_6uizqbZANg1jwd8S1Lg4yrrev7bHktq1GyVenhFaGFb58ReEmJzPmCWZGYj4837Y3/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.20.13.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg28OtaD_sEp7JBc-9xT7SGZJcIMG7rhayOnhjlGjRjcal7v1Qqruk1eXU9l1m0PrrFg3Jikn6nnD_6uizqbZANg1jwd8S1Lg4yrrev7bHktq1GyVenhFaGFb58ReEmJzPmCWZGYj4837Y3/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.20.13.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;color: red;&quot;&gt;每天有多少人用啊？總共有多少人？&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;每次玩會玩多久？&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;哪幾個功能最多人愛？&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
這堆分析數據，對開發者來說非常有用&lt;/div&gt;
&lt;div&gt;
這些問題，使用&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;a href=&quot;http://docs.coronalabs.com/api/library/analytics/index.html&quot;&gt;Flurry&lt;/a&gt;&lt;/span&gt;來分析 就能有效解決了！&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Corona裡將Flurry列為核心的API之一&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
使月方式真的很簡單。。。簡單到嚇人(&lt;span style=&quot;color: red;&quot;&gt;真的....&lt;/span&gt;)！&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/a33f534ba45ac4c80311.js&quot;&gt;&lt;/script&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/AVvXsEjgSkDIMUYBz8PhJrIxjAFlemTDBhhlU_XQ0NL5RmxL8L2mXDBjd2aXOSsbIlpmctI2GLwCQnpW_-AqxiIhLVFfUEin37VX6WVY2yU4SUSzH7rnnXH9nmvFBEsSsoEXMyAyzQxLZ1IhJqRr/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.02.57.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgSkDIMUYBz8PhJrIxjAFlemTDBhhlU_XQ0NL5RmxL8L2mXDBjd2aXOSsbIlpmctI2GLwCQnpW_-AqxiIhLVFfUEin37VX6WVY2yU4SUSzH7rnnXH9nmvFBEsSsoEXMyAyzQxLZ1IhJqRr/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.02.57.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
只要到&lt;a href=&quot;http://www.flurry.com/&quot;&gt;www.flurry.com&lt;/a&gt;&amp;nbsp;申請帳號以及App,取得Application Key 後，Build For Device 就能夠執行囉！&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/AVvXsEgx8QM_MX9MxgtvBQnusSv8Rv1KNuQ2QnkM30wHHYZyY71wesb5-AnYQ-k_SPOsiTgCWbwuqfqwE657NfWKhSb4rWioBpkcnhhwbUnJx564u5QR5g0yl2cRHARI3KAixp9SJ0d2AhvVPrdE/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%885.46.31.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx8QM_MX9MxgtvBQnusSv8Rv1KNuQ2QnkM30wHHYZyY71wesb5-AnYQ-k_SPOsiTgCWbwuqfqwE657NfWKhSb4rWioBpkcnhhwbUnJx564u5QR5g0yl2cRHARI3KAixp9SJ0d2AhvVPrdE/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%885.46.31.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
再配合widget 的button，用來統計使用者較常使用的功能&lt;br /&gt;
&lt;br /&gt;
或是storyboard，使用的時機可以自已定義&lt;br /&gt;
&lt;br /&gt;
來找出APP裡最吸引人的畫面和功能&lt;br /&gt;
&lt;br /&gt;
在Corona裡附的Sample裡，就有一個Flurry Sample囉！&lt;br /&gt;
&lt;br /&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlng66lDnWvMeqxlVvyN86aYIqCo8-P2kHbCsl9w-n_-o3NrTyDAv_YpY8KcVP80xMuFxGgjR4ZIhwd7NQrvGjSzlpCciumZ3BEI7y9XPS8yY7BmxPLv4BKHjjsF0KCq805VXYfgfmvQtF/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%885.56.34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlng66lDnWvMeqxlVvyN86aYIqCo8-P2kHbCsl9w-n_-o3NrTyDAv_YpY8KcVP80xMuFxGgjR4ZIhwd7NQrvGjSzlpCciumZ3BEI7y9XPS8yY7BmxPLv4BKHjjsF0KCq805VXYfgfmvQtF/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%885.56.34.png&quot; width=&quot;181&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;Corona Sample-flurrySample 畫面&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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/AVvXsEhJELObrSG_wnsBtqtPY_pWQUjkXYWk_NNKV6Fvzi6URdlg0OSwcrZLbe96AbhutEP7OWhYUNIJp7ipcLHaIjy2QWBflZKKLc5mgimvH8lc0JhzHnUtA7kyz1uj__anCLUlDncBnGceSnbN/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.04.32.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJELObrSG_wnsBtqtPY_pWQUjkXYWk_NNKV6Fvzi6URdlg0OSwcrZLbe96AbhutEP7OWhYUNIJp7ipcLHaIjy2QWBflZKKLc5mgimvH8lc0JhzHnUtA7kyz1uj__anCLUlDncBnGceSnbN/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.04.32.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
還有每天有多少新的使用者，停留多久，每個Event 共有多少Session等...&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/AVvXsEh5Bs-mqlh6mmPMsGmM0tZyRfWBWX9qDFnicAWHYgWzs69D2hu62n_NhOFX7hfaXliviawSwhjT1TLLFRnwqf5HNdmx-g13IIQLwS-9CsZ__q3ZQ8UmLAwrcdOh8y87EmtJ0EFoB8oAF6xS/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.13.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;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5Bs-mqlh6mmPMsGmM0tZyRfWBWX9qDFnicAWHYgWzs69D2hu62n_NhOFX7hfaXliviawSwhjT1TLLFRnwqf5HNdmx-g13IIQLwS-9CsZ__q3ZQ8UmLAwrcdOh8y87EmtJ0EFoB8oAF6xS/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.13.15.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
除此之外，還可以設計一個連貫動作(mission)，來統計特定行為達成的數量&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7AjRpADFu-YbNm9QAKXRgMPGP1zZ_ylZkaGdQRhJ8yWawpgjA-wHwxeZGAJuN9tQSdx6woxvkytthjEkcabZ8ukNEzgbF2xegTjhsq233OIVMmscfu0Bagmv0EIfYir-gWn8QwuR5K574/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.14.55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7AjRpADFu-YbNm9QAKXRgMPGP1zZ_ylZkaGdQRhJ8yWawpgjA-wHwxeZGAJuN9tQSdx6woxvkytthjEkcabZ8ukNEzgbF2xegTjhsq233OIVMmscfu0Bagmv0EIfYir-gWn8QwuR5K574/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%886.14.55.png&quot; width=&quot;640&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;完成點選event2-後接著點選event3的數量&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
是不是迫不及待在APP裡加上去呢！Corona Flurry 就是這麼簡單！！GO 吧！！&lt;br /&gt;
&lt;br /&gt;
來自小島&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/1247475197566763983/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2013/01/flurry-api-corona.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/1247475197566763983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/1247475197566763983'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2013/01/flurry-api-corona.html' title='Flurry-流量分析API-Corona'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEhEkDI_jufhG9JzaKGWnuRYm8mMw5WE6U1Xj-Hc5UzXMqlrJJyexJ9G_2E_MXeL_KCDD_jz54YfGbdKSw2MKqvLjCNaKLlM508Dn-IkcLaRZlfNmUKFMDM59JOLnhyphenhyphenEiqkhFmb8Uj1CymtD/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-01-06+%E4%B8%8B%E5%8D%885.50.56.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-1797115167739388561</id><published>2012-12-26T08:48:00.000-08:00</published><updated>2012-12-26T08:48:15.762-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-基礎"/><title type='text'>Corona-動畫-使物件動起來</title><content type='html'>今天假使已經畫好了一系列的&lt;a href=&quot;https://www.dropbox.com/s/e6fldwf28l5ayix/runningcat-full.png&quot;&gt;動畫圖片&lt;/a&gt;&lt;br /&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBogWnensQpMmvjFYutwcD5ap8hn432H_-YefMuZodYvzIbqhr017EyCxHjLhsmUgARIMNW1CVq7TfQtIUe2t5UobJnRAsdxYYoFe57buIbLSYVI7lrElAQfsdqsbG2Fi7Eku-whp9f0nX/s1600/runningcat-sm-2_2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;293&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBogWnensQpMmvjFYutwcD5ap8hn432H_-YefMuZodYvzIbqhr017EyCxHjLhsmUgARIMNW1CVq7TfQtIUe2t5UobJnRAsdxYYoFe57buIbLSYVI7lrElAQfsdqsbG2Fi7Eku-whp9f0nX/s320/runningcat-sm-2_2.png&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;截至http://www.coronalabs.com/&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;首先因為一張圖中共有八個動作，所以要將這張圖分為八張小圖&lt;br /&gt;
&lt;br /&gt;
然後使用imageSheet API 將圖放入imageSheet當作圖片來源&lt;br /&gt;
&lt;br /&gt;
使用imageSheet能夠加快讀寫的速度，也能減少記憶體的消耗&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/f9970b091c4aaeba7332.js&quot;&gt;&lt;/script&gt;

緊接著已經將一張大圖依長寬切成八張小圖放入imageSheet中後&lt;br /&gt;
&lt;br /&gt;
要讓這八張小圖依順序播放，以產生在跑動的視覺效果&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/2b9901069cb1f0c5a303.js&quot;&gt;&lt;/script&gt;

接著再執行就可以看到一支在跑的貓了！&lt;br /&gt;
&lt;br /&gt;
很簡單吧！&lt;br /&gt;
&lt;br /&gt;
來自小島</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/1797115167739388561/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/12/corona.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/1797115167739388561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/1797115167739388561'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/12/corona.html' title='Corona-動畫-使物件動起來'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEiBogWnensQpMmvjFYutwcD5ap8hn432H_-YefMuZodYvzIbqhr017EyCxHjLhsmUgARIMNW1CVq7TfQtIUe2t5UobJnRAsdxYYoFe57buIbLSYVI7lrElAQfsdqsbG2Fi7Eku-whp9f0nX/s72-c/runningcat-sm-2_2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-6943265784895427307</id><published>2012-12-23T05:53:00.000-08:00</published><updated>2012-12-23T06:03:40.488-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-收入來源-廣告"/><title type='text'>Corona里程碑-iAd 支援</title><content type='html'>Corona 在&lt;span style=&quot;color: red;&quot;&gt;廣告上面的支援&lt;/span&gt;，一直為大家所垢病&lt;br /&gt;
&lt;br /&gt;
所支援的inMobe &amp;amp; &amp;nbsp;inneractive 收入其實並不是非常的漂亮&lt;br /&gt;
&lt;br /&gt;
有使用過的朋友相信都很清楚，還是ADMOB比較好用&lt;br /&gt;
&lt;br /&gt;
就在&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;2012/12/22 build 993&lt;/b&gt;版&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
世界末日後的一天，公佈了一個大消息，就是&lt;span style=&quot;background-color: yellow; color: red;&quot;&gt;Corona 支援了Apple 的 iAd&lt;/span&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/AVvXsEgsrDolraOyr3VplVQj6uN2YCQUiYaVILc0nPCcdZ_T3XU50L8e3JHz3tYtGNz4pwOI1YKs90TfHDWTkgTpMTwRs9frrjCGOJOOoEItEAn9uGa4RnNhptCLIEhTUNfm_2NUt5hpnMjX600O/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%881.56.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;51&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsrDolraOyr3VplVQj6uN2YCQUiYaVILc0nPCcdZ_T3XU50L8e3JHz3tYtGNz4pwOI1YKs90TfHDWTkgTpMTwRs9frrjCGOJOOoEItEAn9uGa4RnNhptCLIEhTUNfm_2NUt5hpnMjX600O/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%881.56.15.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;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcDYEJjg_TrOCyZNPRyRXyeGMLiGtr0yuqIVu3K7DGs5LNBfm2m9OhCidFApHUZo3bwM9hOvHX_ShprmqrCFv2aV1vAo1mPfbgSA52IK7e7UJL3YQe4axZNn1bIOLtvZ5M3wRY8S0IFPGj/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%881.57.00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;49&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcDYEJjg_TrOCyZNPRyRXyeGMLiGtr0yuqIVu3K7DGs5LNBfm2m9OhCidFApHUZo3bwM9hOvHX_ShprmqrCFv2aV1vAo1mPfbgSA52IK7e7UJL3YQe4axZNn1bIOLtvZ5M3wRY8S0IFPGj/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%881.57.00.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
同時在Daily build 993版的Sample 裡加入了iAd的使用Sample&lt;br /&gt;
（有興趣的朋友，請自行下載993之後的版本，找到iAd的Sample，需要build for device 才看的到廣告喔)&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiEzjGJ9pHiP1aKFscygOoqVNl0VnF2K0kp-at6fb11Ng2RlkYnvB-hETVyLjCIAaBU7TswaziUUSQ11S75uEQ6U3b-KtrTRRWKwGjf8anueuhU3vKhwPM8MHEGzvoxG_WpG_U21KG5p4Z/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%888.56.23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiEzjGJ9pHiP1aKFscygOoqVNl0VnF2K0kp-at6fb11Ng2RlkYnvB-hETVyLjCIAaBU7TswaziUUSQ11S75uEQ6U3b-KtrTRRWKwGjf8anueuhU3vKhwPM8MHEGzvoxG_WpG_U21KG5p4Z/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%888.56.23.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBd0JAQ-a_V6lJUpISwR_fYMvuavuco-HBSkj26ZcuBDeDdQrpGPTqG2kgHYPg1ftujzWPOLOE7ZXRSG61YMmlU9b7bBq_Foicnmo8QJkWmdZUshdNfVBPcWUQb3yZlsFG7UNU217q9KwW/s1600/Photo+12-12-23+%E4%B8%8B%E5%8D%881+50+05.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBd0JAQ-a_V6lJUpISwR_fYMvuavuco-HBSkj26ZcuBDeDdQrpGPTqG2kgHYPg1ftujzWPOLOE7ZXRSG61YMmlU9b7bBq_Foicnmo8QJkWmdZUshdNfVBPcWUQb3yZlsFG7UNU217q9KwW/s320/Photo+12-12-23+%E4%B8%8B%E5%8D%881+50+05.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
厲害的是iAD能做到點選廣告，直接在內裡付錢，不用再跳出畫面，&lt;br /&gt;
&lt;br /&gt;
還有在&lt;span style=&quot;color: red;&quot;&gt;廣告SHOW出來的當下，按下HOME鍵並不會回到桌面，而是把廣告收起來&lt;/span&gt;，回到當前APP畫面（真想知道怎麼控制HOME 鍵的，有沒有朋友知道？）&lt;br /&gt;
&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;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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXrHDti8T8JZCnx1YQ0G4lvkOeKWXYellCP18QO4sN9-DmsvNzc55Zw1-CHb9fqG9l0RtReiJnuOdUnPgdFUpJ3xKJ8NAEV2Q44vnevCmbLqmix-h3fbEcxiqqyr8TxHvzDbSNZZm4uFvx/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%889.42.22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXrHDti8T8JZCnx1YQ0G4lvkOeKWXYellCP18QO4sN9-DmsvNzc55Zw1-CHb9fqG9l0RtReiJnuOdUnPgdFUpJ3xKJ8NAEV2Q44vnevCmbLqmix-h3fbEcxiqqyr8TxHvzDbSNZZm4uFvx/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%889.42.22.png&quot; width=&quot;640&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;在iPhone上的廣告畫面&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
蘋果的&lt;span style=&quot;color: red;&quot;&gt;廣告拆帳方式是以6-4的方式拆帳的，也就是蘋果4成，開發者6成&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
而在蘋果廣告&lt;span style=&quot;color: red;&quot;&gt;每下點擊廣告主要支付蘋果0.2美元&lt;/span&gt;(以上)&lt;br /&gt;
&lt;br /&gt;
也就是每下點擊&lt;span style=&quot;color: red;&quot;&gt;開發者能夠拿到0.12美元&lt;/span&gt;，和&lt;span style=&quot;color: red;&quot;&gt;Admob平均開發者能拿到0.01美元&lt;/span&gt;相比&lt;br /&gt;
&lt;br /&gt;
的確是很大的誘惑&lt;br /&gt;
&lt;br /&gt;
但也因為其廣告費對企業來說較為昴貴，並不是普通企業能夠負擔的價錢&lt;br /&gt;
&lt;br /&gt;
據說美國企業投放在IAD的金額較多，相對其它國家，投放金額就沒那麼高了&lt;br /&gt;
&lt;br /&gt;
有關IAD的相關訊息和數據可以在&lt;a href=&quot;http://www.appying.com/guonei-appad/iad/&quot;&gt;這篇文章&lt;/a&gt;查看&lt;br /&gt;
&lt;br /&gt;
要&lt;span style=&quot;color: red;&quot;&gt;投放APP廣告&lt;/span&gt;的話，使用&lt;span style=&quot;color: red;&quot;&gt;ADMOB是很節省廣告費&lt;/span&gt;的&lt;br /&gt;
&lt;br /&gt;
開發者要放廣告可以考慮IAD，畢竟花錢和賺錢考量點不同&lt;br /&gt;
&lt;br /&gt;
而且並不是每個國家都適合用iAD的，可能會有無廣告的情形發生&lt;br /&gt;
&lt;br /&gt;
所以各位開發者在選廣告的當下都要慎選！</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/6943265784895427307/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/12/corona-iad.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/6943265784895427307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/6943265784895427307'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/12/corona-iad.html' title='Corona里程碑-iAd 支援'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEgsrDolraOyr3VplVQj6uN2YCQUiYaVILc0nPCcdZ_T3XU50L8e3JHz3tYtGNz4pwOI1YKs90TfHDWTkgTpMTwRs9frrjCGOJOOoEItEAn9uGa4RnNhptCLIEhTUNfm_2NUt5hpnMjX600O/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-23+%E4%B8%8B%E5%8D%881.56.15.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-7388958719904397528</id><published>2012-12-20T21:19:00.000-08:00</published><updated>2012-12-20T21:20:30.505-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-進階"/><title type='text'>Blend Mode-Corona混合特效</title><content type='html'>在製作APP 遊戲時，常會想要使用一些&lt;span style=&quot;color: red;&quot;&gt;特效&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
在這裡介紹一種Corona中的混合特效給大家-&lt;span style=&quot;color: red;&quot;&gt;Blending&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Blending 主要用來混合多層不同的Pixel，&lt;br /&gt;
&lt;br /&gt;
利用Object的&lt;span style=&quot;color: red;&quot;&gt;RGB&lt;/span&gt;三個元素來混出新的顏色&lt;br /&gt;
&lt;br /&gt;
Blend Mode 有提供額外三種模式（預設為Normal）&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;add&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;multiply&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;screen&quot;&lt;/span&gt;&lt;/span&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/AVvXsEhM5wOD_HtFL2wQLv9UCu0zY_nZ5M9Tf_VqElhqYRVdO2_R8S2BhFjC4GtOpYmtspW7HC47SJk_AKTZRNjkUVxPiNwSwxFM1736H0T5TJmdeQ-EdhGj72bFmL-sGVOGfXEJYlUZ_9md1zBH/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%881.03.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;113&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM5wOD_HtFL2wQLv9UCu0zY_nZ5M9Tf_VqElhqYRVdO2_R8S2BhFjC4GtOpYmtspW7HC47SJk_AKTZRNjkUVxPiNwSwxFM1736H0T5TJmdeQ-EdhGj72bFmL-sGVOGfXEJYlUZ_9md1zBH/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%881.03.33.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;使用方法&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;obj.blendMode = &quot;add&quot; --使用add blendmode
obj.blendMode = &quot;multiply&quot; --使用multiply blendmode
obj.blendMode = &quot;screen&quot; --使用screen blendmode&lt;/code&gt;&lt;/pre&gt;
&lt;b style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: red; font-size: x-large;&quot;&gt;blending mode:add&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
add模式對於想要使用火焰，雷射或是閃電特效時很有用&lt;br /&gt;
&lt;br /&gt;
add模式混合算式很單純的就是RGB各元素相加(Max為255)&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;background = display.newRect(0,0,display.contentWidth,display.contentHeight)
background:setFillColor(34, 34, 44)
local myCircle = display.newCircle(  display.contentWidth*.5, display.contentHeight*.2, 40 )
myCircle:setFillColor(255,51,51)
myCircle.blendMode = &quot;add&quot;
local myCircle2 = display.newCircle(  display.contentWidth*.5+myCircle.contentWidth*.7, display.contentHeight*.2, 40 )
myCircle2:setFillColor(0,153,51)
myCircle2.blendMode = &quot;add&quot;
local myRect = display.newRect(  myCircle.x,myCircle.y-myCircle.contentWidth*.25,60,40)
myRect:setFillColor(102, 153, 204)
myRect.blendMode = &quot;add&quot;
local myText = display.newText( &quot;add&quot;, myRect.x, myRect.y+myRect.contentHeight, native.sysemFont,20)
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;background:(34,34,44)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;red circle:(255,51,51)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;green circle:(0,153,51)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;blue rectangle:(102,153,204)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
左區混色：(255+102+34,51+153+34,51+204+44)=(255,238,255)&lt;br /&gt;
中間混色：(255+0+102+34,51+153+153+34,51+40+204+44)=(255,255,255)&lt;br /&gt;
右邊混色：(0+102+34,153+153+34,40+204+44)=(136,255,255)&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/AVvXsEhTUze3wNbX3czGdfyIuT_5bsXRSH5qXA-khOMGcFwuUGp8JGkz6g8VP4ypi9iqszVd6-tZ4TODwqZDwk5hNAmpKgJHloiLkifZxaWJ7mt5iszM2kPOWiLrYtPJy_2rauQjT6ceRii8Pzty/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%8812.30.00.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/AVvXsEhTUze3wNbX3czGdfyIuT_5bsXRSH5qXA-khOMGcFwuUGp8JGkz6g8VP4ypi9iqszVd6-tZ4TODwqZDwk5hNAmpKgJHloiLkifZxaWJ7mt5iszM2kPOWiLrYtPJy_2rauQjT6ceRii8Pzty/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%8812.30.00.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red; font-size: x-large;&quot;&gt;blending mode:multiply&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
multiply模式製造出來的效果會使得物件變暗對於製造shadow較有用&lt;br /&gt;
&lt;br /&gt;
multiply模式混合公式為&lt;br /&gt;
&lt;br /&gt;
RGB resulting color = (top color * bottom color) /255&lt;br /&gt;
&lt;br /&gt;
（程式碼請參考之前，將模式更改為&lt;span style=&quot;background-color: yellow; color: red;&quot;&gt;multiply&lt;/span&gt;）&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;background:(34,34,44)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;red circle:(255,51,51)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;green circle:(0,153,51)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;blue rectangle:(102,153,204)&lt;/span&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/AVvXsEjWCXBhXJyJLYew5NGnreQhiE51Zd9JO6lvXQMi1pVlojoZ2dumDnnf2yHdgn9So64gQCn0__kI_-qno7B_keCAeLd6JPhNYUv2R8LiD1OcKlgmbdXJMFYo-l-ZxkbizOH9oFJE-seizOc9/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%8812.30.13.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/AVvXsEjWCXBhXJyJLYew5NGnreQhiE51Zd9JO6lvXQMi1pVlojoZ2dumDnnf2yHdgn9So64gQCn0__kI_-qno7B_keCAeLd6JPhNYUv2R8LiD1OcKlgmbdXJMFYo-l-ZxkbizOH9oFJE-seizOc9/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%8812.30.13.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
左區混色：((255*102*34)/255^2,(51*153*34)/255^2,(51*204*44)/255^2)=(13.6,4.08,7.04)&lt;br /&gt;
中間混色：((255*0*102*34)/255^3,(51*153*153*34)/255^3,(51*40*204*44)/255^3)=(0,0.24,0.01)&lt;br /&gt;
右邊混色：((0*102*34)/255^2,(153*153*34)/255^2,(40*204*44)/255^2)=(0,12.24,5.52)&lt;br /&gt;
(記得要加背景色上去)&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red; font-size: x-large;&quot;&gt;blending mode:screen&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
screen模式製造出來的效果會使得物件淡（亮），但重疊的部份又不會太亮&lt;br /&gt;
&lt;br /&gt;
screen模式混合公式為&lt;br /&gt;
&lt;br /&gt;
RGB resulting color =&amp;nbsp;255 - ( ( ( 255 - top color ) * ( 255 - bottom color ) ) / 255 )&lt;br /&gt;
&lt;br /&gt;
（程式碼請參考之前，將模式更改為&lt;span style=&quot;background-color: yellow; color: red;&quot;&gt;screen&lt;/span&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/AVvXsEj6j7ZGTwYmCK0dl_y6q5-JF0neSi2cXTc2r26LYDUHm_o1s6eJUwsmIEAhzjgfBOuUHBgzo4MMQWzmkhCKMKzYOSuV4a28spKDEaopDQehLLZkEsaUzPGiGAVmIzNRfLeWQRPdl_t2aibz/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%8812.30.07.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/AVvXsEj6j7ZGTwYmCK0dl_y6q5-JF0neSi2cXTc2r26LYDUHm_o1s6eJUwsmIEAhzjgfBOuUHBgzo4MMQWzmkhCKMKzYOSuV4a28spKDEaopDQehLLZkEsaUzPGiGAVmIzNRfLeWQRPdl_t2aibz/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%8812.30.07.png&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;
來自小島</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/7388958719904397528/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/12/blend-mode-corona.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/7388958719904397528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/7388958719904397528'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/12/blend-mode-corona.html' title='Blend Mode-Corona混合特效'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEhM5wOD_HtFL2wQLv9UCu0zY_nZ5M9Tf_VqElhqYRVdO2_R8S2BhFjC4GtOpYmtspW7HC47SJk_AKTZRNjkUVxPiNwSwxFM1736H0T5TJmdeQ-EdhGj72bFmL-sGVOGfXEJYlUZ_9md1zBH/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-21+%E4%B8%8B%E5%8D%881.03.33.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-123759551301464208</id><published>2012-12-18T23:49:00.001-08:00</published><updated>2012-12-18T23:49:54.888-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-基礎"/><title type='text'>Google Map in Corona(iOS)</title><content type='html'>&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/AVvXsEh4GXYVDBadF-dKOlWFwGQfu1O992pKjX9IFbIHNSyqd32xNdtd2H5G_NebiAVng_Zd55EpO3PvCL_wDfyEvWUWEiALuphFq2GS7nx_HG0Tn4grOUeD7xWdH4svulJQzYVJpUZbWQGFrtEy/s1600/gmaps-icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4GXYVDBadF-dKOlWFwGQfu1O992pKjX9IFbIHNSyqd32xNdtd2H5G_NebiAVng_Zd55EpO3PvCL_wDfyEvWUWEiALuphFq2GS7nx_HG0Tn4grOUeD7xWdH4svulJQzYVJpUZbWQGFrtEy/s1600/gmaps-icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
在&lt;span style=&quot;color: red;&quot;&gt;2012年12月12日&lt;/span&gt;這個日子蘋果讓Google Map審核通過&lt;br /&gt;
&lt;br /&gt;
大家在&lt;span style=&quot;color: red;&quot;&gt;IOS6以上終於可以使用Google的&lt;a href=&quot;https://itunes.apple.com/us/app/google-maps/id585027354?mt=8&amp;amp;ign-mpt=uo%3D2&quot;&gt;MAP APP&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
這也是蘋果承認自家地圖不好用之後大家最大的期待&lt;br /&gt;
&lt;br /&gt;
因為現在IOS內建的MAP是蘋果自家的了&lt;br /&gt;
&lt;br /&gt;
我還是希望從我的APP裡連MAP的時候，能夠使用GOOGLE MAP&lt;br /&gt;
&lt;br /&gt;
這可怎麼辦？&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
在iOS裡有個&lt;span style=&quot;color: red;&quot;&gt;APP URL Scheme&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
簡單來說&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;APP可以註冊自己的URL來供其它APP呼叫&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
而要使用Google Map的首要條件便是要有安裝Google Map app&lt;br /&gt;
&lt;br /&gt;
Google Map URL Scheme 為&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: yellow; color: red;&quot;&gt;comgooglemaps&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
程式中呼叫此段將會開啟MAP APP 並且移到此座標&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;system.openURL(&quot;comgooglemaps://?center=40.765819,-73.975866&amp;amp;zoom=14&amp;amp;views=traffic&quot;)
-- center:中心座標
-- zomm:縮放等級
-- views:何種MAP種類
-- 如沒給座標，將會偵測DEVICE位置（需要開定位）
&lt;/code&gt;&lt;/pre&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/AVvXsEgyRnLKVMh-KSdIbKx-M5eEDOUCivK54Re_Fjbw2YfWkjbOeDfzRminQpv0RLHMKfiHUBWF891sSIWuncOK3JsxiX7yWOSn6dpfA4cvmiWIJCaY301vBL_VqUzEJrcq77fJeABhX7qeFkM5/s1600/Photo+12-12-19+%E4%B8%8B%E5%8D%883+19+35.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/AVvXsEgyRnLKVMh-KSdIbKx-M5eEDOUCivK54Re_Fjbw2YfWkjbOeDfzRminQpv0RLHMKfiHUBWF891sSIWuncOK3JsxiX7yWOSn6dpfA4cvmiWIJCaY301vBL_VqUzEJrcq77fJeABhX7qeFkM5/s320/Photo+12-12-19+%E4%B8%8B%E5%8D%883+19+35.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
若使用street view&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;system.openURL(&quot;comgooglemaps://?center=40.765819,-73.975866&amp;amp;zoom=14&amp;amp;views=traffic&amp;amp;mapmode=streetview&quot;)
&lt;/code&gt;&lt;/pre&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/AVvXsEgJQdk5iF9nYwmtuZdX5zv-4wqbMXvlHA44lZyXgCyfwpiR4kB_jKIs5Wi4L1CZ4PTwRbI2xEZCZJe3Dk5JRb86tiPc_B3C-soGQuFMvpnv_Xk1taf9KdWmmJrlq_75WF0phIzrk3TwvOMe/s1600/Photo+12-12-19+%E4%B8%8B%E5%8D%883+27+01.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/AVvXsEgJQdk5iF9nYwmtuZdX5zv-4wqbMXvlHA44lZyXgCyfwpiR4kB_jKIs5Wi4L1CZ4PTwRbI2xEZCZJe3Dk5JRb86tiPc_B3C-soGQuFMvpnv_Xk1taf9KdWmmJrlq_75WF0phIzrk3TwvOMe/s320/Photo+12-12-19+%E4%B8%8B%E5%8D%883+27+01.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
如果想要搜尋某座標附近的披薩店則輸入&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;system.openURL(&quot;comgooglemaps://?q=pizza&amp;amp;center=121.567266,25.041722&quot;)
&lt;/code&gt;&lt;/pre&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/AVvXsEiJgGp8eNC1TYIoo6uQeQjn2wVQ76bjBU654OnYapNkC3qdEDgi2Ws_bQv9Ev5MBeWxr1m7YESMk1g0V6yCHu87W42pLzzRobQ3WnHSE44roKt_cVSiJSMJBgf8t8tHZhhVthkK8RMXG7N6/s1600/Photo+12-12-19+%E4%B8%8B%E5%8D%883+36+13.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/AVvXsEiJgGp8eNC1TYIoo6uQeQjn2wVQ76bjBU654OnYapNkC3qdEDgi2Ws_bQv9Ev5MBeWxr1m7YESMk1g0V6yCHu87W42pLzzRobQ3WnHSE44roKt_cVSiJSMJBgf8t8tHZhhVthkK8RMXG7N6/s320/Photo+12-12-19+%E4%B8%8B%E5%8D%883+36+13.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;a href=&quot;https://developers.google.com/maps/documentation/ios/urlscheme&quot;&gt;GOOGLE的官方介紹囉&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/123759551301464208/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/12/google-map-in-coronaios.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/123759551301464208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/123759551301464208'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/12/google-map-in-coronaios.html' title='Google Map in Corona(iOS)'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEh4GXYVDBadF-dKOlWFwGQfu1O992pKjX9IFbIHNSyqd32xNdtd2H5G_NebiAVng_Zd55EpO3PvCL_wDfyEvWUWEiALuphFq2GS7nx_HG0Tn4grOUeD7xWdH4svulJQzYVJpUZbWQGFrtEy/s72-c/gmaps-icon.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-6436055303070383909</id><published>2012-12-18T05:35:00.000-08:00</published><updated>2012-12-18T05:36:44.147-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-基礎"/><title type='text'>Corona-iPhone5螢幕支援</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd3Ddl84EF2dX8VbPypZKwpAQQ_ZGubdcM-V6JqFM4Le3MRb0Ylte7btWJM4I1B1TtM22sY9Qk6lVSARvl1iqsXAqK6pYX6EpoSCol7hNflhnl-TBUQV5NYV8LjdVdg-Nwh8QCtmInU-zJ/s1600/iOS+%E6%A8%A1%E6%8B%9F%E5%99%A8%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%E2%80%9C2012.12.18+%E4%B8%8B%E5%8D%889.23.08%E2%80%9D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd3Ddl84EF2dX8VbPypZKwpAQQ_ZGubdcM-V6JqFM4Le3MRb0Ylte7btWJM4I1B1TtM22sY9Qk6lVSARvl1iqsXAqK6pYX6EpoSCol7hNflhnl-TBUQV5NYV8LjdVdg-Nwh8QCtmInU-zJ/s320/iOS+%E6%A8%A1%E6%8B%9F%E5%99%A8%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%E2%80%9C2012.12.18+%E4%B8%8B%E5%8D%889.23.08%E2%80%9D.png&quot; width=&quot;180&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;什麼！！黑邊！！&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
就在前些日子&lt;br /&gt;
&lt;br /&gt;
島民做了一件很傻的事情，&lt;br /&gt;
&lt;br /&gt;
因為&lt;span style=&quot;color: red;&quot;&gt;iPhone 5&lt;/span&gt;出了(國外)，島民就很快的把APP作更新&lt;br /&gt;
&lt;br /&gt;
然後在模擬器（iPhone5模擬)跑出來一切正常後，就上傳送審&lt;br /&gt;
&lt;br /&gt;
一直到最近iPhone5回到台灣上巿後，&lt;br /&gt;
&lt;br /&gt;
第一個拿到的朋友馬上安裝了小島的APP，&lt;br /&gt;
&lt;br /&gt;
然後跟我說「&lt;span style=&quot;color: red;&quot;&gt;你的APP在iPhone5上面是上下黑邊耶&lt;/span&gt;」！！&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;什麼！！！&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&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;b&gt;&lt;span style=&quot;color: red;&quot;&gt;config.lua&lt;/span&gt;)&lt;/b&gt;中，&lt;br /&gt;
&lt;br /&gt;
先判斷Model是iPhone&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;system.getInfo(&quot;model&quot;) == &quot;iPhone&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
再利用display.pixelWidth及display.pixelHeight來判斷寬和高度&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;iPhone4:640x960&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;iPhone5:640x1136&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
再利用以上資訊來設APP的長和寬&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;if system.getInfo(&quot;model&quot;) == &quot;iPhone&quot; then
    local isTall = (  display.pixelHeight &amp;gt; 960 ) --若DEVICE是iphone，pixel高度大於960即為iPhone5
    local height = 480
    if (isTall) then height = 1136/2  end --若是iPhone5則高度為1136/2 = 568
    application =
    {
 content =
 {
  width = 320, -- 使用320來fix寬度，因為iphone寬不是320就是640
  height = height, -- 因為使用320所以上面的iPhone5高度需要除以2來配合比例
  scale = &quot;letterbox&quot; -- zoom to fill screen, possibly cropping edges
 },
    }
end
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
設定好後就能判斷是不是iPhone5了&lt;br /&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd3Ddl84EF2dX8VbPypZKwpAQQ_ZGubdcM-V6JqFM4Le3MRb0Ylte7btWJM4I1B1TtM22sY9Qk6lVSARvl1iqsXAqK6pYX6EpoSCol7hNflhnl-TBUQV5NYV8LjdVdg-Nwh8QCtmInU-zJ/s1600/iOS+%25E6%25A8%25A1%25E6%258B%259F%25E5%2599%25A8%25E5%25B1%258F%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7%25E2%2580%259C2012.12.18+%25E4%25B8%258B%25E5%258D%25889.23.08%25E2%2580%259D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd3Ddl84EF2dX8VbPypZKwpAQQ_ZGubdcM-V6JqFM4Le3MRb0Ylte7btWJM4I1B1TtM22sY9Qk6lVSARvl1iqsXAqK6pYX6EpoSCol7hNflhnl-TBUQV5NYV8LjdVdg-Nwh8QCtmInU-zJ/s320/iOS+%25E6%25A8%25A1%25E6%258B%259F%25E5%2599%25A8%25E5%25B1%258F%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7%25E2%2580%259C2012.12.18+%25E4%25B8%258B%25E5%258D%25889.23.08%25E2%2580%259D.png&quot; width=&quot;180&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;自以為的下場&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
必須要告訴iOS，我有支援IPhone5!&lt;br /&gt;
&lt;br /&gt;
怎麼做？要在root資料夾下加上&lt;span style=&quot;color: red;&quot;&gt;Default-568h@2x.png&lt;/span&gt; 這個圖檔&lt;br /&gt;
&lt;br /&gt;
APP在開啟時會先尋找是否有此圖檔，有的話才會判定此APP有支援iPhone5&lt;br /&gt;
&lt;br /&gt;
圖檔大小不限（用空白的png就可以)&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/AVvXsEiSYhWRGbQ7UkoO0boWPOcQjc2GgKOHO4bOlNCDzUd7HfCGfUSCLPcQfb-C16qybVjaCtNLxBCdWtTuk17BrPpbF_3wOig2g9JyUpf0v9IPamFuuIWpOYqP65Kq9ZahMUiRoLTAWY6HkMQ3/s1600/iOS+%E6%A8%A1%E6%8B%9F%E5%99%A8%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%E2%80%9C2012.12.18+%E4%B8%8B%E5%8D%889.32.33%E2%80%9D.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/AVvXsEiSYhWRGbQ7UkoO0boWPOcQjc2GgKOHO4bOlNCDzUd7HfCGfUSCLPcQfb-C16qybVjaCtNLxBCdWtTuk17BrPpbF_3wOig2g9JyUpf0v9IPamFuuIWpOYqP65Kq9ZahMUiRoLTAWY6HkMQ3/s320/iOS+%E6%A8%A1%E6%8B%9F%E5%99%A8%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%E2%80%9C2012.12.18+%E4%B8%8B%E5%8D%889.32.33%E2%80%9D.png&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
以上，慘痛的自以為二個月的經驗&lt;br /&gt;
&lt;br /&gt;
來自.....小島</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/6436055303070383909/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/12/corona-iphone5.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/6436055303070383909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/6436055303070383909'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/12/corona-iphone5.html' title='Corona-iPhone5螢幕支援'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEjd3Ddl84EF2dX8VbPypZKwpAQQ_ZGubdcM-V6JqFM4Le3MRb0Ylte7btWJM4I1B1TtM22sY9Qk6lVSARvl1iqsXAqK6pYX6EpoSCol7hNflhnl-TBUQV5NYV8LjdVdg-Nwh8QCtmInU-zJ/s72-c/iOS+%E6%A8%A1%E6%8B%9F%E5%99%A8%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%E2%80%9C2012.12.18+%E4%B8%8B%E5%8D%889.23.08%E2%80%9D.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-4306522492303665613</id><published>2012-12-17T23:39:00.000-08:00</published><updated>2012-12-18T05:45:31.450-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-雜誌"/><title type='text'>Corona Magazine-CoronaPaper</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjamR7SQuNZ1xNLMt1w5uRPa5nzpklII7hDtvvH9FsM-Bo86EZBinrw-JL_yMgAZXF11TZi0arwymfU66crK233ZW15fGu53S4AfwxBj3xzyN2gnngM8122s5ZcNKuk5jsSUjCbzhhOo0YP/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-18+%E4%B8%8B%E5%8D%883.34.26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjamR7SQuNZ1xNLMt1w5uRPa5nzpklII7hDtvvH9FsM-Bo86EZBinrw-JL_yMgAZXF11TZi0arwymfU66crK233ZW15fGu53S4AfwxBj3xzyN2gnngM8122s5ZcNKuk5jsSUjCbzhhOo0YP/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-18+%E4%B8%8B%E5%8D%883.34.26.png&quot; width=&quot;240&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;&lt;span style=&quot;font-size: small;&quot;&gt;截至www.coronapaper.com&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;如何讓自己對Corona 更為熟悉呢？&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;現在有了一份&lt;a href=&quot;http://coronapaper.com/&quot;&gt;CoronaPaper 雜誌&lt;/a&gt;！！&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #404040;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #404040;&quot;&gt;發行者為&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, Verdana, sans-serif; line-height: 18px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Andreas Kviby&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #404040; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, Verdana, sans-serif; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #404040; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, Verdana, sans-serif; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #404040; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, Verdana, sans-serif; line-height: 18px;&quot;&gt;其在Sweden有著超過20位的員工&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #404040; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, Verdana, sans-serif; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #404040; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, Verdana, sans-serif; line-height: 18px;&quot;&gt;主要使用Corona開發跨平台的APP&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #404040; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Helvetica, Arial, Verdana, sans-serif; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;基於對Corona的熱情發行APP相關之雜誌&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;於是CoronaPaper便誕生了&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;主要分享一些有趣，好玩，相關學習的資訊&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;每份雜誌會有不少於40頁的資訊&lt;/span&gt;&lt;/span&gt;&lt;/div&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkiNjb0cTGGGfi5uIhs_JCEn44_X9_a5EWjSAaK4b97qB3F8zk2bvJPbdu8T1HPLjdbG9vEMjSt7xL6K3bs2XcnVFBeX-dkZEgNGLFPEx7TKNJs5qBeJjVQCQh7d7KlshXVgNgT2wPZA9I/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-18+%E4%B8%8B%E5%8D%883.36.55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkiNjb0cTGGGfi5uIhs_JCEn44_X9_a5EWjSAaK4b97qB3F8zk2bvJPbdu8T1HPLjdbG9vEMjSt7xL6K3bs2XcnVFBeX-dkZEgNGLFPEx7TKNJs5qBeJjVQCQh7d7KlshXVgNgT2wPZA9I/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-18+%E4%B8%8B%E5%8D%883.36.55.png&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;&lt;span style=&quot;font-size: small;&quot;&gt;截至www.coronapaper.com&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;於2012/12/17號發行了第一份，&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;在簡介中能看到有介紹如何使用Facebook,Storyboard&lt;/span&gt;&lt;/span&gt;&lt;/div&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSHyXR7vCcHrDTYLLmAOkZkZJxPikBPa2TWNNHn6elMNg0SNXeX4X4bDWO3sg41sPGtGbWA9Y5wRHB7LavKGkFdbH_bA9WdN2d-ZJ3-jugSkClftC5OkOuQFtqr8I9FcSP2hQjOn0GWtCf/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-18+%E4%B8%8B%E5%8D%883.37.02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSHyXR7vCcHrDTYLLmAOkZkZJxPikBPa2TWNNHn6elMNg0SNXeX4X4bDWO3sg41sPGtGbWA9Y5wRHB7LavKGkFdbH_bA9WdN2d-ZJ3-jugSkClftC5OkOuQFtqr8I9FcSP2hQjOn0GWtCf/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-18+%E4%B8%8B%E5%8D%883.37.02.png&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;&lt;span style=&quot;font-size: small;&quot;&gt;截至www.coronapaper.com&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;不論是剛接觸或是想更深入了解Corona的朋友，相信這都是一份很開的開始&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;一年份的年費是50美元&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #404040; font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;來自小島&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/4306522492303665613/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/12/corona-magazine-coronapaper.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/4306522492303665613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/4306522492303665613'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/12/corona-magazine-coronapaper.html' title='Corona Magazine-CoronaPaper'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEjamR7SQuNZ1xNLMt1w5uRPa5nzpklII7hDtvvH9FsM-Bo86EZBinrw-JL_yMgAZXF11TZi0arwymfU66crK233ZW15fGu53S4AfwxBj3xzyN2gnngM8122s5ZcNKuk5jsSUjCbzhhOo0YP/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-12-18+%E4%B8%8B%E5%8D%883.34.26.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-4131429497095274425</id><published>2012-11-26T06:58:00.004-08:00</published><updated>2012-11-26T07:44:23.282-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-題外話"/><title type='text'>APP遊戲一大抄</title><content type='html'>本身在寫APP的開發者，需要對排行較前的APP感覺較敏銳&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
剛好在休閒時間喜歡玩點APP殺殺時間，其實很多APP都很有趣，&lt;/div&gt;
&lt;div&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的世界裡，沒有所謂的智慧財產權&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今天你的APP很棒，別人隨時可以超越&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
記得在現實世界裡也是。甚至也有版面都跟FACEBOOK一模一樣的社群網出現&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
最近島民有在玩的一款小遊戲是&lt;a href=&quot;https://itunes.apple.com/tw/app/mu-zhi-xi-you/id555271769?mt=8&quot;&gt;拇指西遊&lt;/a&gt;，遊戲就不作介紹了，只介紹“相似”的部份&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今天在排行榜看到一款&lt;a href=&quot;https://itunes.apple.com/cn/app/san-guo-lai-le/id500601105?mt=8&quot;&gt;三國來了&lt;/a&gt;&lt;/div&gt;
&lt;div&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;
&lt;span style=&quot;color: red;&quot;&gt;三國來了&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;VS&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;拇指西遊&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiG7aR_BtE7Hysukq5ZIYT_fPxMch0YYcB7Xilx8Jg4p_qRh9E17-j9kRTt_QCK28sPTiIIgvOcwydWRP0bvj3Fs-3vWbsGZI3AE6gtvFsuGYISq-iJcf4fv1EV43Y2NMTpnRuc6D4E_Dj/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.17.49.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiG7aR_BtE7Hysukq5ZIYT_fPxMch0YYcB7Xilx8Jg4p_qRh9E17-j9kRTt_QCK28sPTiIIgvOcwydWRP0bvj3Fs-3vWbsGZI3AE6gtvFsuGYISq-iJcf4fv1EV43Y2NMTpnRuc6D4E_Dj/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.17.49.png&quot; width=&quot;640&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;主畫面列表&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp47VIEWIqN7qAZ9n0pG4C3tEVCcwYmPL3BA8IgfPlxYO-lsJ6DbbCm4peIVtPqAt53uhvkOd_gB-A564VprWE85_w6eT0BPb_iNxjw3IYWY6hn1bXWrmT_A9m5kc4J1Qfm85hGAtkxYhQ/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.18.50.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp47VIEWIqN7qAZ9n0pG4C3tEVCcwYmPL3BA8IgfPlxYO-lsJ6DbbCm4peIVtPqAt53uhvkOd_gB-A564VprWE85_w6eT0BPb_iNxjw3IYWY6hn1bXWrmT_A9m5kc4J1Qfm85hGAtkxYhQ/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.18.50.png&quot; width=&quot;640&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;寶物合成&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqMyxFEf-qMrzbqCvq1C5pLTtkGCPWGyipmXUoMq02hEEsXnkDgz9hFWlGh-vGdrR3rojtrijOszVNJ69JXCd5RnBB8JGsmdCdrMaQb0rHqUy2OR5hRt9EUSCoUnt0bCjRk0Sl2lBWTMIb/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.24.31.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqMyxFEf-qMrzbqCvq1C5pLTtkGCPWGyipmXUoMq02hEEsXnkDgz9hFWlGh-vGdrR3rojtrijOszVNJ69JXCd5RnBB8JGsmdCdrMaQb0rHqUy2OR5hRt9EUSCoUnt0bCjRk0Sl2lBWTMIb/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.24.31.png&quot; width=&quot;640&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;打鬥畫面&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPpv24UUtlL99b6dQLKiw0jKNL8twSCuLjdU3fybZpXwY5huiQgxCtq_gS_UK663NJypjYnjX_N-3AS5o1akRmPv2r2P5uM048Is_uh8zWSbaYDmxVC5kLoO_Pujg31lx5vE6jS0JatwJf/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.25.41.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPpv24UUtlL99b6dQLKiw0jKNL8twSCuLjdU3fybZpXwY5huiQgxCtq_gS_UK663NJypjYnjX_N-3AS5o1akRmPv2r2P5uM048Is_uh8zWSbaYDmxVC5kLoO_Pujg31lx5vE6jS0JatwJf/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.25.41.png&quot; width=&quot;640&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;任務畫面&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA3HlmFRVlfkJzIVq-tasuilK4crs3bHbRSs4XczkNiV11GFOdt96b16z-mkl5qB0Ni2ByODLLwjOicUY7Snm6kn6WPBcX3oZgYoZEEE18rz-00xxbtiVpbqGsXc2BdMGkPU-fHx5LFjzq/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.26.32.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA3HlmFRVlfkJzIVq-tasuilK4crs3bHbRSs4XczkNiV11GFOdt96b16z-mkl5qB0Ni2ByODLLwjOicUY7Snm6kn6WPBcX3oZgYoZEEE18rz-00xxbtiVpbqGsXc2BdMGkPU-fHx5LFjzq/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.26.32.png&quot; width=&quot;640&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;道具購買&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtaI06Tf14xQ6QyQ9kg-5IgWkzwYtf7sfioomemJPxxYsSuOWubfo9iE3vNMcP37FFs1Fqy-5qkP4y3efBAYiEydmV_hBBaxBh4Zy8P9UwLejohqRlciEhU4LCjUdQ-FHNxIsfnX5cGNfH/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.27.31.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtaI06Tf14xQ6QyQ9kg-5IgWkzwYtf7sfioomemJPxxYsSuOWubfo9iE3vNMcP37FFs1Fqy-5qkP4y3efBAYiEydmV_hBBaxBh4Zy8P9UwLejohqRlciEhU4LCjUdQ-FHNxIsfnX5cGNfH/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.27.31.png&quot; width=&quot;640&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;充值畫面&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp-Vf1229FBb8GRPkWnLKtYywmh9q-pLOIq14oREH8jH7Ia1AyECAubNIWyxbdhABDkkAa5bXoECmrNtNWWYWqBDgcEu4Y1Xy4CqTU_6IN01sr9HvkSA5yYE5yxdZywlhVPAQ1q-1CUxEc/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.28.52.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp-Vf1229FBb8GRPkWnLKtYywmh9q-pLOIq14oREH8jH7Ia1AyECAubNIWyxbdhABDkkAa5bXoECmrNtNWWYWqBDgcEu4Y1Xy4CqTU_6IN01sr9HvkSA5yYE5yxdZywlhVPAQ1q-1CUxEc/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.28.52.png&quot; width=&quot;640&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;人物總覽&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG8syLz597RTvyKmFGHO7e0bj1KiIIZHWcI3e3Tb3Qm-MNMtswUPEeqNKmAQ3H-k5afJmnYMr05bsnnkABslfril5lNRBLKzdaunz1d-bdZ1gXTsAWTpq073OR6GTL4_FcXHrKLmUY4pN2/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.30.11.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG8syLz597RTvyKmFGHO7e0bj1KiIIZHWcI3e3Tb3Qm-MNMtswUPEeqNKmAQ3H-k5afJmnYMr05bsnnkABslfril5lNRBLKzdaunz1d-bdZ1gXTsAWTpq073OR6GTL4_FcXHrKLmUY4pN2/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.30.11.png&quot; width=&quot;640&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;人物列表&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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;span style=&quot;color: red;&quot;&gt;其實架構都差不多&lt;/span&gt;？&lt;br /&gt;
&lt;br /&gt;
上面兩款遊戲是由兩間不同的 大陸 公司所做的&lt;br /&gt;
&lt;br /&gt;
右邊這款遊戲，據說遊戲公司一個月進帳有100萬的RMB&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;相同的架構，可以套上不同的故事&lt;/span&gt;，再拿出來回鍋一次&lt;br /&gt;
&lt;br /&gt;
嗯，這是一個很聰明的方法，因為 消費者會買帳&lt;br /&gt;
&lt;br /&gt;
只要美工和畫面不同，ONLINE GAME 不也如此嗎？&lt;br /&gt;
&lt;br /&gt;
一款遊戲的沒落，另一款便會掘起&lt;br /&gt;
&lt;br /&gt;
換個皮膚大家還是會接受的，原創？很重要嗎，能夠商業化對生存比較重要&lt;br /&gt;
&lt;br /&gt;
還是希望獨立開發者，能夠建立自已獨創的想法，唯一的APP&lt;br /&gt;
&lt;br /&gt;
而不是模仿，因為這才是樂趣的來源，用愛做出來的APP，才吸引人，才會長久。&lt;br /&gt;
&lt;br /&gt;
來自小島</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/4131429497095274425/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/11/app.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/4131429497095274425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/4131429497095274425'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/11/app.html' title='APP遊戲一大抄'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEiiG7aR_BtE7Hysukq5ZIYT_fPxMch0YYcB7Xilx8Jg4p_qRh9E17-j9kRTt_QCK28sPTiIIgvOcwydWRP0bvj3Fs-3vWbsGZI3AE6gtvFsuGYISq-iJcf4fv1EV43Y2NMTpnRuc6D4E_Dj/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-26+%E4%B8%8B%E5%8D%8811.17.49.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-8473321388909473709</id><published>2012-11-14T04:13:00.002-08:00</published><updated>2012-11-15T19:14:13.852-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-收入來源-廣告"/><title type='text'>App收益-廣告(Admob)</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3hiu6XtS9eVP7ANF7rRCSHetFVkuu5iDSDpCi1Gt6uS9BEkUj4bcC8KJK1T3O6tuzIDuqR3H4fWp0w2CHwZ6kYtiaefaW3uRIXGA0aQKZLRHBrwnm_FGCmmfQpFXHiGvwdnA9MyoM-9Kc/s1600/image.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3hiu6XtS9eVP7ANF7rRCSHetFVkuu5iDSDpCi1Gt6uS9BEkUj4bcC8KJK1T3O6tuzIDuqR3H4fWp0w2CHwZ6kYtiaefaW3uRIXGA0aQKZLRHBrwnm_FGCmmfQpFXHiGvwdnA9MyoM-9Kc/s1600/image.jpeg&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;掫自博客來&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
寫App究竟是一個興趣還是希望能夠多一份收入&lt;br /&gt;
&lt;br /&gt;
心想：最好的話，是能夠辭職變成一份穩定的收入&lt;br /&gt;
&lt;br /&gt;
島民 最近拜讀了 &lt;a href=&quot;http://www.books.com.tw/exep/prod/booksfile.php?item=0010559438&quot;&gt;半路叛逃 的書(遊戲製作人的1000日叛逃)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
其中也說了很多我的心聲&lt;br /&gt;
&lt;br /&gt;
正確來說，應該是APP開發者的心聲&lt;br /&gt;
&lt;br /&gt;
APP開發時間，短的要2-3個月&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
長的要半年以上，&lt;br /&gt;
&lt;br /&gt;
遊戲類需要&lt;span style=&quot;color: red;&quot;&gt;美工&lt;/span&gt;，&lt;span style=&quot;color: red;&quot;&gt;企劃&lt;/span&gt;，&lt;span style=&quot;color: red;&quot;&gt;程設師&lt;/span&gt;三者配合(之後還要行銷)&lt;br /&gt;
&lt;br /&gt;
或是更精簡的由獨立開發者包辦全部&lt;br /&gt;
&lt;br /&gt;
那需要花費時間更久&lt;br /&gt;
&lt;br /&gt;
上架後 一個遊戲APP賣1.99(更多是0.99-如.angry bird)&lt;br /&gt;
&lt;br /&gt;
換算開發人員兩位，3個月好了，假使月薪算四萬&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;4萬x2人x3月 = 24萬&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;24萬的薪水&lt;/span&gt;要有多少&lt;span style=&quot;color: red;&quot;&gt;app&lt;/span&gt;下載量能賺回？&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;240000/(1.99*70%(蘋果抽3成)*30(台幣)) = &lt;span style=&quot;color: red;&quot;&gt;5743&lt;/span&gt; 下載量&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
但事實呢？能達到如此下載量的付費APP實在是極度不容易&lt;br /&gt;
&lt;br /&gt;
相對來說，另一個收入的來源，便是廣告！&lt;br /&gt;
&lt;br /&gt;
島民聽到很多朋友反應，廣告真的很難賺！！靠廣告怎麼活&lt;br /&gt;
&lt;br /&gt;
確實如此，廣告的點擊率平均大概是1%，&lt;br /&gt;
&lt;br /&gt;
再加上APP上廣告收益沒有網頁廣告來的多&lt;br /&gt;
&lt;br /&gt;
以島民的經驗來看，admob(Google)大約0.005~0.03美元每則點擊&lt;br /&gt;
&lt;br /&gt;
而網頁廣告adsense(Google)大約0.17~0.3每則點擊&lt;br /&gt;
&lt;br /&gt;
沒看錯，就是有差這麼多&lt;br /&gt;
&lt;br /&gt;
所以在APP上，要靠廣告收入來賺零用錢&lt;br /&gt;
&lt;br /&gt;
收入多少的關鍵是「&lt;span style=&quot;color: red;&quot;&gt;量&lt;/span&gt;」&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------&lt;br /&gt;
在Corona的世界，官方在API內支援的廣告平台是&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;inneractive&lt;/li&gt;
&lt;li&gt;inmobi&lt;/li&gt;
&lt;/ul&gt;
我稍後介紹，實際上此兩平台給的revenue(收益)..比admob還少...&lt;br /&gt;
&lt;br /&gt;
島民在收集使用的開發者的資訊和自己使用的感想後的心得&lt;br /&gt;
&lt;br /&gt;
admob算是最穩定的，而且其fill rate(廣告出現數/廣告要求數)也算是滿高的，&lt;br /&gt;
&lt;br /&gt;
admob 廣告在手機上大約是長這樣&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/AVvXsEjJxgSbdNynHGjK242qNAe1foxSILwakgKLsBNzixgPR5XMaK7lmWbvbvsYDtpZ26rY85ZAE7qJZtAzpsymFLbtZyBfYwjKqp-Dv1q3wd4-AVkAEUJY0geMzj24BuPWqmaJP7ZfpVm2V9h6/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-14+%E4%B8%8B%E5%8D%887.16.57.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;53&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJxgSbdNynHGjK242qNAe1foxSILwakgKLsBNzixgPR5XMaK7lmWbvbvsYDtpZ26rY85ZAE7qJZtAzpsymFLbtZyBfYwjKqp-Dv1q3wd4-AVkAEUJY0geMzj24BuPWqmaJP7ZfpVm2V9h6/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-14+%E4%B8%8B%E5%8D%887.16.57.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;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhExwpiu3SRL_ISYSeOIE6B6tte-5Tgk39fdnPKSKtuHnMC0IQgNwCryJyLL-I6d5NcPZl3x0dODYXU8qecjrB_UeiXhEsRbteJBOVtcombspXXsLMAYgLaSOObZNQaVypaFWT50GMDmzEx/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-14+%E4%B8%8B%E5%8D%887.43.03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;53&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhExwpiu3SRL_ISYSeOIE6B6tte-5Tgk39fdnPKSKtuHnMC0IQgNwCryJyLL-I6d5NcPZl3x0dODYXU8qecjrB_UeiXhEsRbteJBOVtcombspXXsLMAYgLaSOObZNQaVypaFWT50GMDmzEx/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-14+%E4%B8%8B%E5%8D%887.43.03.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
左下角有個(i)的廣告banner的就是admob的廣告&lt;br /&gt;
&lt;br /&gt;
下表是使用admob的廣告收益，可看出每次點擊的收入大約在0.005~0.03之間&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/AVvXsEjPHqKiuD9Xyi0hFc7CmSv0r-u93pfs7DFb1ab6cIYP_38oU_x_wtpdMVEbSRKrkA9HaoJuFBRsttXAHOuwFHxXGf3TmCm64aKGFmPCd6Kj_dKt408-Xbi5MHXfovuKTcj7sSb0T6YSRg9L/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-14+%E4%B8%8B%E5%8D%887.41.25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPHqKiuD9Xyi0hFc7CmSv0r-u93pfs7DFb1ab6cIYP_38oU_x_wtpdMVEbSRKrkA9HaoJuFBRsttXAHOuwFHxXGf3TmCm64aKGFmPCd6Kj_dKt408-Xbi5MHXfovuKTcj7sSb0T6YSRg9L/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-14+%E4%B8%8B%E5%8D%887.41.25.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
使用google admob的好處是&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;全世界任何地方都有相對區域的廣告&lt;/li&gt;
&lt;li&gt;不用擔心廣告Server出現問題導致廣告出不來之情形(此點非常重要，影響穩定收益)&lt;/li&gt;
&lt;li&gt;不用擔心付不出錢(金主是google)，每月固定付款（可選paypal or 美金戶頭)&lt;/li&gt;
&lt;/ul&gt;
相對的壞處是&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;不支援admob SDK(Corona 目前不支援)&lt;/li&gt;
&lt;li&gt;有些點擊會失效(因為非native SDK)&lt;/li&gt;
&lt;li&gt;收入不穩定(0.005~0.03的range 過大)&lt;/li&gt;
&lt;/ul&gt;
那為什麼不支援呢？官方回答有在計劃開發中了，至於release時間...未定...&lt;br /&gt;
&lt;br /&gt;
所以現在要使用admob必須使用開發者&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Deniza&lt;/span&gt;&lt;/b&gt; 的 &lt;a href=&quot;https://github.com/deniza/Ad-Mediator-for-Corona/wiki/Documentation&quot;&gt;Admediator for Corona&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
裡面提供了許多廣告商的輪播機制&lt;br /&gt;
&lt;br /&gt;
支援&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 15px 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;background-color: yellow; color: blue;&quot;&gt;admob&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: yellow; color: blue;&quot;&gt;inmobi&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: yellow; color: blue;&quot;&gt;inneractive&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: yellow; color: blue;&quot;&gt;tapit&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: yellow; color: blue;&quot;&gt;madvertise&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: yellow; color: blue;&quot;&gt;herewead&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
在&lt;a href=&quot;https://github.com/deniza/Ad-Mediator-for-Corona/wiki/Documentation&quot;&gt;連結&lt;/a&gt;中有詳細的使用方式及程式下載，之後島民會出一篇使用方式教大家&lt;br /&gt;
&lt;br /&gt;
admob從收益多寡到使用方法在這裡都有做介紹，再來會再針對別的廣告商介紹&lt;br /&gt;
&lt;br /&gt;
來自小島</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/8473321388909473709/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/11/app-admob.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/8473321388909473709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/8473321388909473709'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/11/app-admob.html' title='App收益-廣告(Admob)'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEh3hiu6XtS9eVP7ANF7rRCSHetFVkuu5iDSDpCi1Gt6uS9BEkUj4bcC8KJK1T3O6tuzIDuqR3H4fWp0w2CHwZ6kYtiaefaW3uRIXGA0aQKZLRHBrwnm_FGCmmfQpFXHiGvwdnA9MyoM-9Kc/s72-c/image.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-3936108806880395249</id><published>2012-11-11T19:02:00.000-08:00</published><updated>2012-11-16T01:03:23.301-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP- 介紹"/><title type='text'>Corona APP-Word Smack(EA)</title><content type='html'>各位朋友，很開心的跟大家分享一件事&lt;br /&gt;
&lt;br /&gt;
這個跨平台的APP Word Smack&lt;br /&gt;
&lt;br /&gt;
是由EA所開發的！！&lt;br /&gt;
&lt;br /&gt;
很棒的是，EA也選擇了&lt;span style=&quot;color: red;&quot;&gt;Corona&lt;/span&gt;來做跨平台開發的工具！！&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
目前已發佈了&lt;a href=&quot;https://itunes.apple.com/nz/app/word-smack-free/id529918370?mt=8&quot;&gt;IOS&lt;/a&gt; 版本，android版本不久後便會發佈！&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;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/Te3dYycy0L0?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
Work Smack是一款練習英文字彙和朋友互動的APP（會的字不多可能會猜的很痛苦）&lt;br /&gt;
&lt;br /&gt;
當拼出來的字不是有效的時會會出現invalid的特效&lt;br /&gt;
&lt;br /&gt;
島民我是怎麼玩都一直出現...玩的有點失落？！ 哈哈&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/3936108806880395249/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/11/corona-app-word-smackea.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/3936108806880395249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/3936108806880395249'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/11/corona-app-word-smackea.html' title='Corona APP-Word Smack(EA)'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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-7538894016523007360.post-7191451530418867932</id><published>2012-11-09T08:28:00.001-08:00</published><updated>2012-11-15T19:11:16.404-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-基礎"/><title type='text'>新手入門Part 2-Function &amp; Listener</title><content type='html'>在Corona中，如何寫一個Function 來供程式使用？&lt;br /&gt;
&lt;br /&gt;
關鍵字就是 function&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt; function f (x, y) --定義一個叫做f的function,能夠傳入兩個參數,並回傳此兩參數相加之值
      return (x+y)
    end
print(f(2,3)) -- 5
-- 使用方法為 &lt;function name=&quot;name&quot;&gt;()
-- 如：f(2,3),f(5,6)
&lt;/function&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;上例便是一個簡單的function建制方法&lt;br /&gt;
&lt;br /&gt;
再來要建制一個Listener&lt;br /&gt;
&lt;br /&gt;
所謂的Listener 就是程式發生事件(Event)時會觸動&lt;br /&gt;
&lt;br /&gt;
通常Event 在觸發時同時會傳送一個參數(event)，讓使用者可以了解&lt;br /&gt;
&lt;br /&gt;
觸動Event Type 和 Event Target(觸發物件)&lt;br /&gt;
&lt;br /&gt;
常用到的Event 有 &lt;span style=&quot;color: red;&quot;&gt;Touch Event &amp;amp; Tap Event&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Touch Event&lt;/span&gt; 包含四種&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;began&lt;/li&gt;
&lt;li&gt;moved&lt;/li&gt;
&lt;li&gt;ended&lt;/li&gt;
&lt;li&gt;cancelled&lt;/li&gt;
&lt;/ul&gt;
首先找任一圖檔(這裡使用Icon.png)，在程式中加入以下程式碼&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local object = display.newImage( &quot;Icon.png&quot; ) -- 產生圖片物件
object.id = &quot;icon object&quot; -- 給予物件id名稱

local function onObjectTouch( event )
    if event.phase == &quot;began&quot; then -- 當物件開始touch
        print( &quot;Touch event began on: &quot; .. event.target.id )
    elseif event.phase == &quot;moved&quot; then --當在物件上做移動時
        print( &quot;Touch event moved on: &quot; .. event.target.id )
        
    elseif event.phase == &quot;ended&quot; then --當物件結束 touch
        print( &quot;Touch event ended on: &quot; .. event.target.id )
    end
    
    return true
end
object:addEventListener( &quot;touch&quot;, onObjectTouch ) -- 在這裡設touch 告訴系統要傾聽touch的event
&lt;/code&gt;&lt;/pre&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/AVvXsEi0lyW9X2cAKRPYLxqSx29iPWA4sPXYTJdwMxwZxYIQeiHlfvKMvOqcdJxNHd5LmkS_RW-FkYinnJfmxd1fHJrOCf5Gk1KBGBSXgSnGoNX8ArsIyZkNvPLjmgZ19nRxJt8JM9Px2np4r93v/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-09+%E4%B8%8B%E5%8D%8811.49.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/AVvXsEigwNQ9AVrfpGq0EiaFhyphenhyphenu_i7OtpsMD2SPWK47eAsR5QVct8iINOJsX08h99M-ENI-L66QJUYWx1HRMZ410IoasHLYt0p84Dh1QNDTC8WQwEsE6-6Ei-mZH3KiuyYKLP27qBym8o8UF0DKR/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-09+%E4%B8%8B%E5%8D%8811.50.07.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigwNQ9AVrfpGq0EiaFhyphenhyphenu_i7OtpsMD2SPWK47eAsR5QVct8iINOJsX08h99M-ENI-L66QJUYWx1HRMZ410IoasHLYt0p84Dh1QNDTC8WQwEsE6-6Ei-mZH3KiuyYKLP27qBym8o8UF0DKR/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-09+%E4%B8%8B%E5%8D%8811.50.07.png&quot; /&gt;&lt;/a&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0lyW9X2cAKRPYLxqSx29iPWA4sPXYTJdwMxwZxYIQeiHlfvKMvOqcdJxNHd5LmkS_RW-FkYinnJfmxd1fHJrOCf5Gk1KBGBSXgSnGoNX8ArsIyZkNvPLjmgZ19nRxJt8JM9Px2np4r93v/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-09+%E4%B8%8B%E5%8D%8811.49.54.png&quot; width=&quot;185&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
觸碰螢幕上圖片時會出現如右圖之文字&lt;br /&gt;
&lt;br /&gt;
相較&lt;span style=&quot;color: red;&quot;&gt;Touch&lt;/span&gt; &amp;nbsp;Event，&lt;span style=&quot;color: red;&quot;&gt;Tap&lt;/span&gt; Event 只有一種&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint &quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local obj = display.newImage( &quot;Icon.png&quot; )

local function onObjectTap( event )
    print( event.name,event.numTaps ) --可判斷tap做了幾次，支援1 &amp;amp; 2
end

obj:addEventListener( &quot;tap&quot;, onObjectTap )
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAvJI5x0NjbPFoFKmwIL9UhXCCr51SGTIrYL24DMp-dY-PXJ9ZZlD0Eptemnts_IqOxs6WaeyU6EgChNq4xg16Tvj60RssL9zR3yJeTkI1TWTj7tQYt_zITCqrlSPFV_EaIGjdiXX60kdr/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-10+%E4%B8%8A%E5%8D%8812.10.10.png&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;54&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAvJI5x0NjbPFoFKmwIL9UhXCCr51SGTIrYL24DMp-dY-PXJ9ZZlD0Eptemnts_IqOxs6WaeyU6EgChNq4xg16Tvj60RssL9zR3yJeTkI1TWTj7tQYt_zITCqrlSPFV_EaIGjdiXX60kdr/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-10+%E4%B8%8A%E5%8D%8812.10.10.png&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;點擊後出現print&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0lyW9X2cAKRPYLxqSx29iPWA4sPXYTJdwMxwZxYIQeiHlfvKMvOqcdJxNHd5LmkS_RW-FkYinnJfmxd1fHJrOCf5Gk1KBGBSXgSnGoNX8ArsIyZkNvPLjmgZ19nRxJt8JM9Px2np4r93v/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-11-09+%25E4%25B8%258B%25E5%258D%258811.49.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;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0lyW9X2cAKRPYLxqSx29iPWA4sPXYTJdwMxwZxYIQeiHlfvKMvOqcdJxNHd5LmkS_RW-FkYinnJfmxd1fHJrOCf5Gk1KBGBSXgSnGoNX8ArsIyZkNvPLjmgZ19nRxJt8JM9Px2np4r93v/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-11-09+%25E4%25B8%258B%25E5%258D%258811.49.54.png&quot; width=&quot;185&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
以上就是簡單的Listener 實作方法&lt;br /&gt;
&lt;br /&gt;
就Touch &amp;amp; Tap兩個Event 就能夠做出很豐富的操作介面嚕&lt;br /&gt;
&lt;br /&gt;
來自小島</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/7191451530418867932/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/11/part-2-function-listener.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/7191451530418867932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/7191451530418867932'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/11/part-2-function-listener.html' title='新手入門Part 2-Function &amp; Listener'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEigwNQ9AVrfpGq0EiaFhyphenhyphenu_i7OtpsMD2SPWK47eAsR5QVct8iINOJsX08h99M-ENI-L66QJUYWx1HRMZ410IoasHLYt0p84Dh1QNDTC8WQwEsE6-6Ei-mZH3KiuyYKLP27qBym8o8UF0DKR/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-09+%E4%B8%8B%E5%8D%8811.50.07.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-7378903915981847477</id><published>2012-11-08T18:07:00.000-08:00</published><updated>2012-11-16T01:03:32.407-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP- 介紹"/><title type='text'>Corona App-Office Politics</title><content type='html'>&lt;span style=&quot;color: red; font-size: large;&quot;&gt;Office Politics&lt;/span&gt;是由The Little Drummer Boy&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
-兩位全職+三位Free time組成的新加坡的工作室使用&lt;span style=&quot;color: red;&quot;&gt;Corona&lt;/span&gt;作開發&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
同時發佈有&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://itunes.apple.com/us/app/office-master-backstab/id541533918?mt=8&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;iOS&lt;/span&gt;&lt;/a&gt; &lt;/span&gt;&amp;amp;&lt;span style=&quot;color: red;&quot;&gt; &lt;a href=&quot;https://play.google.com/store/apps/details?id=sg.ldb.opbackstab&amp;amp;hl=zh_TW&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Android&lt;/span&gt;&lt;/a&gt; &lt;/span&gt;版本&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;遊戲玩法為當員工背對你的時候，&lt;/div&gt;
&lt;/div&gt;
&lt;div&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;
若是未點擊，當員工轉身就會對你丟紙團&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
當然最後就是要挑戰討人厭的BOSS（老闆)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&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://0.gvt0.com/vi/_XqRXUpRttQ/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/_XqRXUpRttQ&amp;fs=1&amp;source=uds&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;embed width=&quot;320&quot; height=&quot;266&quot;  src=&quot;http://www.youtube.com/v/_XqRXUpRttQ&amp;fs=1&amp;source=uds&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
此遊戲是Free Game,&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
但是遊戲內有收費道具(in-App Purchase)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
想了解Corona做出來的遊戲能做成什麼樣子可以參考此遊戲喔：）&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
來自小島&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/7378903915981847477/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/11/corona-app-office-politics.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/7378903915981847477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/7378903915981847477'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/11/corona-app-office-politics.html' title='Corona App-Office Politics'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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-7538894016523007360.post-4117872024815039370</id><published>2012-11-06T21:14:00.002-08:00</published><updated>2012-11-15T19:16:47.293-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-API"/><title type='text'>Corona Widget-Switch &amp; Segmented control</title><content type='html'>&lt;span style=&quot;color: red; font-size: large;&quot;&gt;Widget&lt;/span&gt; 是corona 一個很重要的工具&lt;br /&gt;
&lt;br /&gt;
它提供開發者簡易的使用客製UI&lt;br /&gt;
&lt;br /&gt;
像是button,picker,scrollview,tableview,tabbar,slider等&lt;br /&gt;
&lt;br /&gt;
欲知詳細情形可參考&lt;a href=&quot;http://docs.coronalabs.com/api/library/widget/index.html&quot;&gt;文件&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
在這裡要介紹的是Build 947後新增的兩個widget - &lt;span style=&quot;color: red;&quot;&gt;Switch&lt;/span&gt; &amp;amp; &lt;span style=&quot;color: red;&quot;&gt;Segmented Control&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
(請記得您的開發版本要是947版本以上才可以使用)&lt;br /&gt;
&lt;br /&gt;
Switch Widget提供了以下三個種類&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/AVvXsEjKmyWNK-6K5LPZ5sX4WqCMRX9k-9N3QSR4QfE7iYh_I4AEvSYdGb7Bf4KT_4DxH_5w4QGKv2EjT6idWSO1_JtnTC_KQZ1EWxGd60oVdgDtw8A98D0tYiRHZo5tTBgKH427REShdAXcXWs8/s1600/widget1-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;75&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKmyWNK-6K5LPZ5sX4WqCMRX9k-9N3QSR4QfE7iYh_I4AEvSYdGb7Bf4KT_4DxH_5w4QGKv2EjT6idWSO1_JtnTC_KQZ1EWxGd60oVdgDtw8A98D0tYiRHZo5tTBgKH427REShdAXcXWs8/s320/widget1-2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Segmented Control 示意如下&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/AVvXsEiluaCNOp1zGxCdI4pQvfQULiHYPpkIVzvJ3vdkK4hWNtYpb8b8jATDI286UtC5CBeHyej6_8pzpphXgV5PGjHAAc9sw3Rpapzf8uISGM10T-cBnSeXJ8K7QerHdK0dozXA1dlT_WUgkoaA/s1600/widget1-3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;73&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiluaCNOp1zGxCdI4pQvfQULiHYPpkIVzvJ3vdkK4hWNtYpb8b8jATDI286UtC5CBeHyej6_8pzpphXgV5PGjHAAc9sw3Rpapzf8uISGM10T-cBnSeXJ8K7QerHdK0dozXA1dlT_WUgkoaA/s320/widget1-3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;是不是很眼熟很常見呢：），沒錯，如果您是IOS使用者的話，這些元件一定多少都有見過，&lt;br /&gt;
&lt;br /&gt;
目前Corona 針對IOS情境提供Widget(Android情境將會在之後發佈)&lt;br /&gt;
&lt;br /&gt;
要使用widget的方法如下：&lt;br /&gt;
&lt;br /&gt;
第一步&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local widget = require( &quot;widget&quot; ) --必須先將library widget匯入
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
第二步&lt;br /&gt;
&lt;br /&gt;
需要將CoronaSDK/SampleCode/Interface/WidgetDemo 資料夾中&lt;br /&gt;
&lt;br /&gt;
theme_ios.lua 及widget_os資料夾copy到您的main 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/AVvXsEhqmAkUgr1z5g-dKSqG4q3pbErHl8J0gxEJSTJnZPUQ2WMXc9zi5LIrre26JsaS3lZneHnxySqlVmHKOmmrcFeRkK4zAHkW2PyeBWbCi9TT-K3B0TIkvOk6_Nl-NwiWUlYF76orEtFrXZ4O/s1600/widget1-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;41&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqmAkUgr1z5g-dKSqG4q3pbErHl8J0gxEJSTJnZPUQ2WMXc9zi5LIrre26JsaS3lZneHnxySqlVmHKOmmrcFeRkK4zAHkW2PyeBWbCi9TT-K3B0TIkvOk6_Nl-NwiWUlYF76orEtFrXZ4O/s400/widget1-1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
第三步&lt;br /&gt;
&lt;br /&gt;
要設定widget的情境(設定為ios之情境)&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;widget.setTheme( &quot;theme_ios&quot; )
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
完成了前面三步就可以開始使用widget囉&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;Switch&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
在使用Switch之前，先定義一個Event Listener讓程式可以接收判斷Switch的狀態&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local function onSwitchPress( event )
   local switch = event.target  --event.target references the switch object
   local response = switch.id..&quot; is on: &quot;..tostring( switch.isOn )
   print( response ) --印出ID及狀態，如下
   --My radio button widget is on: true 
   --My checkbox widget is on: true 
   --My on/off switch widget is on: true 
   switch.text:setText( tostring( switch.isOn ) ) --設置switch上方文字,此處需注意on/off switch不需要設置
end
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
再來撰寫三種switch的程式碼&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local checkbox = widget.newSwitch
{
   left = 60,
   top = 230,
   style = &quot;checkbox&quot;,
   id = &quot;My checkbox widget&quot;,
   initialSwitchState = false,
   onPress = onSwitchPress
}

-- Text to show the on/off switch state
checkbox.text = display.newEmbossedText( tostring( checkbox.isOn ), 0, 0, native.systemFontBold, 18 )
checkbox.text.x = checkbox.x
checkbox.text.y = checkbox.y - checkbox.text.contentHeight

local radioButton = widget.newSwitch
{
   left = 150,
   top = 230,
   style = &quot;radio&quot;,
   id = &quot;My radio button widget&quot;,
   initialSwitchState = false,
   onPress = onSwitchPress
}

-- Text to show the on/off switch state
radioButton.text = display.newEmbossedText( tostring( radioButton.isOn ), 0, 0, native.systemFontBold, 18 )
radioButton.text.x = radioButton.x
radioButton.text.y = radioButton.y - radioButton.text.contentHeight

local onOffSwitch = widget.newSwitch
{
   left = 250,
   top = 230,
   id = &quot;My on/off switch widget&quot;,
   initialSwitchState = true,
   onRelease = onSwitchPress
}
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
newSwitch各參數代表&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;left:widget距螢幕左方距離(pixel)&lt;/li&gt;
&lt;li&gt;top:widget距螢幕上方距離(pixel)&lt;/li&gt;
&lt;li&gt;style: radio/checkbox(default on/off switch)&lt;/li&gt;
&lt;li&gt;id:widget ID,用來識別widget 身份&lt;/li&gt;
&lt;li&gt;initialSwitchState:初始值，可以true/false,預設為false&lt;/li&gt;
&lt;li&gt;onRelease/onPress:使用者觸壓時觸發Event&lt;/li&gt;
&lt;/ul&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/AVvXsEjligFt2VeG8xYYdfbkP2wKRTXVmQqTPOXjQ_IGLBkUSTBd5PWGGoCZEhMdzCKXeeBufLVLE9otjvwdJPOq04pXG7ma46CfoEhv44Q0kgVBsOc7Awa1LfH5sjR8Y3GS2voB6TD9jZAItS3S/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-07+%E4%B8%8B%E5%8D%881.08.25.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/AVvXsEjligFt2VeG8xYYdfbkP2wKRTXVmQqTPOXjQ_IGLBkUSTBd5PWGGoCZEhMdzCKXeeBufLVLE9otjvwdJPOq04pXG7ma46CfoEhv44Q0kgVBsOc7Awa1LfH5sjR8Y3GS2voB6TD9jZAItS3S/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-07+%E4%B8%8B%E5%8D%881.08.25.png&quot; width=&quot;216&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;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;Segmented Control&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
在使用Segmented Control 之前，同樣的需要一個EventListener&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local function onControlPress( event )
   local target = event.target
   print( &quot;Segment Label is:&quot;, target.segmentLabel ) --segmentLabel用來判斷點選的文字
   print( &quot;Segment Number is:&quot;, target.segmentNumber ) --segmentNumber用來判斷點選的位置
end&lt;/code&gt;&lt;/pre&gt;
再來建立Segmented Control 的widget&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local segmentedControl = widget.newSegmentedControl
{
   left = 65,
   top = 110,
   segments = { &quot;s1&quot;, &quot;s2&quot;, &quot;s3&quot;, &quot;s4&quot; },
   segmentWidth = 50,
   defaultSegment = 4,
   onPress = onControlPress
}&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
newSwitch各參數代表&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;left:widget距螢幕左方距離(pixel)&lt;/li&gt;
&lt;li&gt;top:widget距螢幕上方距離(pixel)&lt;/li&gt;
&lt;li&gt;segments:segments的陣列&lt;/li&gt;
&lt;li&gt;segmentWidth:每個segment的寬度，預設為50 pixel&lt;/li&gt;
&lt;li&gt;defaultSegment:初始選擇Segment位置&lt;/li&gt;
&lt;li&gt;onRelease/onPress:使用者觸壓時觸發Event&lt;/li&gt;
&lt;/ul&gt;
執行結果如下&lt;br /&gt;
&lt;ul&gt;
&lt;/ul&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/AVvXsEisJ8rnDGWP2DPk8r6qwYCXbfIqjkbCsPxHfdZI1qHPKm06JNzZ7qFmpZT-G8QN4KYWu-9C27zPscNtHWQa4YiPprRjErBjag7ksvzp6yR7haPCXFrm7UkB9985zAecylApoRW9fo0gcq-M/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-07+%E4%B8%8B%E5%8D%881.09.50.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/AVvXsEisJ8rnDGWP2DPk8r6qwYCXbfIqjkbCsPxHfdZI1qHPKm06JNzZ7qFmpZT-G8QN4KYWu-9C27zPscNtHWQa4YiPprRjErBjag7ksvzp6yR7haPCXFrm7UkB9985zAecylApoRW9fo0gcq-M/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-07+%E4%B8%8B%E5%8D%881.09.50.png&quot; width=&quot;216&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今天介紹的是很實用的widget呢&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Corona在widget這塊未來將會釋放更多的元件讓大家使用，敬請期待吧&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
島民 也會持續Follow最新的更新來告訴大家&lt;/div&gt;
&lt;div&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;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local widget = require( &quot;widget&quot; )
widget.setTheme( &quot;theme_ios&quot; )
display.newRect(0,0,display.contentWidth,display.contentHeight)
local function onSwitchPress( event )
   local switch = event.target  --event.target references the switch object
   local response = switch.id..&quot; is on: &quot;..tostring( switch.isOn )
   print( response )
   switch.text:setText( tostring( switch.isOn ) )
end

local checkbox = widget.newSwitch
{
   left = 60,
   top = 230,
   style = &quot;checkbox&quot;,
   id = &quot;My checkbox widget&quot;,
   initialSwitchState = false,
   onPress = onSwitchPress
}

-- Text to show the on/off switch state
checkbox.text = display.newEmbossedText( tostring( checkbox.isOn ), 0, 0, native.systemFontBold, 18 )
checkbox.text.x = checkbox.x
checkbox.text.y = checkbox.y - checkbox.text.contentHeight

local radioButton = widget.newSwitch
{
   left = 150,
   top = 230,
   style = &quot;radio&quot;,
   id = &quot;My radio button widget&quot;,
   initialSwitchState = false,
   onPress = onSwitchPress
}

-- Text to show the on/off switch state
radioButton.text = display.newEmbossedText( tostring( radioButton.isOn ), 0, 0, native.systemFontBold, 18 )
radioButton.text.x = radioButton.x
radioButton.text.y = radioButton.y - radioButton.text.contentHeight

local onOffSwitch = widget.newSwitch
{
   left = 250,
   top = 230,
   id = &quot;My on/off switch widget&quot;,
   initialSwitchState = true,
   onRelease = onSwitchPress
}

local function onControlPress( event )
   local target = event.target
   print( &quot;Segment Label is:&quot;, target.segmentLabel )
   print( &quot;Segment Number is:&quot;, target.segmentNumber )
end
local segmentedControl = widget.newSegmentedControl
{
   left = 65,
   top = 110,
   segments = { &quot;s1&quot;, &quot;s2&quot;, &quot;s3&quot;, &quot;s4&quot; },
   segmentWidth = 50,
   defaultSegment = 4,
   onPress = onControlPress
}&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/4117872024815039370/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/11/corona-widget-switch-segmented-control.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/4117872024815039370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/4117872024815039370'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/11/corona-widget-switch-segmented-control.html' title='Corona Widget-Switch &amp; Segmented control'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEjKmyWNK-6K5LPZ5sX4WqCMRX9k-9N3QSR4QfE7iYh_I4AEvSYdGb7Bf4KT_4DxH_5w4QGKv2EjT6idWSO1_JtnTC_KQZ1EWxGd60oVdgDtw8A98D0tYiRHZo5tTBgKH427REShdAXcXWs8/s72-c/widget1-2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-2159768521527770411</id><published>2012-10-31T18:54:00.002-07:00</published><updated>2012-11-15T19:18:20.329-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-Corona"/><title type='text'>Corona SDK 介紹</title><content type='html'>&lt;a href=&quot;http://www.coronalabs.com/products/corona-sdk/&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Corona SDK&lt;/span&gt;&lt;/a&gt; 是由兩位從Adobe離職的員工所創立的，&lt;br /&gt;
&lt;br /&gt;
使用 Corona SDK所寫出的程式碼能夠同時在&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Android,IOS,Nook,Kindle Fire&lt;/span&gt;&amp;nbsp;平台同時發佈&lt;br /&gt;
&lt;br /&gt;
能夠確實的減少程式開發時間&lt;br /&gt;
&lt;br /&gt;
小島 正式接觸到Corona 是因為一則新聞&lt;br /&gt;
&lt;br /&gt;
一位14歲的小朋友寫出了一個&lt;a href=&quot;https://itunes.apple.com/tw/app/bubble-ball/id412089940?l=zh&amp;amp;mt=8&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Bubble Ball&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;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/0mTvxGuokGo?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
您相信嗎？一位14歲的小朋友，沒有程式基礎&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;藉由Corona 也能寫出這樣一個富有創意性的APP&lt;br /&gt;
&lt;br /&gt;
當時還&lt;span style=&quot;color: red;&quot;&gt;打敗憤怒鳥&lt;/span&gt;成為下載排行第一名的APP呢&lt;br /&gt;
&lt;br /&gt;
Corona 是使用Lua程式語言來做開發，&lt;br /&gt;
&lt;br /&gt;
相對於Android(Java),iOS(Object-C)，&lt;br /&gt;
&lt;br /&gt;
學起來是簡單又迅速的，小島有幾個朋友是沒有程式基礎的，&lt;br /&gt;
&lt;br /&gt;
也在APP的領域裡用Corona打出了一片天下，&lt;br /&gt;
&lt;br /&gt;
Corona擁有豐富的論壇資源&lt;br /&gt;
&lt;br /&gt;
有許多員工會不時在論壇回應開發者所提出的問題&lt;br /&gt;
&lt;br /&gt;
再加上具有迅速的開發及&lt;a href=&quot;http://developer.coronalabs.com/content/bug-submission&quot;&gt;BUG 回報系統&lt;/a&gt;，也能夠在官網上看到最新的BUG處理狀況&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/AVvXsEiZq8cQcZj-eSpNcas7YOE2zwJIQuBabaCTouSMpODscR9ae6FH9k8TS31nLJ2V_fZKqmMAorgAKKhymlXtVifzDrnOgat20sv1BRCcpZwlEtM6_AItDPqsE9a2o2Lp7wQafhHRKkjzF2Qg/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-01+%E4%B8%8A%E5%8D%889.29.44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZq8cQcZj-eSpNcas7YOE2zwJIQuBabaCTouSMpODscR9ae6FH9k8TS31nLJ2V_fZKqmMAorgAKKhymlXtVifzDrnOgat20sv1BRCcpZwlEtM6_AItDPqsE9a2o2Lp7wQafhHRKkjzF2Qg/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-01+%E4%B8%8A%E5%8D%889.29.44.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
幾乎每週都會有一版最新的SDK&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/AVvXsEj-ba6PKJTkUTl6d2qS7lA5DAJ8YvQIrYCxVZLT58aDpl8axz3ztVQE_Si2j_qIIK3YhSck6hKnhIVwTfzNiIlQ-EKt26qYPBG1bP8gX10iHj-CWT5ncMPz6vmOlQLltiks1fTyoYSwqRFA/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-01+%E4%B8%8A%E5%8D%889.26.52.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-ba6PKJTkUTl6d2qS7lA5DAJ8YvQIrYCxVZLT58aDpl8axz3ztVQE_Si2j_qIIK3YhSck6hKnhIVwTfzNiIlQ-EKt26qYPBG1bP8gX10iHj-CWT5ncMPz6vmOlQLltiks1fTyoYSwqRFA/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-01+%E4%B8%8A%E5%8D%889.26.52.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
和開發中進度的&lt;a href=&quot;http://www.coronalabs.com/resources/roadmap/&quot;&gt;RoadMap&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/AVvXsEgubsN6w10T77qHzgGvQBqsBv7z-xcVzF4aBnfDNxiyr99V8fi4_c9ng9yIDqed8jiBcX7bULsrS6eAHT05HwWcWPZLpWyJyJeUgiYaGpur0SuhOdwbSsTloa_iT_SKgKY-g7zSnZ_O2NE9/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-01+%E4%B8%8A%E5%8D%889.33.55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgubsN6w10T77qHzgGvQBqsBv7z-xcVzF4aBnfDNxiyr99V8fi4_c9ng9yIDqed8jiBcX7bULsrS6eAHT05HwWcWPZLpWyJyJeUgiYaGpur0SuhOdwbSsTloa_iT_SKgKY-g7zSnZ_O2NE9/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-01+%E4%B8%8A%E5%8D%889.33.55.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
最強大的地方在擁有超過800個API可以使用&lt;br /&gt;
&lt;br /&gt;
許多好用實用的&lt;a href=&quot;http://docs.coronalabs.com/api/&quot;&gt;API&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
如：&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Facebook，相機控制，IAP(inner app purchase)，物理碰撞(physics)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; GameCenter，資料庫...等&lt;br /&gt;
&lt;br /&gt;
另外就是在開發期間所使用的開發版本（未付費版）&lt;br /&gt;
&lt;br /&gt;
是沒有任何限制的！！！！&lt;br /&gt;
&lt;br /&gt;
付費和未付費的差別在於付費後才能夠將APP裝在手機上做測試&lt;br /&gt;
&lt;br /&gt;
其它功能都是一樣的，這對於初次學習並且在觀望的使用者來說很重要&lt;br /&gt;
&lt;br /&gt;
相較於許多程式有30天，60天的試用期，往往還沒開發完成試用期就到了&lt;br /&gt;
&lt;br /&gt;
Corona讓您能夠確實的開發完成後，要準備發佈至App Store 時再付費即可&lt;br /&gt;
&lt;br /&gt;
台灣目前在使用Corona SDK的朋友還在少數&lt;br /&gt;
&lt;br /&gt;
但巿面上 Corona 所做出來的APP 下載數量已經超過十億人次&lt;br /&gt;
&lt;br /&gt;
喜歡的話，一起來研究Corona吧，也歡迎在這裡留下意見和問題喔！</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/2159768521527770411/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/10/corona-sdk.html#comment-form' title='16 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/2159768521527770411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/2159768521527770411'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/10/corona-sdk.html' title='Corona SDK 介紹'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEiZq8cQcZj-eSpNcas7YOE2zwJIQuBabaCTouSMpODscR9ae6FH9k8TS31nLJ2V_fZKqmMAorgAKKhymlXtVifzDrnOgat20sv1BRCcpZwlEtM6_AItDPqsE9a2o2Lp7wQafhHRKkjzF2Qg/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-11-01+%E4%B8%8A%E5%8D%889.29.44.png" height="72" width="72"/><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-2491589419391905412</id><published>2012-10-31T08:59:00.001-07:00</published><updated>2012-11-15T19:18:35.795-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-基礎"/><title type='text'>新手入門Corona Part1-圖片</title><content type='html'>在&lt;a href=&quot;http://coronaisland.blogspot.tw/2012/10/corona.html&quot;&gt;前一篇有提到Corona的學習曲線&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
其實是能夠很迅速的學會使用Corona&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
如果每個人都可以寫自已的APP&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
然後放在Android &amp;amp; App Store 好不好！？&lt;/div&gt;
&lt;div&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 GAME &amp;amp; BUSINESS APP&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;那麼跟著 小島 一步一步來&lt;/div&gt;
&lt;div&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&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Corona 是使用LUA語言，它相對Java &amp;amp; Object C來說 不是那麼嚴謹&lt;/div&gt;
&lt;div&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;
在這裡今天要教的是&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1.如何隱藏手機狀態列？&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
大家在測試的時候，記得把程式碼放在main.lua中，main.lua 是執行時的程式進入點&lt;br /&gt;
要有這個檔才能夠執行模擬器喔&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;display.setStatusBar(display.HiddenStatusBar) --隱藏狀態列

-- 預設狀態列是沒有隱藏的，可以用display.statusBarHeight 取得高度
local sb_height = display.statusBarHeight
&lt;/code&gt;&lt;/pre&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdP0mFDhvxi6f9OuCTRYG-99LHOw3AW6jTcWumBQgW1pKBjv1XCzE1Vqe1erBJ0UeGbN2cqBAx-rKLEx5Dk5oqQvs8iC1mSpkIjvP1IjpFMIXye68422tumRv_FqDb4T0TcINfDJqkjlJc/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-31+%25E4%25B8%258B%25E5%258D%258811.36.18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdP0mFDhvxi6f9OuCTRYG-99LHOw3AW6jTcWumBQgW1pKBjv1XCzE1Vqe1erBJ0UeGbN2cqBAx-rKLEx5Dk5oqQvs8iC1mSpkIjvP1IjpFMIXye68422tumRv_FqDb4T0TcINfDJqkjlJc/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-31+%25E4%25B8%258B%25E5%258D%258811.36.18.png&quot; width=&quot;182&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;預設的statusBar&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEU5GMIhvyDw-p2bTsrGj-C3gxwMTnXbOyCioov-2R4YkdyX9IxqThIkeAlO1-ujcmrZM3BWR6LUcPmlheh2-s9CS6cUkXWCstRLzWTvX-gDEXHcGy2yDcb0KcGchnPmo2RLi-u6no_VMM/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-31+%25E4%25B8%258B%25E5%258D%258811.36.08.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEU5GMIhvyDw-p2bTsrGj-C3gxwMTnXbOyCioov-2R4YkdyX9IxqThIkeAlO1-ujcmrZM3BWR6LUcPmlheh2-s9CS6cUkXWCstRLzWTvX-gDEXHcGy2yDcb0KcGchnPmo2RLi-u6no_VMM/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-31+%25E4%25B8%258B%25E5%258D%258811.36.08.png&quot; width=&quot;183&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;設取hiddenstatusBar&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
2.如何設置背景，上一個畫面是如何把圖片放到手機&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
首先要把圖片放在project 的根目錄裡&lt;/div&gt;
&lt;div&gt;
再加上這行就會把檔名為&quot;shine.png的圖片load 進來並取得圖片object 給background&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;local background = display.newImage( &quot;shine.png&quot; ) 
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
3.取得圖片後，我們可以對它做一些屬性的修改&lt;br /&gt;
像是改變圖片的位置&lt;br /&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;background.x = 20 --改變圖片x座標
background.y = 200 --改變圖片y座標
&lt;/code&gt;&lt;/pre&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB6nvAWd6-mRr1xgHbakGRbLRQ9zbUymf2JPStKpo3xozGOgOYTnlhiMEYsNnfETUa6KaspOGHwBOTjDUq4hQkkztfWNoTw2oKgz-R1XKsRVlEuE3CUAvH3vdBiTifVvEJrPJ3ffv6SlZq/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-31+%25E4%25B8%258B%25E5%258D%258811.49.09.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB6nvAWd6-mRr1xgHbakGRbLRQ9zbUymf2JPStKpo3xozGOgOYTnlhiMEYsNnfETUa6KaspOGHwBOTjDUq4hQkkztfWNoTw2oKgz-R1XKsRVlEuE3CUAvH3vdBiTifVvEJrPJ3ffv6SlZq/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-31+%25E4%25B8%258B%25E5%258D%258811.49.09.png&quot; width=&quot;179&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;x=20,y=200是以圖片中心點來看喔&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
讓圖片消失
&lt;br /&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;background.isVisible = false -- 讓圖片消失
background.isVisible = true --讓圖片出現
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
移除圖片
&lt;br /&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;background:removeSelf() --將自已移除
background = nil --加上這行讓系統釋放記憶體，是個好習慣喔
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
學到這裡，您已經能夠具備把圖片放在手機裡的能力了，很多進階的應用都是從這裡開始的。
&lt;br /&gt;
下回教大家再進階一點的圖片處理
&lt;br /&gt;
&lt;br /&gt;
來自小島
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/2491589419391905412/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/10/corona-part1.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/2491589419391905412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/2491589419391905412'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/10/corona-part1.html' title='新手入門Corona Part1-圖片'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEgdP0mFDhvxi6f9OuCTRYG-99LHOw3AW6jTcWumBQgW1pKBjv1XCzE1Vqe1erBJ0UeGbN2cqBAx-rKLEx5Dk5oqQvs8iC1mSpkIjvP1IjpFMIXye68422tumRv_FqDb4T0TcINfDJqkjlJc/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-31+%25E4%25B8%258B%25E5%258D%258811.36.18.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-5348921257329550809</id><published>2012-10-29T05:56:00.002-07:00</published><updated>2012-11-15T19:18:51.752-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-進階"/><title type='text'>Corona使用自訂字型</title><content type='html'>APP在開發的時候，&lt;br /&gt;
&lt;div&gt;
通常會使用Device 的預設字型&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;native.systemFont&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
來顯示中英文&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums&amp;gt;&amp;lt;code =&quot; language-=&quot;language-&quot;&gt;display.newText( &quot;一二三四五六七八九ㄅㄆㄇㄈㄉㄊㄎㄋㄏ，嗨你好&quot;, 0, 100,320,480,native.systemFont,40)&lt;code&gt;&lt;/code&gt;&lt;/pre&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/AVvXsEjnsq3gB3MaNwZ6ulvZjGxD0NvmuyaZcO2wzSw5eITEKyDNN9cV5u4Xkb-DwmHrNXJueCZKrUGPAB2ukzKJkBfb4jtSZ08ag36kyNAQDA8xp-XSjCd2sJBMI18jiRI8YbcBLbPVXeUm4Q19/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-29+%E4%B8%8B%E5%8D%888.08.43.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/AVvXsEjnsq3gB3MaNwZ6ulvZjGxD0NvmuyaZcO2wzSw5eITEKyDNN9cV5u4Xkb-DwmHrNXJueCZKrUGPAB2ukzKJkBfb4jtSZ08ag36kyNAQDA8xp-XSjCd2sJBMI18jiRI8YbcBLbPVXeUm4Q19/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-29+%E4%B8%8B%E5%8D%888.08.43.png&quot; width=&quot;210&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
在識別度上是完全沒有問題的，&lt;/div&gt;
&lt;div&gt;
只是....好像太&lt;span style=&quot;color: red;&quot;&gt;normal&lt;/span&gt;了？&lt;/div&gt;
&lt;div&gt;
這樣不就跟大家的字型都一樣了嗎？&lt;/div&gt;
&lt;div&gt;
也許大部份的開發者都是使用預設字型。。。&lt;/div&gt;
&lt;div&gt;
但....ㄟ....好像沒什麼美感！！！&lt;/div&gt;
&lt;div&gt;
我好好的一個遊戲APP，用了一個這樣 沒有美感的字體...好像很扣分&lt;/div&gt;
&lt;div&gt;
又不想要每個字都作成PNG圖檔&lt;/div&gt;
&lt;div&gt;
再用&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;display.newImage().&lt;/span&gt;..來嵌入，怎麼辦？（光做0~9就快自殺了)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
如果你剛好有找到喜歡的字型，有字型檔&lt;/div&gt;
&lt;div&gt;
其實把字型檔放到corona的project root底下&lt;/div&gt;
&lt;div&gt;
接著做下面這個步驟的設定&lt;/div&gt;
&lt;div&gt;
將這段文字加在&lt;span style=&quot;color: red;&quot;&gt;build.setting&lt;/span&gt;中&lt;/div&gt;
&lt;div&gt;
找出plist後，修改如下&lt;br /&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;plist = {
    UIAppFonts = 
    {
        &quot;AdobeFanHeitiStd-Bold.otf&quot;  --字體檔名
    },
}
&lt;/code&gt;&lt;/pre&gt;
接下來要找出匯入的字型的名字&lt;/div&gt;
&lt;div&gt;
怎麼找呢？&lt;/div&gt;
&lt;div&gt;
在main.lua中&lt;/div&gt;
&lt;div&gt;
加上這段程式碼&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;local sysFonts = native.getFontNames()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;for k,v in pairs(sysFonts) do print(v) end&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
執行後就會在console中print出一堆系統支援的字型&lt;/div&gt;
&lt;div&gt;
找到我們要的字體後&lt;span style=&quot;color: red;&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/AVvXsEj2FQ1DOx4tMsYTdntNqss7rEy-Mjci6TRkS1dVVi_TIgRBHMsjMWZUmahnoPuoGmAtpEl8ONTiwpnJ0CZgNC-P0mM0Mfmsqv-UQsnP_JMWLlpsM2c-yhZCTZcaoctOq5ptKUYibGyTQ0iR/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-29+%E4%B8%8B%E5%8D%888.48.21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 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/AVvXsEj2FQ1DOx4tMsYTdntNqss7rEy-Mjci6TRkS1dVVi_TIgRBHMsjMWZUmahnoPuoGmAtpEl8ONTiwpnJ0CZgNC-P0mM0Mfmsqv-UQsnP_JMWLlpsM2c-yhZCTZcaoctOq5ptKUYibGyTQ0iR/s400/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-29+%E4%B8%8B%E5%8D%888.48.21.png&quot; width=&quot;222&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
我們就可以使用了&lt;/div&gt;
&lt;div&gt;
再來同樣的字我們再跑一次&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;&lt;code languages-=&quot;languages-&quot;&gt;display.newText( &quot;一二三四五六七八九ㄅㄆㄇㄈㄉㄊㄎㄋㄏ，嗨你好&quot;, 0, 100,320,480,&quot;AdobeFanHeitiStd-Bold&quot;,40)
&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnsq3gB3MaNwZ6ulvZjGxD0NvmuyaZcO2wzSw5eITEKyDNN9cV5u4Xkb-DwmHrNXJueCZKrUGPAB2ukzKJkBfb4jtSZ08ag36kyNAQDA8xp-XSjCd2sJBMI18jiRI8YbcBLbPVXeUm4Q19/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-29+%25E4%25B8%258B%25E5%258D%25888.08.43.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnsq3gB3MaNwZ6ulvZjGxD0NvmuyaZcO2wzSw5eITEKyDNN9cV5u4Xkb-DwmHrNXJueCZKrUGPAB2ukzKJkBfb4jtSZ08ag36kyNAQDA8xp-XSjCd2sJBMI18jiRI8YbcBLbPVXeUm4Q19/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-10-29+%25E4%25B8%258B%25E5%258D%25888.08.43.png&quot; width=&quot;209&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;原始字型&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIke70MSXcAM58pVuJIrxtggEB62uXaiK9CdtnS-7xUbQBVyAezW1PpFxU2kM27sn1PtRd1cB7zHPJT8J9YQLMc-Rv_Vib18YO6PpXNTEUoSZk7-9zTJk1dXdaBdfcN7jhyXNaYBRrypbO/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-29+%E4%B8%8B%E5%8D%888.53.50.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIke70MSXcAM58pVuJIrxtggEB62uXaiK9CdtnS-7xUbQBVyAezW1PpFxU2kM27sn1PtRd1cB7zHPJT8J9YQLMc-Rv_Vib18YO6PpXNTEUoSZk7-9zTJk1dXdaBdfcN7jhyXNaYBRrypbO/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-29+%E4%B8%8B%E5%8D%888.53.50.png&quot; width=&quot;212&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;新增字型&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
此時跑出來的結果，就變成我們要的字體&lt;/div&gt;
&lt;div&gt;
其實這樣就省了很多工了，也可以讓APP能夠用更適合的字型囉：D&lt;/div&gt;
&lt;div&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;
來自小島&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/5348921257329550809/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/10/corona_29.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/5348921257329550809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/5348921257329550809'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/10/corona_29.html' title='Corona使用自訂字型'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEjnsq3gB3MaNwZ6ulvZjGxD0NvmuyaZcO2wzSw5eITEKyDNN9cV5u4Xkb-DwmHrNXJueCZKrUGPAB2ukzKJkBfb4jtSZ08ag36kyNAQDA8xp-XSjCd2sJBMI18jiRI8YbcBLbPVXeUm4Q19/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-29+%E4%B8%8B%E5%8D%888.08.43.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-706296680152715656</id><published>2012-10-27T21:13:00.002-07:00</published><updated>2012-11-15T19:19:41.077-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP-開發-Corona"/><title type='text'>Corona學習效果</title><content type='html'>在台灣這塊土地上&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;APP開發者&lt;/span&gt;說多不多 說少不少&lt;/div&gt;
&lt;div&gt;
大部份在為公司行號工作者&lt;/div&gt;
&lt;div&gt;
使用的多是原生語言&lt;/div&gt;
&lt;div&gt;
如 Object-C (IOS)&lt;/div&gt;
&lt;div&gt;
or Java (Android)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
若是有能力也能夠使用原生語言是最好不過的&lt;/div&gt;
&lt;div&gt;
優勢如下：&lt;/div&gt;
&lt;div&gt;
能夠使用&lt;span style=&quot;color: red;&quot;&gt;native library&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
光是能夠使用google &amp;amp; apple 所提供的library&lt;/div&gt;
&lt;div&gt;
便能夠增加很多很酷炫的功能&lt;/div&gt;
&lt;div&gt;
尤其在作業系統改版後新增的功能&lt;/div&gt;
&lt;div&gt;
絕對能讓各位開發者走在時代的尖端&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
如果要發佈兩個版本&lt;/div&gt;
&lt;div&gt;
等於是要搞定兩個程式語言和兩個APP擁有同樣的功能&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今天 IOS出了很炫的&lt;span style=&quot;color: red;&quot;&gt;PASSBOOK&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
那android呢？可以在Android 上使用Passbook嗎？&lt;/div&gt;
&lt;div&gt;
The answer is &lt;span style=&quot;color: red;&quot;&gt;NO&lt;/span&gt;...&lt;/div&gt;
&lt;div&gt;
所以當規劃要出iOS and Android together 時&lt;/div&gt;
&lt;div&gt;
就要先避開獨家功能&lt;/div&gt;
&lt;div&gt;
然後還要讓兩邊畫面一模一樣&lt;/div&gt;
&lt;div&gt;
GOOD，對接案子的軟體公司來說&lt;/div&gt;
&lt;div&gt;
報價是*2的&lt;/div&gt;
&lt;div&gt;
ios報100萬android報100萬&lt;/div&gt;
&lt;div&gt;
聽起來滿好賺的是吧？&lt;/div&gt;
&lt;div&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;
若您只是一個獨立開發者呢？&lt;/div&gt;
&lt;div&gt;
當您花了很多時間在做開發之後&lt;/div&gt;
&lt;div&gt;
您會希望跨平台還是單純在IOS or Android 單一平台被看見？&lt;/div&gt;
&lt;div&gt;
答案也很明顯&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
小弟 學習Corona 的年資約為一年半，不敢說是前輩，&lt;/div&gt;
&lt;div&gt;
只是搜集資料和整合的能力尚可&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
最近遇到了一些朋友想學寫APP&lt;/div&gt;
&lt;div&gt;
我分析了箇中利弊後，最後選擇了試著教他們寫Corona&lt;/div&gt;
&lt;div&gt;
如果學習曲線能夠以時間來衡量&lt;/div&gt;
&lt;div&gt;
那學Java &amp;amp; Object-C要寫出一支計算機要多久？（針對無基礎的人來說）&lt;/div&gt;
&lt;div&gt;
學Lua(Corona)寫出一支計算機要多久？&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
從安裝到TOOL到基本語法教學到設立文字和Button在手機上&lt;/div&gt;
&lt;div&gt;
大概5個小時，之後在旁邊指導&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
真的寫出了一個簡單的計算機&lt;/div&gt;
&lt;div&gt;
雖然不是很漂亮&lt;/div&gt;
&lt;div&gt;
但也是很棒的一個“&lt;span style=&quot;color: red;&quot;&gt;HELLO WORLD&lt;/span&gt;” 不是嗎&lt;/div&gt;
&lt;div&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/AVvXsEi3Ta0MGWCXG9YYLjUxnvpVaw5jrDi8HhtaUvNbmjkGK44kH3iTtO4ow2NweI6XgF_5bDmhmq_77kaVmNoqC6hgF_fo3P44z_1QQTZ9rxEsYJaHYR8pfAOC9Tn1ghCUJS8x_35l5dxdNWf7/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-28+%E4%B8%8B%E5%8D%8812.12.44.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/AVvXsEi3Ta0MGWCXG9YYLjUxnvpVaw5jrDi8HhtaUvNbmjkGK44kH3iTtO4ow2NweI6XgF_5bDmhmq_77kaVmNoqC6hgF_fo3P44z_1QQTZ9rxEsYJaHYR8pfAOC9Tn1ghCUJS8x_35l5dxdNWf7/s320/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-28+%E4%B8%8B%E5%8D%8812.12.44.png&quot; width=&quot;180&quot; /&gt;&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;
我想，有朝一日，這位朋友很快就能有自已的APP了：）（事實上也已經有了自已的IDEA）&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
來自小島&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/706296680152715656/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/10/corona.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/706296680152715656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/706296680152715656'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/10/corona.html' title='Corona學習效果'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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/AVvXsEi3Ta0MGWCXG9YYLjUxnvpVaw5jrDi8HhtaUvNbmjkGK44kH3iTtO4ow2NweI6XgF_5bDmhmq_77kaVmNoqC6hgF_fo3P44z_1QQTZ9rxEsYJaHYR8pfAOC9Tn1ghCUJS8x_35l5dxdNWf7/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2012-10-28+%E4%B8%8B%E5%8D%8812.12.44.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7538894016523007360.post-6568749531544784742</id><published>2012-09-06T21:10:00.003-07:00</published><updated>2012-11-16T01:04:19.780-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP- 開站"/><title type='text'>開站</title><content type='html'>這是個有關智慧型手機開發&lt;br /&gt;
&lt;br /&gt;
Corona相關訊息的平台&lt;br /&gt;
&lt;br /&gt;
主要是寫下小弟開發心得&lt;br /&gt;
&lt;br /&gt;
也秉持著 &lt;b&gt;凡走過必留下痕跡&lt;/b&gt; 的想法&lt;br /&gt;
&lt;br /&gt;
這些心得回頭來看&lt;br /&gt;
&lt;br /&gt;
也許也能給同樣的開發者一些幫助</content><link rel='replies' type='application/atom+xml' href='http://coronaisland.blogspot.com/feeds/6568749531544784742/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://coronaisland.blogspot.com/2012/09/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/6568749531544784742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538894016523007360/posts/default/6568749531544784742'/><link rel='alternate' type='text/html' href='http://coronaisland.blogspot.com/2012/09/blog-post.html' title='開站'/><author><name>Owen</name><uri>http://www.blogger.com/profile/09076686685454387900</uri><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>