<?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-4982371906187064587</id><updated>2024-08-28T14:02:58.345-07:00</updated><category term="IPhone"/><category term="C#"/><category term="Xcode"/><category term=".NET"/><category term="Mac"/><category term="App"/><category term="C++"/><category term="DesignPatterns"/><category term="Programming"/><category term="WinCE"/><category term="Android"/><category term="CloudBox"/><category term="Game"/><category term="OOP"/><category term="Socket"/><category term="UnitTest"/><category term="UserControl"/><title type='text'>Software Architecture Cloud</title><subtitle type='html'>Hi, I am a software engineer in Taiwan.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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>50</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-3224545276381572407</id><published>2012-12-02T08:19:00.001-08:00</published><updated>2012-12-02T08:19:09.301-08:00</updated><title type='text'>A Cute Game Super Baby Pig</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-ash3/s720x720/179335_447307348659387_751078124_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
iOS:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=578609436&amp;amp;mt=8&quot; rel=&quot;nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=578609436&amp;amp;mt=8&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Android:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.facebook.com/l.php?u=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.clouddevelop.superpig&amp;amp;h=QAQHHh55Z&amp;amp;s=1&quot; rel=&quot;nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;https://play.google.com/store/apps/details?id=com.clouddevelop.superpig&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Youtube:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DB-A1J3Iy1UY%26feature%3Dg-crec&amp;amp;h=TAQH7Wd1L&amp;amp;s=1&quot; rel=&quot;nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://www.youtube.com/watch?v=B-A1J3Iy1UY&amp;amp;feature=g-crec&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-ash3/s720x720/178941_447306418659480_1291992227_n.png&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
There was a beautiful and peaceful planet in the other space which paralleled our space.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Everyone on this planet lived happily under super baby pig’s protection.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
One day, an evil organization from other space intruded this planet and destroyed it.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Heroical super baby pig stood and fought for people’s happiness.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
However, the devil had special power which could depress super baby pig’s super power.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Super baby pig cooperated with the scientists to send signals to our earth through special communicator and hope earthmen could assist super baby pig through smart phone.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-prn1/s720x720/63177_447306501992805_141640408_n.png&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Please turn on your smart phone and enter the world of super baby pig!&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Super baby pig was waiting for the assistance from the friends of earth.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-ash4/s720x720/432238_447306578659464_224465924_n.png&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Super baby pig and scientists had found four bad guys currently but the bad guys used technology to seal off the area.&amp;nbsp; Super baby pig and scientists tried their great effort to unlock an area and had to collect the blue energy money while chasing the bad guys in order to have enough power to destroy their protection cover and unlock more areas.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/s720x720/394988_447306625326126_1249860896_n.png&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
According to the scientists’ investigation, the bad guys were riding heavy –duty motorcycles and wreaking in the desert area.&amp;nbsp; Please help super baby pig to arrest them, friends from earth!&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-prn1/s720x720/604031_447306705326118_953837866_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Super baby pig’s planet had consumed the most of resources to defend the bad buys.&amp;nbsp; Please supply resources to help super baby pig protect their planet if earthmen wanted.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
There was a beautiful place called Taiwan on the earth.&amp;nbsp; A beautiful girl was wakeful and wanted to play games.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash4/s720x720/764_447306778659444_964964084_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『So boring and wakeful. Let’s play some games.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-prn1/s720x720/556892_447306831992772_381417429_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『Mm……What to play?』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-snc7/s720x720/481813_447306865326102_375126903_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『What’s it? SOS?』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/s720x720/401247_447306938659428_149555253_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『Let me see what it is. How come there is SOS from my smart phone.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
BabyPig：『Hello, it’s super baby pig. Our planet was intruded and we need your help.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-prn1/s720x720/156743_447306995326089_949224228_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash4/s720x720/3474_447307111992744_830208251_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『Hello, super baby pig. How can I help you?』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
BabyPig：『Our scientist developed a game which is slotted on App Store and Google Play. You can use the game to help me.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-prn1/s720x720/23912_447307198659402_273731272_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『Ok, let me download it.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn1/s720x720/18226_447307221992733_1548246283_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『I found it. That’s it.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
BabyPig：『Thank you. Please give me indications to help me fight the bad guys.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-prn1/s720x720/31588_447307288659393_814973191_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『The bad guy is so formidable. What should I do?』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
BabyPig：『You can get the blue energy money from the store and use it to make baby’s bottle which can recover my super power for short period.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;span class=&quot;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;photo_img img&quot; src=&quot;https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-prn1/s720x720/16176_447307308659391_983014224_n.jpg&quot; style=&quot;border: 0px; margin: 0px; max-width: 493px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『Let me check. I found it. That’s it. Let’s try again.』&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; line-height: 18px; text-align: left;&quot;&gt;
Mira：『Yeah! I passed it and arrested the bad buy. Super baby pig is so cute. Let’s play this cute game together!』&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/3224545276381572407/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2012/12/a-cute-game-super-baby-pig.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/3224545276381572407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/3224545276381572407'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2012/12/a-cute-game-super-baby-pig.html' title='A Cute Game Super Baby Pig'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-6408505920665028882</id><published>2011-08-29T08:05:00.000-07:00</published><updated>2011-08-29T08:08:18.937-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="CloudBox"/><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>Cross-platform game engine CloudBox</title><content type='html'>Cross-platform game engine CloudBox was ported to Android!!!&lt;br /&gt;Now the CloudBox can run in Android or iOS!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv6L032QjwxZ21UWe1PGRoYwnxYkLqPbTdw9RIis8OXTHiKPJmcIQNrXlANhk5TnFnaY4CivZdNZMyihw7-hNIQwRPa3uZuDSE9yHoNlYQDBnS42exrNpmFZ5GC8rNqQpobNIud6h_DAV7/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.34.31.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 196px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv6L032QjwxZ21UWe1PGRoYwnxYkLqPbTdw9RIis8OXTHiKPJmcIQNrXlANhk5TnFnaY4CivZdNZMyihw7-hNIQwRPa3uZuDSE9yHoNlYQDBnS42exrNpmFZ5GC8rNqQpobNIud6h_DAV7/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.34.31.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5646293244395148274&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7fqojL0HXxRxb-j8PYhZ5ZblYK2zmw6KwlsMk60JHTC6W7NVq_nYrDxGAO0CMJjUcFznUJXAoIBrC2afPrbPqhdbSKNDiaDrbp9T-YJCgyhLXG93drzhQFPatTqCLWfJHwE8RMBW9jUKV/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.36.36.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 229px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7fqojL0HXxRxb-j8PYhZ5ZblYK2zmw6KwlsMk60JHTC6W7NVq_nYrDxGAO0CMJjUcFznUJXAoIBrC2afPrbPqhdbSKNDiaDrbp9T-YJCgyhLXG93drzhQFPatTqCLWfJHwE8RMBW9jUKV/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.36.36.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5646293242085421970&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRjMPwFlXTnyjnNN4CCcD8gjg1Fq7FFG9qhgXZVWKPVNgatYc1grEP4VhKwut7WEg6WVrW_5r6_Fw9U2kkCl-WaOViLbXhg6wj6qqqNl-RJQx8P3NDFXYF6jRAV9ARvO1gSNLRzI1b-Xti/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.38.24.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 225px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRjMPwFlXTnyjnNN4CCcD8gjg1Fq7FFG9qhgXZVWKPVNgatYc1grEP4VhKwut7WEg6WVrW_5r6_Fw9U2kkCl-WaOViLbXhg6wj6qqqNl-RJQx8P3NDFXYF6jRAV9ARvO1gSNLRzI1b-Xti/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.38.24.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5646293238299509954&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv0CzMSAef0b3Z-dP7n4upqzleVQ5RT7yiAf-7iJMYd5aOf-1bkfXTOtRCQijQq4GJHuWCsYxEWrQnPZVChkEYrDku-Gn8M3HuaIkuT3zdrJo2BQJdB3qOLHxWRyvfLsddIi7Pz2u0QBVg/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.38.36.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 199px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv0CzMSAef0b3Z-dP7n4upqzleVQ5RT7yiAf-7iJMYd5aOf-1bkfXTOtRCQijQq4GJHuWCsYxEWrQnPZVChkEYrDku-Gn8M3HuaIkuT3zdrJo2BQJdB3qOLHxWRyvfLsddIi7Pz2u0QBVg/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.38.36.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5646293234736507506&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPMDsrGZ0t8HDFJD4i9pidBYRSLR0LKmjU1id6ocuzEu8KESMJHZorZCODu-mzZgGfRmcsFJSHlx2dFCkLucXa-J1AVJwOY74mD0Xj3hKnELDf56UDIZHBDD9M0HATWKT3bW1Fl-2tehmH/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.34.24.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 274px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPMDsrGZ0t8HDFJD4i9pidBYRSLR0LKmjU1id6ocuzEu8KESMJHZorZCODu-mzZgGfRmcsFJSHlx2dFCkLucXa-J1AVJwOY74mD0Xj3hKnELDf56UDIZHBDD9M0HATWKT3bW1Fl-2tehmH/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.34.24.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5646293246170684594&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/6408505920665028882/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/08/cross-platform-game-engine-cloudbox.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/6408505920665028882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/6408505920665028882'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/08/cross-platform-game-engine-cloudbox.html' title='Cross-platform game engine CloudBox'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEjv6L032QjwxZ21UWe1PGRoYwnxYkLqPbTdw9RIis8OXTHiKPJmcIQNrXlANhk5TnFnaY4CivZdNZMyihw7-hNIQwRPa3uZuDSE9yHoNlYQDBnS42exrNpmFZ5GC8rNqQpobNIud6h_DAV7/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-08-29+%25E4%25B8%258B%25E5%258D%258810.34.31.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-8928684933518537535</id><published>2011-06-08T20:55:00.000-07:00</published><updated>2011-06-08T21:05:15.043-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="DesignPatterns"/><title type='text'>[C#] Generic Singleton Pattern</title><content type='html'>C# singleton pattern with generic.&lt;br /&gt;Why need using generic singleton?&lt;br /&gt;If we use an interface named ISingleton, and provide an Instance property, we must implement in all derived class.&lt;br /&gt;Or we need to provide Instance property in all singleton class.&lt;br /&gt;That is a trouble, so we use generic to solute it&lt;br /&gt;Because singleton need provide private or protected constructor, so we can&#39;t use &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;new T()&lt;/span&gt; in generic singleton pattern.&lt;br /&gt;So we need to use reflection to call constructor.&lt;br /&gt;&lt;pre  style=&quot;background:#ffffff;color:#000000;&quot;&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;using&lt;/span&gt; System&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;using&lt;/span&gt; System&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;Collections&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;Generic&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;using&lt;/span&gt; System&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;Text&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;using&lt;/span&gt; System&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;Reflection&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;namespace&lt;/span&gt; DesignPattern&lt;br /&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;public&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;class&lt;/span&gt; TSingleton&lt;span style=&quot; ;color:#808030;&quot; &gt;&amp;lt;&lt;/span&gt;T&lt;span style=&quot; ;color:#808030;&quot; &gt;&amp;gt;&lt;/span&gt; where T &lt;span style=&quot; ;color:#808030;&quot; &gt;:&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;class&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;static&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;object&lt;/span&gt; SyncRoot &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;new&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;object&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;static&lt;/span&gt; T instance&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;public&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;static&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;readonly&lt;/span&gt; Type&lt;span style=&quot; ;color:#808030;&quot; &gt;[&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;]&lt;/span&gt; EmptyTypes &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;new&lt;/span&gt; Type&lt;span style=&quot; ;color:#808030;&quot; &gt;[&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;0&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;]&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;public&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;static&lt;/span&gt; T Instance&lt;br /&gt;      &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;          get&lt;br /&gt;          &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;if&lt;/span&gt; &lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;instance &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;null&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;lock&lt;/span&gt; &lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;SyncRoot&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;                      &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;if&lt;/span&gt; &lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;instance &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;null&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;br /&gt;                      &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;                          ConstructorInfo ci &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;typeof&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;T&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;GetConstructor&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;BindingFlags&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;NonPublic | BindingFlags&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;Instance&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;null&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; EmptyTypes&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;null&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;if&lt;/span&gt; &lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;ci &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;null&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt; &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;throw&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;new&lt;/span&gt; InvalidOperationException&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#800000;&quot; &gt;&quot;&lt;/span&gt;&lt;span style=&quot; ;color:#0000e6;&quot; &gt;class must contain a private constructor&lt;/span&gt;&lt;span style=&quot; ;color:#800000;&quot; &gt;&quot;&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt; &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;                          instance &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;T&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;ci&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;Invoke&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;null&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;                          &lt;span style=&quot; ;color:#696969;&quot; &gt;//instance = Activator.CreateInstance(typeof(T)) as T;&lt;/span&gt;&lt;br /&gt;                      &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;return&lt;/span&gt; instance&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;          &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/8928684933518537535/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/06/c-generic-singleton-pattern.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8928684933518537535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8928684933518537535'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/06/c-generic-singleton-pattern.html' title='[C#] Generic Singleton Pattern'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-3845871025871579651</id><published>2011-06-08T20:52:00.000-07:00</published><updated>2011-06-08T20:53:21.916-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[iPhone] print all keys/values in info.plist</title><content type='html'>&lt;pre  style=&quot;background:#ffffff;color:#000000;&quot;&gt;&lt;span style=&quot; ;color:#696969;&quot; &gt;// get all keys and values in info.plist&lt;/span&gt;&lt;br /&gt;NSBundle&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt; mainBundle &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; ;color:#808030;&quot; &gt;[&lt;/span&gt;NSBundle mainBundle&lt;span style=&quot; ;color:#808030;&quot; &gt;]&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;NSDictionary&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt; infoDictionary &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt;  &lt;span style=&quot; ;color:#808030;&quot; &gt;[&lt;/span&gt;mainBundle infoDictionary&lt;span style=&quot; ;color:#808030;&quot; &gt;]&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;id key&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;NSArray&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt; keys &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; &lt;span style=&quot; ;color:#808030;&quot; &gt;[&lt;/span&gt;infoDictionary allKeys&lt;span style=&quot; ;color:#808030;&quot; &gt;]&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;NSLog&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;@&lt;/span&gt;&lt;span style=&quot; ;color:#800000;&quot; &gt;&quot;&lt;/span&gt;&lt;span style=&quot; ;color:#0000e6;&quot; &gt;Display all keys and values in info.plist&lt;/span&gt;&lt;span style=&quot; ;color:#0f69ff;&quot; &gt;\n&lt;/span&gt;&lt;span style=&quot; ;color:#800000;&quot; &gt;&quot;&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;for&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;key in keys&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;   NSLog&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;@&lt;/span&gt;&lt;span style=&quot; ;color:#800000;&quot; &gt;&quot;&lt;/span&gt;&lt;span style=&quot; ;color:#0000e6;&quot; &gt;key=%@ , value=%@&lt;/span&gt;&lt;span style=&quot; ;color:#0f69ff;&quot; &gt;\n&lt;/span&gt;&lt;span style=&quot; ;color:#800000;&quot; &gt;&quot;&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt;key&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;[&lt;/span&gt;infoDictionary objectForKey&lt;span style=&quot; ;color:#800080;&quot; &gt;:&lt;/span&gt;key&lt;span style=&quot; ;color:#808030;&quot; &gt;]&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/3845871025871579651/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/06/iphone-print-all-keysvalues-in.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/3845871025871579651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/3845871025871579651'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/06/iphone-print-all-keysvalues-in.html' title='[iPhone] print all keys/values in info.plist'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-2713210911511953319</id><published>2011-03-11T00:47:00.000-08:00</published><updated>2011-03-11T00:48:54.634-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>[C#] Multi-thread delete file sample</title><content type='html'>&lt;pre style=&quot;color: rgb(0, 0, 0); background: none repeat scroll 0% 0% rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;just boring..&lt;br /&gt;&lt;br /&gt;using&lt;/span&gt; System&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;using&lt;/span&gt; System&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Collections&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Generic&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;using&lt;/span&gt; System&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Text&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;using&lt;/span&gt; System&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Threading&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;using&lt;/span&gt; System&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;IO&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;namespace&lt;/span&gt; WPFTest&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;class&lt;/span&gt; Range&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; m_start&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; m_end&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; Range&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; start&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; end&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           m_start &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; start&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;           m_end &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; end&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; Start&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           get &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; m_start&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;           set &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt; m_start &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; value&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; End&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           get &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; m_end&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;           set &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt; m_end &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; value&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;class&lt;/span&gt; Orz&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       List&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&gt;&lt;/span&gt; m_delNameList&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       List&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt;Range&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&gt;&lt;/span&gt; m_RangeList&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; m_threadCount&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       Orz&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; Orz&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;List&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&gt;&lt;/span&gt; delList&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; threadCount&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           m_delNameList &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; delList&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;           m_threadCount &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; threadCount&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;           m_RangeList &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;new&lt;/span&gt; List&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt;Range&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt; Start&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; count &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; m_delNameList&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Count &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;/&lt;/span&gt; m_threadCount&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 140, 0);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt; i &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt; m_threadCount &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt; i&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;               Thread t &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;new&lt;/span&gt; Thread&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;new&lt;/span&gt; ThreadStart&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;DeleteProc&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;               t&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Name &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; i&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;ToString&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;               m_RangeList&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Add&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;new&lt;/span&gt; Range&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;i &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt; count&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;i &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 140, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt; count&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;               t&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Start&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt; DeleteProc&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; index &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; Convert&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;ToInt32&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;Thread&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;CurrentThread&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Name&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;           Range range &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; m_RangeList&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;index&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; range&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Start&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt; i &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;index &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; m_threadCount&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 140, 0);&quot;&gt;1&lt;/span&gt; ? m_delNameList&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Count &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;:&lt;/span&gt; range&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;End&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt; i&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;               File&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;Delete&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;m_delNameList&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/2713210911511953319/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/03/c-multi-thread-delete-file-sample.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2713210911511953319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2713210911511953319'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/03/c-multi-thread-delete-file-sample.html' title='[C#] Multi-thread delete file sample'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-8533328470099368947</id><published>2011-02-19T02:57:00.000-08:00</published><updated>2011-02-19T02:59:17.098-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="App"/><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[iphone] Toilet War rank 1 in Taiwan Strategy</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZjTw9UZDRSaVnXPYaO0A5844z-dFCQ24wCzwJc-cEN6GeWXmw0VtDUHlIhjir3gSEbwM0B-FQ0Q227UoyuCLkNrHbEiixW8WOMXUK-NH20QVIHufXvhYTqsK9OOC5fo96ol8yLhiKjFH7/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-02-19+%25E4%25B8%258B%25E5%258D%25886.52.11.png&quot;&gt;&lt;img style=&quot;display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 102px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZjTw9UZDRSaVnXPYaO0A5844z-dFCQ24wCzwJc-cEN6GeWXmw0VtDUHlIhjir3gSEbwM0B-FQ0Q227UoyuCLkNrHbEiixW8WOMXUK-NH20QVIHufXvhYTqsK9OOC5fo96ol8yLhiKjFH7/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-02-19+%25E4%25B8%258B%25E5%258D%25886.52.11.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5575353469751798690&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Nice!!!!&lt;br /&gt;This is a good news!!!!</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/8533328470099368947/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/02/iphone-toilet-war-rank-1-in-taiwan.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8533328470099368947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8533328470099368947'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/02/iphone-toilet-war-rank-1-in-taiwan.html' title='[iphone] Toilet War rank 1 in Taiwan Strategy'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEiZjTw9UZDRSaVnXPYaO0A5844z-dFCQ24wCzwJc-cEN6GeWXmw0VtDUHlIhjir3gSEbwM0B-FQ0Q227UoyuCLkNrHbEiixW8WOMXUK-NH20QVIHufXvhYTqsK9OOC5fo96ol8yLhiKjFH7/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2011-02-19+%25E4%25B8%258B%25E5%258D%25886.52.11.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-2744114029044831191</id><published>2011-01-29T05:03:00.001-08:00</published><updated>2011-01-29T05:03:25.631-08:00</updated><title type='text'>iPhone Game Toilet War Usher Mode</title><content type='html'>&lt;iframe src=&quot;http://www.youtube.com/embed/7G5Bw_a5o8Y?fs=1&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;344&quot; width=&quot;425&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/2744114029044831191/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/01/iphone-game-toilet-war-usher-mode.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2744114029044831191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2744114029044831191'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/01/iphone-game-toilet-war-usher-mode.html' title='iPhone Game Toilet War Usher Mode'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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://img.youtube.com/vi/7G5Bw_a5o8Y/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-1846360063193134811</id><published>2011-01-29T05:03:00.000-08:00</published><updated>2011-01-29T05:03:12.900-08:00</updated><title type='text'>iPhone Game Toilet War Janitor</title><content type='html'>&lt;iframe src=&quot;http://www.youtube.com/embed/JPkLBs1yP0w?fs=1&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;344&quot; width=&quot;425&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/1846360063193134811/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/01/iphone-game-toilet-war-janitor.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/1846360063193134811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/1846360063193134811'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/01/iphone-game-toilet-war-janitor.html' title='iPhone Game Toilet War Janitor'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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://img.youtube.com/vi/JPkLBs1yP0w/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-8945001450644677162</id><published>2011-01-27T18:39:00.000-08:00</published><updated>2011-01-27T18:40:24.221-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="App"/><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[IPhone] Toilet War!!!!!</title><content type='html'>This is a game that simulate the roles - Janitor and Usher to manage people to use the toilet. The Janitor will supplies the paper when people leave the toilet and paper be used. The Usher will arrange people line up go into toilet. Good luck and have fun!!&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;iTunes:&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;http://itunes.apple.com/us/app/toilet-war/id415891931?mt=8&quot;&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;http://itunes.apple.com/us/app/toilet-war/id415891931?mt=8&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size:180%;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim2YqlwetqH_hTkPCbFy-Rts3ArrtLQRhWuWPf1i38v-NFxt_vfArpEDS_iofkahF26lYhO5rhZo0kuX8eY2C4iQoYKo4Ae9f_SvymMfJGeL8t7yVmAEAnhNfXl-bFD_lYIsOWQ7YDDMR2/s1600/1.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297345522577682&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim2YqlwetqH_hTkPCbFy-Rts3ArrtLQRhWuWPf1i38v-NFxt_vfArpEDS_iofkahF26lYhO5rhZo0kuX8eY2C4iQoYKo4Ae9f_SvymMfJGeL8t7yVmAEAnhNfXl-bFD_lYIsOWQ7YDDMR2/s320/1.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5_-VUTGCdfsNDuCKK_DO_2aZtzWddpMR5qT9sHlbh1cR7j3ypzabkhnXoQEpy_XmswnIogeL-Xv85gPvvSWCwmh0oBJClMx5uoOf5492x5VSwTskQmbM8TkgQRyH_G5QEuu4TTtIQHl4Z/s1600/2.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297342073981634&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5_-VUTGCdfsNDuCKK_DO_2aZtzWddpMR5qT9sHlbh1cR7j3ypzabkhnXoQEpy_XmswnIogeL-Xv85gPvvSWCwmh0oBJClMx5uoOf5492x5VSwTskQmbM8TkgQRyH_G5QEuu4TTtIQHl4Z/s320/2.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhve2G4ZZ3HyyqsQDZDJCrednnm4jnMN9O3rlCjqGa5BDXz4D068ybmHA1myZfEN0FH3JbLo5xHy0GTkpmHvAsj_1-pXn5ZsEoSFtylkcxgqyPbIytb4LBWCRa4al3k7uBUSbwewYXJ_TDh/s1600/3.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297343101224050&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhve2G4ZZ3HyyqsQDZDJCrednnm4jnMN9O3rlCjqGa5BDXz4D068ybmHA1myZfEN0FH3JbLo5xHy0GTkpmHvAsj_1-pXn5ZsEoSFtylkcxgqyPbIytb4LBWCRa4al3k7uBUSbwewYXJ_TDh/s320/3.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuYzdzRs0nDXKQLvY1fcHATQoTv_Wck_DvQXoywElVoKMVrReJrHba3edHp2HDXsxtY_oaQCzwyDk5T3ThagRiNLyDwk6US8Di70InCAK78xZnMKZnwHNR_ZMIaZLUVrJHJEzOYcXSaigc/s1600/4.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297339090411906&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuYzdzRs0nDXKQLvY1fcHATQoTv_Wck_DvQXoywElVoKMVrReJrHba3edHp2HDXsxtY_oaQCzwyDk5T3ThagRiNLyDwk6US8Di70InCAK78xZnMKZnwHNR_ZMIaZLUVrJHJEzOYcXSaigc/s320/4.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEf76lNShz3UbjBPU9cGsXPT_4XDaOWnSZjVfOMZOA-M8IGpTrgjNI2qPLe_YESWoZU2tKqKObnky5p0-JDscBjMqD_C9nQYXRFDRChUlxEDeHbVrMKQq7y3Uf52I-ahDd5G9vnOtmCA8E/s1600/5.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297331401781954&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEf76lNShz3UbjBPU9cGsXPT_4XDaOWnSZjVfOMZOA-M8IGpTrgjNI2qPLe_YESWoZU2tKqKObnky5p0-JDscBjMqD_C9nQYXRFDRChUlxEDeHbVrMKQq7y3Uf52I-ahDd5G9vnOtmCA8E/s320/5.PNG&quot; /&gt;&lt;/a&gt; &lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/8945001450644677162/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/01/iphone-toilet-war.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8945001450644677162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8945001450644677162'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/01/iphone-toilet-war.html' title='[IPhone] Toilet War!!!!!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEim2YqlwetqH_hTkPCbFy-Rts3ArrtLQRhWuWPf1i38v-NFxt_vfArpEDS_iofkahF26lYhO5rhZo0kuX8eY2C4iQoYKo4Ae9f_SvymMfJGeL8t7yVmAEAnhNfXl-bFD_lYIsOWQ7YDDMR2/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-8861350811073728980</id><published>2011-01-17T07:51:00.000-08:00</published><updated>2011-01-17T07:54:59.222-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[IPhone] Show AdMob when iAD not filled</title><content type='html'>This sample code is demo when iAD not fill show AdMob.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;CloudBoxControler.h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;color: rgb(0, 0, 0); background: none repeat scroll 0% 0% rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;UIKit&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;UIKit&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;iAd&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;iAd&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;AdMobDelegateProtocol.h&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;class&lt;/span&gt; AdMobView&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;interface CloudBoxControler &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt; UIViewController &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;&amp;lt;&lt;/span&gt;ADBannerViewDelegate&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;AdMobDelegate&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   CloudBoxMainView&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt; m_MainView&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   NSTimer&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt; m_Timer&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;   ADBannerView &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;banner&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   AdMobView &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;adMobAd&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;bool&lt;/span&gt; m_isShowiAD&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: rgb(96, 48, 0);&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt; initGameWrold&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt; update&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;NSTimer&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt; timer&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;createADBannerView&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;layoutForCurrentOrientation&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(96, 48, 0);&quot;&gt;BOOL&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;animated&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;property&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;nonatomic&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt; retain&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt; ADBannerView &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;banner&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;end&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;CloudBoxControler.m&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#import &quot;CloudBoxControler.h&quot;&lt;br /&gt;#import &quot;HelloScene.h&quot;&lt;br /&gt;#import &quot;AdMobView.h&quot;&lt;br /&gt;&lt;br /&gt;@implementation CloudBoxControler&lt;br /&gt;&lt;br /&gt;@synthesize banner;&lt;br /&gt;/*&lt;br /&gt;// The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.&lt;br /&gt;- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {&lt;br /&gt;   if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {&lt;br /&gt;       // Custom initialization&lt;br /&gt;   }&lt;br /&gt;   return self;&lt;br /&gt;}&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Implement loadView to create a view hierarchy programmatically, without using a nib.&lt;br /&gt;- (void)loadView {&lt;br /&gt; // --- get full screen rect --- //&lt;br /&gt; CGRect t_FullScreenRect = [[UIScreen mainScreen] bounds];&lt;br /&gt; // --- initial main view --- //&lt;br /&gt; m_MainView = [[CloudBoxMainView alloc]initWithFrame:t_FullScreenRect];&lt;br /&gt; &lt;br /&gt; self.view = m_MainView;&lt;br /&gt; [m_MainView release];&lt;br /&gt; [self initGameWrold];&lt;br /&gt; &lt;br /&gt; m_isShowiAD = NO;&lt;br /&gt; &lt;br /&gt; adMobAd = [AdMobView requestAdWithDelegate:self]; // start a new ad request&lt;br /&gt; [adMobAd retain]; // this will be released when it loads (or fails to load)&lt;br /&gt; &lt;br /&gt; count = 0;&lt;br /&gt; if(banner == nil)&lt;br /&gt;   {&lt;br /&gt;       [self createADBannerView];&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.&lt;br /&gt;- (void)viewDidLoad {&lt;br /&gt; &lt;br /&gt;   [super viewDidLoad];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;- (void) initGameWrold&lt;br /&gt;{&lt;br /&gt; // --- initial timer --- //&lt;br /&gt; m_Timer = [NSTimer scheduledTimerWithTimeInterval: 0.01&lt;br /&gt;              target: self  // set controler to this&lt;br /&gt;            selector: @selector(update:) // set event to update&lt;br /&gt;            userInfo: nil&lt;br /&gt;             repeats: YES];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// --- timer tick event --- //&lt;br /&gt;- (void) update: (NSTimer*) timer&lt;br /&gt;{&lt;br /&gt; count++;&lt;br /&gt; if (adMobAd != nil) {&lt;br /&gt;  [adMobAd.superview bringSubviewToFront:adMobAd];&lt;br /&gt; }&lt;br /&gt; [self.banner bringSubviewToFront:self.banner];&lt;br /&gt; if(count &gt; 2000)&lt;br /&gt; {&lt;br /&gt;  if(!m_isShowiAD)&lt;br /&gt;  {&lt;br /&gt;   if(adMobAd != nil)&lt;br /&gt;   {&lt;br /&gt;    adMobAd.hidden = NO;&lt;br /&gt;    [adMobAd requestFreshAd];&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;    adMobAd = [AdMobView requestAdWithDelegate:self]; // start a new ad request&lt;br /&gt;    [adMobAd retain]; // this will be released when it loads (or fails to load)&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;  else {&lt;br /&gt;   if(adMobAd != nil)&lt;br /&gt;   {&lt;br /&gt;    adMobAd.hidden = YES;&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;  count = 0;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; // --- let timer can check touch --- //&lt;br /&gt; [[NSRunLoop currentRunLoop] runUntilDate: [NSDate distantPast]];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Override to allow orientations other than the default portrait orientation.&lt;br /&gt;- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {&lt;br /&gt;   // Return YES for supported orientations&lt;br /&gt; // setting default coordinate&lt;br /&gt;   return (interfaceOrientation == UIDeviceOrientationPortrait);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;- (void)didReceiveMemoryWarning {&lt;br /&gt; // Releases the view if it doesn&#39;t have a superview.&lt;br /&gt;   [super didReceiveMemoryWarning];&lt;br /&gt; &lt;br /&gt; // Release any cached data, images, etc that aren&#39;t in use.&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;- (void)viewDidUnload {&lt;br /&gt; // Release any retained subviews of the main view.&lt;br /&gt; // e.g. self.myOutlet = nil;&lt;br /&gt; banner.delegate = nil;&lt;br /&gt;   self.banner = nil;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- (void)dealloc {&lt;br /&gt; banner.delegate = nil;&lt;br /&gt;   [banner release]; banner = nil;&lt;br /&gt; [adMobAd release];&lt;br /&gt; [m_Timer release];&lt;br /&gt; [m_MainView release];&lt;br /&gt;   [super dealloc];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-(void)createADBannerView&lt;br /&gt;{&lt;br /&gt;   // --- WARNING ---&lt;br /&gt;   // If you are planning on creating banner views at runtime in order to support iOS targets that don&#39;t support the iAd framework&lt;br /&gt;   // then you will need to modify this method to do runtime checks for the symbols provided by the iAd framework&lt;br /&gt;   // and you will need to weaklink iAd.framework in your project&#39;s target settings.&lt;br /&gt;   // See the iPad Programming Guide, Creating a Universal Application for more information.&lt;br /&gt;   // http://developer.apple.com/iphone/library/documentation/general/conceptual/iPadProgrammingGuide/Introduction/Introduction.html&lt;br /&gt;   // --- WARNING ---&lt;br /&gt; &lt;br /&gt;   // Depending on our orientation when this method is called, we set our initial content size.&lt;br /&gt;   // If you only support portrait or landscape orientations, then you can remove this check and&lt;br /&gt;   // select either ADBannerContentSizeIdentifier320x50 (if portrait only) or ADBannerContentSizeIdentifier480x32 (if landscape only).&lt;br /&gt;   NSString *contentSize = UIInterfaceOrientationIsPortrait(self.interfaceOrientation) ? ADBannerContentSizeIdentifier320x50 : ADBannerContentSizeIdentifier480x32;&lt;br /&gt;  &lt;br /&gt;   // Calculate the intial location for the banner.&lt;br /&gt;   // We want this banner to be at the bottom of the view controller, but placed&lt;br /&gt;   // offscreen to ensure that the user won&#39;t see the banner until its ready.&lt;br /&gt;   // We&#39;ll be informed when we have an ad to show because -bannerViewDidLoadAd: will be called.&lt;br /&gt;   CGRect frame;&lt;br /&gt;   frame.size = [ADBannerView sizeFromBannerContentSizeIdentifier:contentSize];&lt;br /&gt;   frame.origin = CGPointMake(0.0, CGRectGetMaxY(self.view.bounds));&lt;br /&gt;  &lt;br /&gt;   // Now to create and configure the banner view&lt;br /&gt;   ADBannerView *bannerView = [[ADBannerView alloc] initWithFrame:frame];&lt;br /&gt;   // Set the delegate to self, so that we are notified of ad responses.&lt;br /&gt;   bannerView.delegate = self;&lt;br /&gt;   // Set the autoresizing mask so that the banner is pinned to the bottom&lt;br /&gt;   bannerView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleTopMargin;&lt;br /&gt;   // Since we support all orientations in this view controller, support portrait and landscape content sizes.&lt;br /&gt;   // If you only supported landscape or portrait, you could remove the other from this set.&lt;br /&gt;   bannerView.requiredContentSizeIdentifiers = [NSSet setWithObjects:ADBannerContentSizeIdentifier320x50, ADBannerContentSizeIdentifier480x32, nil];&lt;br /&gt;  &lt;br /&gt;   // At this point the ad banner is now be visible and looking for an ad.&lt;br /&gt;   [self.view addSubview:bannerView];&lt;br /&gt;   self.banner = bannerView;&lt;br /&gt;   [bannerView release];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-(void)layoutForCurrentOrientation:(BOOL)animated&lt;br /&gt;{&lt;br /&gt;   CGFloat animationDuration = animated ? 0.2 : 0.0;&lt;br /&gt;   // by default content consumes the entire view area&lt;br /&gt;   CGRect contentFrame = self.view.bounds;&lt;br /&gt;   // the banner still needs to be adjusted further, but this is a reasonable starting point&lt;br /&gt;   // the y value will need to be adjusted by the banner height to get the final position&lt;br /&gt; CGPoint bannerOrigin = CGPointMake(CGRectGetMinX(contentFrame), CGRectGetMaxY(contentFrame));&lt;br /&gt;   CGFloat bannerHeight = 0.0;&lt;br /&gt;  &lt;br /&gt;   // First, setup the banner&#39;s content size and adjustment based on the current orientation&lt;br /&gt;   if(UIInterfaceOrientationIsLandscape(self.interfaceOrientation))&lt;br /&gt;   {&lt;br /&gt;       banner.currentContentSizeIdentifier = ADBannerContentSizeIdentifier480x32;&lt;br /&gt;       bannerHeight = 32.0;&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;       banner.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;&lt;br /&gt;       bannerHeight = 50.0;&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;   // Depending on if the banner has been loaded, we adjust the content frame and banner location&lt;br /&gt;   // to accomodate the ad being on or off screen.&lt;br /&gt;   // This layout is for an ad at the bottom of the view.&lt;br /&gt;   if(banner.bannerLoaded)&lt;br /&gt;   {&lt;br /&gt;       contentFrame.size.height -= bannerHeight;&lt;br /&gt;  bannerOrigin.y -= bannerHeight;&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;  bannerOrigin.y += bannerHeight;&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;   // And finally animate the changes, running layout for the content view if required.&lt;br /&gt;   [UIView animateWithDuration:animationDuration&lt;br /&gt;                    animations:^{&lt;br /&gt;                        //self.view.frame = contentFrame;&lt;br /&gt;                        [self.view layoutIfNeeded];&lt;br /&gt;                        banner.frame = CGRectMake(bannerOrigin.x, bannerOrigin.y, banner.frame.size.width, banner.frame.size.height);&lt;br /&gt;                    }];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-(void)bannerViewDidLoadAd:(ADBannerView *)banner&lt;br /&gt;{&lt;br /&gt; m_isShowiAD = YES;&lt;br /&gt;   self.banner.hidden = NO;&lt;br /&gt; [self layoutForCurrentOrientation:YES];&lt;br /&gt; if(adMobAd != nil)&lt;br /&gt; {&lt;br /&gt;  adMobAd.hidden = YES;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error&lt;br /&gt;{&lt;br /&gt; m_isShowiAD = NO;&lt;br /&gt;   self.banner.hidden = YES;&lt;br /&gt; [self layoutForCurrentOrientation:YES];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-(BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave&lt;br /&gt;{&lt;br /&gt;   return YES;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-(void)bannerViewActionDidFinish:(ADBannerView *)banner&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#pragma mark -&lt;br /&gt;#pragma mark AdMobDelegate methods&lt;br /&gt;&lt;br /&gt;- (NSString *)publisherIdForAd:(AdMobView *)adView {&lt;br /&gt; return @&quot;a14d31d9a5345d6&quot;; // this should be prefilled; if not, get it from www.admob.com&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;- (UIViewController *)currentViewControllerForAd:(AdMobView *)adView {&lt;br /&gt; return self;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;- (UIColor *)adBackgroundColorForAd:(AdMobView *)adView {&lt;br /&gt; return [UIColor colorWithRed:0.271 green:0.592 blue:0.247 alpha:1]; // this should be prefilled; if not, provide a UIColor&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;- (UIColor *)primaryTextColorForAd:(AdMobView *)adView {&lt;br /&gt; return [UIColor colorWithRed:1 green:1 blue:1 alpha:1]; // this should be prefilled; if not, provide a UIColor&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;- (UIColor *)secondaryTextColorForAd:(AdMobView *)adView {&lt;br /&gt; return [UIColor colorWithRed:1 green:1 blue:1 alpha:1]; // this should be prefilled; if not, provide a UIColor&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// To receive test ads rather than real ads...&lt;br /&gt;&lt;br /&gt;// Test ads are returned to these devices.  Device identifiers are the same used to register&lt;br /&gt;// as a development device with Apple.  To obtain a value open the Organizer&lt;br /&gt;// (Window -&gt; Organizer from Xcode), control-click or right-click on the device&#39;s name, and&lt;br /&gt;// choose &quot;Copy Device Identifier&quot;.  Alternatively you can obtain it through code using&lt;br /&gt;// [UIDevice currentDevice].uniqueIdentifier.&lt;br /&gt;//&lt;br /&gt;// For example:&lt;br /&gt;//    - (NSArray *)testDevices {&lt;br /&gt;//      return [NSArray arrayWithObjects:&lt;br /&gt;//              ADMOB_SIMULATOR_ID,                             // Simulator&lt;br /&gt;//              //@&quot;28ab37c3902621dd572509110745071f0101b124&quot;,  // Test iPhone 3GS 3.0.1&lt;br /&gt;//              //@&quot;8cf09e81ef3ec5418c3450f7954e0e95db8ab200&quot;,  // Test iPod 2.2.1&lt;br /&gt;//              nil];&lt;br /&gt;//    }&lt;br /&gt;&lt;br /&gt;// - (NSArray *)testDevices {&lt;br /&gt;// return [NSArray arrayWithObjects: ADMOB_SIMULATOR_ID,@&quot;28ab37c3902621dd572509110745071f0101b124&quot;, nil];&lt;br /&gt;// }&lt;br /&gt;//&lt;br /&gt;// - (NSString *)testAdActionForAd:(AdMobView *)adMobView {&lt;br /&gt;// return @&quot;url&quot;; // see AdMobDelegateProtocol.h for a listing of valid values here&lt;br /&gt;// }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Sent when an ad request loaded an ad; this is a good opportunity to attach&lt;br /&gt;// the ad view to the hierachy.&lt;br /&gt;- (void)didReceiveAd:(AdMobView *)adView {&lt;br /&gt; NSLog(@&quot;AdMob: Did receive ad&quot;);&lt;br /&gt; if(m_isShowiAD)&lt;br /&gt;  return;&lt;br /&gt; // get the view frame&lt;br /&gt; CGRect frame = self.view.bounds;&lt;br /&gt; &lt;br /&gt; // put the ad at the bottom of the screen&lt;br /&gt; if(UIInterfaceOrientationIsLandscape(self.interfaceOrientation))&lt;br /&gt;   {&lt;br /&gt;  // put in right bottom&lt;br /&gt;       adMobAd.frame = CGRectMake(160, frame.size.height - 48, 320, 48);&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;       adMobAd.frame = CGRectMake(0, frame.size.height - 48, 320, 48);&lt;br /&gt;   }&lt;br /&gt; &lt;br /&gt; [self.view addSubview:adMobAd];&lt;br /&gt; adMobAd.hidden = NO;&lt;br /&gt; [adMobAd.superview bringSubviewToFront:adMobAd];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Sent when an ad request failed to load an ad&lt;br /&gt;- (void)didFailToReceiveAd:(AdMobView *)adView {&lt;br /&gt; NSLog(@&quot;AdMob: Did fail to receive ad&quot;);&lt;br /&gt; [adMobAd removeFromSuperview];  // Not necessary since never added to a view, but doesn&#39;t hurt and is good practice&lt;br /&gt; [adMobAd release];&lt;br /&gt; adMobAd = nil;&lt;br /&gt; // we could start a new ad request here, but in the interests of the user&#39;s battery life, let&#39;s not&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@end</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/8861350811073728980/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/01/iphone-show-admob-when-iad-not-filled.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8861350811073728980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8861350811073728980'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2011/01/iphone-show-admob-when-iad-not-filled.html' title='[IPhone] Show AdMob when iAD not filled'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-6672170254187880072</id><published>2010-12-29T18:28:00.000-08:00</published><updated>2010-12-29T18:45:15.087-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="App"/><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[iPhone] Toilet War coming soon!!</title><content type='html'>New game Toilet War coming soon!&lt;br /&gt;Producer &amp;amp; Director: &lt;a href=&quot;http://www.facebook.com/tshuang0611&quot;&gt;TS Huang &lt;/a&gt;&lt;br /&gt;Architect &amp;amp; Chief programmer: &lt;a href=&quot;http://www.facebook.com/cloudhsu&quot;&gt;Cloud Hsu &lt;/a&gt;&lt;br /&gt;Programmer: &lt;a href=&quot;http://www.facebook.com/profile.php?id=100000115564240&quot;&gt;Joe Huang &lt;/a&gt;&lt;br /&gt;Arts:&lt;br /&gt;FLYKING&lt;br /&gt;PAPALA&lt;br /&gt;SAKANA&lt;br /&gt;Music &amp;amp; Sound: JungMusic&lt;br /&gt;Translator: Charles Chung&lt;br /&gt;Special Thanks&lt;br /&gt;B.B.&lt;br /&gt;MingJen&lt;br /&gt;DGW&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim2YqlwetqH_hTkPCbFy-Rts3ArrtLQRhWuWPf1i38v-NFxt_vfArpEDS_iofkahF26lYhO5rhZo0kuX8eY2C4iQoYKo4Ae9f_SvymMfJGeL8t7yVmAEAnhNfXl-bFD_lYIsOWQ7YDDMR2/s1600/1.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297345522577682&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim2YqlwetqH_hTkPCbFy-Rts3ArrtLQRhWuWPf1i38v-NFxt_vfArpEDS_iofkahF26lYhO5rhZo0kuX8eY2C4iQoYKo4Ae9f_SvymMfJGeL8t7yVmAEAnhNfXl-bFD_lYIsOWQ7YDDMR2/s320/1.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5_-VUTGCdfsNDuCKK_DO_2aZtzWddpMR5qT9sHlbh1cR7j3ypzabkhnXoQEpy_XmswnIogeL-Xv85gPvvSWCwmh0oBJClMx5uoOf5492x5VSwTskQmbM8TkgQRyH_G5QEuu4TTtIQHl4Z/s1600/2.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297342073981634&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5_-VUTGCdfsNDuCKK_DO_2aZtzWddpMR5qT9sHlbh1cR7j3ypzabkhnXoQEpy_XmswnIogeL-Xv85gPvvSWCwmh0oBJClMx5uoOf5492x5VSwTskQmbM8TkgQRyH_G5QEuu4TTtIQHl4Z/s320/2.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhve2G4ZZ3HyyqsQDZDJCrednnm4jnMN9O3rlCjqGa5BDXz4D068ybmHA1myZfEN0FH3JbLo5xHy0GTkpmHvAsj_1-pXn5ZsEoSFtylkcxgqyPbIytb4LBWCRa4al3k7uBUSbwewYXJ_TDh/s1600/3.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297343101224050&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhve2G4ZZ3HyyqsQDZDJCrednnm4jnMN9O3rlCjqGa5BDXz4D068ybmHA1myZfEN0FH3JbLo5xHy0GTkpmHvAsj_1-pXn5ZsEoSFtylkcxgqyPbIytb4LBWCRa4al3k7uBUSbwewYXJ_TDh/s320/3.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuYzdzRs0nDXKQLvY1fcHATQoTv_Wck_DvQXoywElVoKMVrReJrHba3edHp2HDXsxtY_oaQCzwyDk5T3ThagRiNLyDwk6US8Di70InCAK78xZnMKZnwHNR_ZMIaZLUVrJHJEzOYcXSaigc/s1600/4.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297339090411906&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuYzdzRs0nDXKQLvY1fcHATQoTv_Wck_DvQXoywElVoKMVrReJrHba3edHp2HDXsxtY_oaQCzwyDk5T3ThagRiNLyDwk6US8Di70InCAK78xZnMKZnwHNR_ZMIaZLUVrJHJEzOYcXSaigc/s320/4.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEf76lNShz3UbjBPU9cGsXPT_4XDaOWnSZjVfOMZOA-M8IGpTrgjNI2qPLe_YESWoZU2tKqKObnky5p0-JDscBjMqD_C9nQYXRFDRChUlxEDeHbVrMKQq7y3Uf52I-ahDd5G9vnOtmCA8E/s1600/5.PNG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 214px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5556297331401781954&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEf76lNShz3UbjBPU9cGsXPT_4XDaOWnSZjVfOMZOA-M8IGpTrgjNI2qPLe_YESWoZU2tKqKObnky5p0-JDscBjMqD_C9nQYXRFDRChUlxEDeHbVrMKQq7y3Uf52I-ahDd5G9vnOtmCA8E/s320/5.PNG&quot; /&gt;&lt;/a&gt; &lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/6672170254187880072/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/12/iphone-toilet-war-coming-soon.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/6672170254187880072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/6672170254187880072'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/12/iphone-toilet-war-coming-soon.html' title='[iPhone] Toilet War coming soon!!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEim2YqlwetqH_hTkPCbFy-Rts3ArrtLQRhWuWPf1i38v-NFxt_vfArpEDS_iofkahF26lYhO5rhZo0kuX8eY2C4iQoYKo4Ae9f_SvymMfJGeL8t7yVmAEAnhNfXl-bFD_lYIsOWQ7YDDMR2/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-2845681706244883587</id><published>2010-12-02T22:36:00.000-08:00</published><updated>2010-12-02T22:41:46.628-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[IPhone] Send SMS sample with IPhone</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;Introduction&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;I will demo some sample to present how to send SMS in iphone programming.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;Sample 1 &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The easiest way is this demo.&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;BACKGROUND: #ffffff;color:#000000;&quot; &gt;[[UIApplication sharedApplication] openURL: @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;sms:12345678&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;];&lt;/pre&gt;&lt;pre style=&quot;BACKGROUND: #ffffff;color:#000000;&quot; &gt;&lt;br /&gt; &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;BACKGROUND: #ffffff;color:#000000;&quot; &gt;HTML links:  &lt;br /&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;a&lt;/span&gt; href=&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;sms:&quot;&lt;/span&gt; mce_href=&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;sms:&quot;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&gt;&lt;/span&gt;Launch Text Application&lt;span style=&quot;color:#7f0055;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;a&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&gt;&lt;/span&gt;   &lt;br /&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;a&lt;/span&gt; href=&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;sms:1-408-555-1212&quot;&lt;/span&gt; mce_href=&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;sms:1-408-555-1212&quot;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&gt;&lt;/span&gt;New SMS Message&lt;span style=&quot;color:#7f0055;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;a&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&gt;&lt;/span&gt;   &lt;br /&gt; &lt;br /&gt;Native application URL strings:  &lt;br /&gt; &lt;br /&gt;sms:   &lt;br /&gt;sms:1-408-555-1212&lt;/pre&gt;&lt;pre style=&quot;BACKGROUND: #ffffff;color:#000000;&quot; &gt;&lt;br /&gt; &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;Sample 2&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;We can use MessageUI Framework and MFMessageComposeViewController to send SMS.&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;BACKGROUND: #ffffff;color:#000000;&quot; &gt;-(IBAction) sendInAppSMS:(id) sender&lt;br /&gt;{&lt;br /&gt;    MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease];&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;if&lt;/span&gt;([MFMessageComposeViewController canSendText])&lt;br /&gt;    {&lt;br /&gt;        controller.body = @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Hello from Mugunth&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;        controller.recipients = [NSArray arrayWithObjects:@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;12345678&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;, @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;87654321&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;, nil];&lt;br /&gt;        controller.messageComposeDelegate = self;&lt;br /&gt;        [self presentModalViewController:controller animated:YES];&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;You have to handle a callback method of MFMessageComposeViewControllerDelegate so as to dismiss the modal view controller.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;BACKGROUND: #ffffff;color:#000000;&quot; &gt;- (&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt;)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;switch&lt;/span&gt; (result) {&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;case &lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;MessageComposeResultCancelled&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;:&lt;/span&gt;&lt;br /&gt;            NSLog(@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Cancelled&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;);&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;break&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;case &lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;MessageComposeResultFailed&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;:&lt;/span&gt;&lt;br /&gt;            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;MyApp&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt; message:@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Unknown Error&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;br /&gt;                                                           delegate:self cancelButtonTitle:@”OK” otherButtonTitles: nil];&lt;br /&gt;            [alert show];&lt;br /&gt;            [alert release];&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;break&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;case &lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;MessageComposeResultSent&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;break&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;default&lt;/span&gt;:&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;break&lt;/span&gt;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    [self dismissModalViewControllerAnimated:YES];&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;Sample 3&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;This is a full sample code for MFMessageComposeViewController.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;BACKGROUND: #ffffff&quot; color=&quot;#000000&quot;&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;//  SMS2ViewController.h&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;//  SMS2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;UIKit&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;UIKit&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;MessageUI&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;MessageUI&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;MessageUI&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;MFMessageComposeViewController&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;@interface SMS2ViewController : UIViewController &amp;lt;MFMessageComposeViewControllerDelegate&gt;&lt;br /&gt;{&lt;br /&gt;    UILabel *message;&lt;br /&gt;}&lt;br /&gt;@property (nonatomic, retain) UILabel *message;&lt;br /&gt;-(&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt;)displayComposerSheet;&lt;br /&gt;@end&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;BACKGROUND: #ffffff&quot; color=&quot;#000000&quot;&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;//  SMS2ViewController.m&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;//  SMS2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;SMS2ViewController.h&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;br /&gt;@implementation SMS2ViewController&lt;br /&gt;@synthesize message;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;/*&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;// The designated initializer.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt; Override to perform setup that is required before the view is loaded.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt; - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;    if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;    {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;        // Custom initialization&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;    return self;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;*/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;// Implement loadView to create a view hierarchy programmatically, without using a nib.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;/*&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;- (void)loadView&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;*/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.&lt;/span&gt;&lt;br /&gt;- (&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt;)viewDidLoad&lt;br /&gt;{&lt;br /&gt;    [super viewDidLoad];&lt;br /&gt;    UIButton *smsButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];&lt;br /&gt;    smsButton.frame = CGRectMake(97.0, 301.0, 125.0, 37.0);&lt;br /&gt;    smsButton.adjustsImageWhenDisabled = YES;&lt;br /&gt;    [smsButton setTitle:@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt; Send SMS&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt; forState:UIControlStateNormal];&lt;br /&gt;    [smsButton setTitleColor:[UIColor colorWithWhite:0.000 alpha:1.000] forState:UIControlStateNormal];&lt;br /&gt;    [smsButton setTitleShadowColor:[UIColor colorWithWhite:0.000 alpha:1.000] forState:UIControlStateNormal];&lt;br /&gt;    [smsButton addTarget:self action:@selector(displayComposerSheet) forControlEvents:UIControlEventTouchUpInside];&lt;br /&gt;    message = [[UILabel alloc] initWithFrame:CGRectMake(20.0, 360.0, 280.0, 29.0)];&lt;br /&gt;    message.frame = CGRectMake(20.0, 360.0, 280.0, 29.0);&lt;br /&gt;    message.adjustsFontSizeToFitWidth = YES;&lt;br /&gt;    message.hidden = YES;&lt;br /&gt;    message.text = @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;    message.userInteractionEnabled = NO;&lt;br /&gt;    [self.view addSubview:smsButton];&lt;br /&gt;    [self.view addSubview:message];&lt;br /&gt;}&lt;br /&gt;-(&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt;)displayComposerSheet&lt;br /&gt;{&lt;br /&gt;    MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];&lt;br /&gt;    icker.messageComposeDelegate = self;&lt;br /&gt;    picker.recipients = [NSArray arrayWithObject:@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;123456789&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;];&lt;br /&gt;    &lt;span style=&quot;color:#3f7f59;&quot;&gt;// your recipient number or self for testing&lt;/span&gt;&lt;br /&gt;    picker.body = @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;test from OS4&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;    [self presentModalViewController:picker animated:YES];&lt;br /&gt;    [picker release];&lt;br /&gt;    NSLog(@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;SMS fired&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;);&lt;br /&gt;}&lt;br /&gt;- (&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt;)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result&lt;br /&gt;{&lt;br /&gt;    message.hidden = NO;\&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;switch&lt;/span&gt; (result)&lt;br /&gt;    {&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;case &lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;MessageComposeResultCancelled&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;:&lt;/span&gt;&lt;br /&gt;            message.text = @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Result: canceled&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;            NSLog(@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Result: canceled&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;);&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;break&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;case &lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;MessageComposeResultSent&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;:&lt;/span&gt;&lt;br /&gt;            message.text = @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Result: sent&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;            NSLog(@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Result: sent&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;);&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;break&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;case &lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;MessageComposeResultFailed&lt;/span&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;:&lt;/span&gt;&lt;br /&gt;            message.text = @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Result: failed&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;            NSLog(@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Result: failed&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;);&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;break&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;default&lt;/span&gt;:&lt;br /&gt;            message.text = @&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Result: not sent&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;            NSLog(@&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Result: not sent&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;);&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;break&lt;/span&gt;;&lt;br /&gt;     }&lt;br /&gt;     [self dismissModalViewControllerAnimated:YES];&lt;br /&gt;}&lt;br /&gt;&lt;span style=&quot;color:#3f7f59;&quot;&gt;// Override to allow orientations other than the default portrait orientation.&lt;/span&gt;&lt;br /&gt;- (&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;BOOL&lt;/span&gt;)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;return&lt;/span&gt; YES;&lt;br /&gt;}&lt;br /&gt;- (&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt;)didReceiveMemoryWarning&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color:#3f7f59;&quot;&gt;// Releases the view if it doesn&#39;t have a superview.&lt;/span&gt;&lt;br /&gt;    [super didReceiveMemoryWarning];&lt;br /&gt;    &lt;span style=&quot;color:#3f7f59;&quot;&gt;// Release any cached data, images, etc that aren&#39;t in use.&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;- (&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt;)viewDidUnload&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color:#3f7f59;&quot;&gt;// Release any retained subviews of the main view.&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color:#3f7f59;&quot;&gt;// e.g. self.myOutlet = nil;&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;- (&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt;)dealloc&lt;br /&gt;{&lt;br /&gt;    [super dealloc];&lt;br /&gt;}&lt;br /&gt;@end&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/2845681706244883587/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/12/iphone-send-sms-sample-with-iphone.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2845681706244883587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2845681706244883587'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/12/iphone-send-sms-sample-with-iphone.html' title='[IPhone] Send SMS sample with IPhone'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-2066692746486893747</id><published>2010-11-28T04:40:00.000-08:00</published><updated>2010-11-28T04:46:56.177-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[IPhone] Remind to rank/review sample code</title><content type='html'>&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;Introduction&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;How can we remind user to review or rank in App?&lt;br /&gt;We can show a alert box to remind user to review, I writed a sample code using singleton to remind user.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;How to use&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[[CloudReview sharedReview]reviewFor:395519376];&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;CloudReview.h&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;color: rgb(0, 0, 0); background: none repeat scroll 0% 0% rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;Foundation&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;Foundation&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;UIKit&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;UIKit&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;interface CloudReview &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt; NSObject &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt; m_appleID&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;CloudReview&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;sharedReview&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt; reviewFor&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;appleID&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;alertView&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;UIAlertView &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;alertView clickedButtonAtIndex&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;NSInteger&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;buttonIndex&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;end&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;CloudReview.m&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;color: rgb(0, 0, 0); background: none repeat scroll 0% 0% rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 74, 67);&quot;&gt;#import &lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;CloudReview.h&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;implementation CloudReview&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;static&lt;/span&gt; CloudReview&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt; _sharedReview &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; nil&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;CloudReview&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;sharedReview&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;synchronized&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;CloudReview &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;!&lt;/span&gt;_sharedReview&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;self alloc&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt; init&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;      &lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; _sharedReview&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; nil&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;id&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;alloc&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;synchronized&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;CloudReview &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       NSAssert&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;_sharedReview &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; nil&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;Attempted to allocate a second instance of a singleton.&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       _sharedReview &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;super alloc&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; _sharedReview&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; nil&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;reviewFor&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;appleID&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   m_appleID &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; appleID&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(96, 48, 0);&quot;&gt;BOOL&lt;/span&gt; neverRate &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;NSUserDefaults standardUserDefaults&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt; boolForKey&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;neverRate&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;neverRate &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; YES&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(105, 105, 105);&quot;&gt;//Show alert here&lt;/span&gt;&lt;br /&gt;       UIAlertView &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;alert&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       alert &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;UIAlertView alloc&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt; initWithTitle&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;NSLocalizedString&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;rate_title&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;Rate My Appication&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                                          message&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;NSLocalizedString&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;rate_main&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;Please Rate my Application&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                                         delegate&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt; self&lt;br /&gt;                                cancelButtonTitle&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;NSLocalizedString&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;rate_cancel&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;Cancel&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;                                otherButtonTitles&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt; NSLocalizedString&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;rate_now&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;Rate Now&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;br /&gt;                NSLocalizedString&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;rate_never&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;Never Rate&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt; nil&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;alert show&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;alert release&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;alertView&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;UIAlertView &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;alertView clickedButtonAtIndex&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;NSInteger&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;buttonIndex&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(105, 105, 105);&quot;&gt;// Never Review Button&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;buttonIndex &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 140, 0);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;NSUserDefaults standardUserDefaults&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt; setBool&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;YES forKey&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;neverRate&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(105, 105, 105);&quot;&gt;// Review Button&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 0, 0); font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;buttonIndex &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 140, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;NSUserDefaults standardUserDefaults&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt; setBool&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;YES forKey&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;neverRate&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       NSString &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;*&lt;/span&gt;str &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;NSString stringWithFormat&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 230);&quot;&gt;itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&amp;amp;id=&lt;/span&gt;&lt;span style=&quot;color: rgb(15, 105, 255);&quot;&gt;%d&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;,&lt;/span&gt;&lt;br /&gt;               m_appleID &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       NSLog&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;(&lt;/span&gt;str&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;UIApplication sharedApplication&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt; openURL&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;[&lt;/span&gt;NSURL URLWithString&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;:&lt;/span&gt;str&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 0, 128);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(128, 128, 48);&quot;&gt;@&lt;/span&gt;end&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/2066692746486893747/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/11/iphone-remind-to-rankreview-sample-code.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2066692746486893747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2066692746486893747'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/11/iphone-remind-to-rankreview-sample-code.html' title='[IPhone] Remind to rank/review sample code'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-7471537050139949958</id><published>2010-11-10T21:55:00.001-08:00</published><updated>2010-11-10T21:57:31.852-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DesignPatterns"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>[Design Pattern] MVC pattern</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZSzihJ4qc-IHOrJx65ag1YVowYtT7Vprc0Z4v3USU3ToR-j-TrjRHO_iknc6k3jfT1AZq6LuyZl6WxZNppqk-Ex9FbgjuPNNY5y8ewFe5Yq4AKoRBgrCDYy_SN_aNXDagBLwPfjLSjVSq/s1600/350px-ModelViewControllerDiagram2_svg.png&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 350px; DISPLAY: block; HEIGHT: 160px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5538166915928380370&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZSzihJ4qc-IHOrJx65ag1YVowYtT7Vprc0Z4v3USU3ToR-j-TrjRHO_iknc6k3jfT1AZq6LuyZl6WxZNppqk-Ex9FbgjuPNNY5y8ewFe5Yq4AKoRBgrCDYy_SN_aNXDagBLwPfjLSjVSq/s400/350px-ModelViewControllerDiagram2_svg.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Model–View–Controller (MVC) is a software architecture,[1] currently considered an architectural pattern used in software engineering. The pattern isolates &quot;domain logic&quot; (the application logic for the user) from the user interface (input and presentation), permitting independent development, testing and maintenance of each (separation of concerns).&lt;br /&gt;&lt;br /&gt;The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller). In event-driven systems, the model notifies observers (usually views) when the information changes so that they can react.&lt;br /&gt;&lt;br /&gt;The view renders the model into a form suitable for interaction, typically a user interface element. Multiple views can exist for a single model for different purposes. A viewport typically has a one to one correspondence with a display surface and knows how to render to it.&lt;br /&gt;&lt;br /&gt;The controller receives input and initiates a response by making calls on model objects. A controller accepts input from the user and instructs the model and viewport to perform actions based on that input.&lt;br /&gt;&lt;br /&gt;An MVC application may be a collection of model/view/controller triads, each responsible for a different UI element. The Swing GUI system, for example, models almost all interface components as individual MVC systems.&lt;br /&gt;&lt;br /&gt;MVC is often seen in web applications where the view is the HTML or XHTML generated by the app. The controller receives GET or POST input and decides what to do with it, handing over to domain objects (i.e. the model) which contain the business rules and know how to carry out specific tasks such as processing a new subscription, and which hand control to (X)HTML-generating components such as templating engines, XML pipelines, AJAX callbacks, etc.&lt;br /&gt;&lt;br /&gt;The model is not a database: the &#39;model&#39; in MVC is both the data and the business/domain logic needed to manipulate the data in the application. Many applications use a persistent storage mechanism such as a database to store data. MVC does not specifically mention the data access layer because it is understood to be underneath or encapsulated by the model. Models are not data access objects; however, in very simple apps that have little domain logic there is no real distinction to be made. Active Record is an accepted design pattern which merges domain logic and data access code - a model which knows how to persist itself. &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://code.google.com/p/cloudorz/downloads/detail?name=CloudMVC.rar&amp;amp;can=2&amp;amp;q=#makechanges&quot;&gt;MVC sample code download 1&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://code.google.com/p/cloudorz/downloads/detail?name=CloudMVC2.rar&amp;amp;can=2&amp;amp;q=#makechanges&quot;&gt;MVC sample code download 2&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/7471537050139949958/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/11/design-pattern-mvc-pattern.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/7471537050139949958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/7471537050139949958'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/11/design-pattern-mvc-pattern.html' title='[Design Pattern] MVC pattern'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEjZSzihJ4qc-IHOrJx65ag1YVowYtT7Vprc0Z4v3USU3ToR-j-TrjRHO_iknc6k3jfT1AZq6LuyZl6WxZNppqk-Ex9FbgjuPNNY5y8ewFe5Yq4AKoRBgrCDYy_SN_aNXDagBLwPfjLSjVSq/s72-c/350px-ModelViewControllerDiagram2_svg.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-8714106079769778676</id><published>2010-11-10T21:51:00.000-08:00</published><updated>2010-11-10T21:54:29.395-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DesignPatterns"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>[Design Pattern] Facade Pattern</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRtdDYjjYb5huTU1bN3z9Xc4tGRb1QgnHdFZHuaWpJo0Ix9jlXJcBGw63-Kblhd-R26p1vpkEOgFcfmUfnrMogX6MbNMY2E1f68A4ieulkB3tRmk5z3WkAvigyVbyv0mu_jC9EYCivK5Uc/s1600/facade.jpg&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 324px; DISPLAY: block; HEIGHT: 184px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5538166199913816338&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRtdDYjjYb5huTU1bN3z9Xc4tGRb1QgnHdFZHuaWpJo0Ix9jlXJcBGw63-Kblhd-R26p1vpkEOgFcfmUfnrMogX6MbNMY2E1f68A4ieulkB3tRmk5z3WkAvigyVbyv0mu_jC9EYCivK5Uc/s400/facade.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;The facade pattern is a software engineering design pattern commonly used with Object-oriented programming. (The name is by analogy to an architectural facade.)&lt;br /&gt;&lt;br /&gt;A facade is an object that provides a simplified interface to a larger body of code, such as a class library. A facade can:&lt;br /&gt;&lt;br /&gt;make a software library easier to use, understand and test, since the facade has convenient methods for common tasks;&lt;br /&gt;make code that uses the library more readable, for the same reason;&lt;br /&gt;reduce dependencies of outside code on the inner workings of a library, since most code uses the facade, thus allowing more flexibility in developing the system;&lt;br /&gt;wrap a poorly-designed collection of APIs with a single well-designed API (as per task needs).&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;a href=&quot;http://code.google.com/p/cloudorz/downloads/detail?name=FacadeDemo.rar&amp;amp;can=2&amp;amp;q=#makechanges&quot;&gt;Sample Code download&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/8714106079769778676/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/11/design-pattern-facade-pattern.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8714106079769778676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8714106079769778676'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/11/design-pattern-facade-pattern.html' title='[Design Pattern] Facade Pattern'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEhRtdDYjjYb5huTU1bN3z9Xc4tGRb1QgnHdFZHuaWpJo0Ix9jlXJcBGw63-Kblhd-R26p1vpkEOgFcfmUfnrMogX6MbNMY2E1f68A4ieulkB3tRmk5z3WkAvigyVbyv0mu_jC9EYCivK5Uc/s72-c/facade.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-4971663886975272588</id><published>2010-10-28T20:33:00.000-07:00</published><updated>2010-10-29T20:53:57.509-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="App"/><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[IPhone] Fight Bingo Lite V1.0</title><content type='html'>&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;Category top free 100 in 15 countries.&lt;br /&gt;In Taiwan, Fight Bingo Lite got top 7.&lt;br /&gt;Thank you very much.^^&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPkJMuJPRcY_AJ8Ey1QSao-Hkg0SoEsTCq_VdL_DyF-6q-RkCpbOcBQlm23umBc-Q6i7SeF52xEcRmyNK8VImaDdBTrGbv8CY1eRI9iIgfoHTSZfhbCzaRzxTvUF2SgeBY9dBe3CjPsjd8/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2010-10-30+%E4%B8%8A%E5%8D%8811.42.39.png&quot;&gt;&lt;img style=&quot;display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 262px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPkJMuJPRcY_AJ8Ey1QSao-Hkg0SoEsTCq_VdL_DyF-6q-RkCpbOcBQlm23umBc-Q6i7SeF52xEcRmyNK8VImaDdBTrGbv8CY1eRI9iIgfoHTSZfhbCzaRzxTvUF2SgeBY9dBe3CjPsjd8/s400/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2010-10-30+%E4%B8%8A%E5%8D%8811.42.39.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5533682304094539778&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Fight Bingo Lite was on sales.&lt;br /&gt;Simple AI with Lite version.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://itunes.apple.com/us/app/fight-bingo-lite/id399638337?mt=8&quot;&gt;http://itunes.apple.com/us/app/fight-bingo-lite/id399638337?mt=8&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDpP1nEN_BG6qIW-8qtYdNrenrYyzaRxVI3T6B0CbHlLg3qFRAiJCvnAUJZXRkkZeDuRnjVqbV6IkfX6wx376A-sWAL5rtPUI96brvDNlei6gapljqbO1JSgM4Z2xnfAMSDA89Hb9v4DPZ/s1600/mzl_efoaypob_320x480-75.jpg&quot;&gt;&lt;img style=&quot;text-align: center; margin: 0px auto 10px; width: 320px; display: block; height: 214px;&quot; id=&quot;BLOGGER_PHOTO_ID_5533306588375850418&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDpP1nEN_BG6qIW-8qtYdNrenrYyzaRxVI3T6B0CbHlLg3qFRAiJCvnAUJZXRkkZeDuRnjVqbV6IkfX6wx376A-sWAL5rtPUI96brvDNlei6gapljqbO1JSgM4Z2xnfAMSDA89Hb9v4DPZ/s320/mzl_efoaypob_320x480-75.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii2pJH1Adp9c1fEt-nc63G7j1QFJGDIgSfq_xNCIZ9M7lrsjB0XCn44ZQigQLAst_h1ulnQGs8bdaSricxvCQZiBU0x0VINdDFCSHmNyeuYx1v3JHeTx1GCKRJ_0p5Csm86WDuEUmhdlsa/s1600/mzl_bgcweaas_320x480-75.jpg&quot;&gt;&lt;img style=&quot;text-align: center; margin: 0px auto 10px; width: 320px; display: block; height: 214px;&quot; id=&quot;BLOGGER_PHOTO_ID_5533306582665858706&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii2pJH1Adp9c1fEt-nc63G7j1QFJGDIgSfq_xNCIZ9M7lrsjB0XCn44ZQigQLAst_h1ulnQGs8bdaSricxvCQZiBU0x0VINdDFCSHmNyeuYx1v3JHeTx1GCKRJ_0p5Csm86WDuEUmhdlsa/s320/mzl_bgcweaas_320x480-75.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/4971663886975272588/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/10/iphone-fight-bingo-lite-v10.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/4971663886975272588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/4971663886975272588'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/10/iphone-fight-bingo-lite-v10.html' title='[IPhone] Fight Bingo Lite V1.0'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEiPkJMuJPRcY_AJ8Ey1QSao-Hkg0SoEsTCq_VdL_DyF-6q-RkCpbOcBQlm23umBc-Q6i7SeF52xEcRmyNK8VImaDdBTrGbv8CY1eRI9iIgfoHTSZfhbCzaRzxTvUF2SgeBY9dBe3CjPsjd8/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2010-10-30+%E4%B8%8A%E5%8D%8811.42.39.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-7221068964053932331</id><published>2010-10-18T19:59:00.000-07:00</published><updated>2010-10-21T10:28:28.386-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="App"/><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[iPhone] Bingo Fight v1.1 update</title><content type='html'>V1.1.1 will fix this bug.&lt;br /&gt;V1.1.1 was already in review.&lt;br /&gt;Bug report:&lt;br /&gt;Found a bug, when palyer won then click new game.&lt;br /&gt;Touch board could not response.&lt;br /&gt;Click new game again will fix it.&lt;br /&gt;I will fix thisbug at next version.&lt;br /&gt;Thanks very much.&lt;br /&gt;&lt;br /&gt;Bingo Fight update to v1.1&lt;br /&gt;1. Add fighter&#39;s fighting animation.&lt;br /&gt;2. You can see two people fight with fire ball.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://itunes.apple.com/us/app/bingo-fight/id395519376?mt=8&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;download link&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Promotional Codes:&lt;br /&gt;A6RWM3MHJNTR&lt;br /&gt;69W36JX3MPM6&lt;br /&gt;EAM3W9WJ93LL&lt;br /&gt;ENNFXJ4PMH67&lt;br /&gt;JL7MP3R3N4J6&lt;br /&gt;JR673LW63L7W&lt;br /&gt;9EA3EW3KXR33&lt;br /&gt;9ENKF3XAE4FY&lt;br /&gt;TWK6WXX9RHKN&lt;br /&gt;LNAF6EKKMFEM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYA9_CfQgmUMohnb6iTzBQbxvkTTJ_lCq31UwlGPPxOvjca88DJrByrqVhAku_wonrh2Q25jSLaJ4Co9ecRrU2CVtClxEwNl7MlS3XFvR5Gc_qBKI941RxtH7Aqrr0OC1czib9BcZwfjW1/s1600/bingoQRUS.jpg&quot;&gt;&lt;img style=&quot;text-align: center; margin: 0px auto 10px; width: 196px; display: block; height: 196px;&quot; id=&quot;BLOGGER_PHOTO_ID_5529586989336692578&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYA9_CfQgmUMohnb6iTzBQbxvkTTJ_lCq31UwlGPPxOvjca88DJrByrqVhAku_wonrh2Q25jSLaJ4Co9ecRrU2CVtClxEwNl7MlS3XFvR5Gc_qBKI941RxtH7Aqrr0OC1czib9BcZwfjW1/s320/bingoQRUS.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_bJ8esEvHnkFNCFf0B6j_J9tqbpjN0lxQqxtmzdjFFTUWYr-pYNat6RYrawwRY640A_jZ4VnvssgMJePhqSruQ_WU18uPOfkM8Rt9gxMNffiI87sQ1zgmUEMHLfjkf1VgV2F99-F9AsnH/s1600/bingo1.JPG&quot;&gt;&lt;img style=&quot;text-align: center; margin: 0px auto 10px; width: 320px; display: block; height: 214px;&quot; id=&quot;BLOGGER_PHOTO_ID_5529585433205137778&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_bJ8esEvHnkFNCFf0B6j_J9tqbpjN0lxQqxtmzdjFFTUWYr-pYNat6RYrawwRY640A_jZ4VnvssgMJePhqSruQ_WU18uPOfkM8Rt9gxMNffiI87sQ1zgmUEMHLfjkf1VgV2F99-F9AsnH/s320/bingo1.JPG&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF4asJUxtH1Nr4e0SyNvJecmqSM8egYLc7lZsf0FH_5U4tBTsUjzyiAmQdjTvIVxNpCW9a6Vbq0UuU8gasgCU21-pVjfJUC_EXUdB1R8qyRWOwknEuis8pTQZ2bHzUIogY7S4QEEZmHdsY/s1600/Bingo2.JPG&quot;&gt;&lt;img style=&quot;text-align: center; margin: 0px auto 10px; width: 320px; display: block; height: 210px;&quot; id=&quot;BLOGGER_PHOTO_ID_5529585432485998770&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF4asJUxtH1Nr4e0SyNvJecmqSM8egYLc7lZsf0FH_5U4tBTsUjzyiAmQdjTvIVxNpCW9a6Vbq0UuU8gasgCU21-pVjfJUC_EXUdB1R8qyRWOwknEuis8pTQZ2bHzUIogY7S4QEEZmHdsY/s320/Bingo2.JPG&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/7221068964053932331/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/10/iphone-bingo-fight-v11-update.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/7221068964053932331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/7221068964053932331'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/10/iphone-bingo-fight-v11-update.html' title='[iPhone] Bingo Fight v1.1 update'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEgYA9_CfQgmUMohnb6iTzBQbxvkTTJ_lCq31UwlGPPxOvjca88DJrByrqVhAku_wonrh2Q25jSLaJ4Co9ecRrU2CVtClxEwNl7MlS3XFvR5Gc_qBKI941RxtH7Aqrr0OC1czib9BcZwfjW1/s72-c/bingoQRUS.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-2593331483991181564</id><published>2010-10-06T20:58:00.000-07:00</published><updated>2010-10-18T20:03:48.456-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="App"/><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[IPhone] My first iphone app（Bingo Fight）</title><content type='html'>It&#39;s my first one Iphone Game （Bingo Fight） on sale now. The idea is from an Bingo Game that I made,&lt;br /&gt;just simple rules that just get five lines to win.&lt;br /&gt;Download with the link if interested as a treat to me for drinking.&lt;br /&gt;&lt;br /&gt;Thanks Page Huang to support.&lt;br /&gt;&lt;br /&gt;How to Play:&lt;br /&gt;You must touch Left Board with number, then computer will cohice a number.&lt;br /&gt;Five numbers to get a line.&lt;br /&gt;If you get five lines first, you will win the game.&lt;br /&gt;&lt;br /&gt;Promotional Codes：&lt;br /&gt;X3KPAT9R4HA7&lt;br /&gt;PH9KT3L4LEAY&lt;br /&gt;TEMMW94ML4MA&lt;br /&gt;NF7FHRYJ4YXJ&lt;br /&gt;7ETX9TJ6RXHK&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://itunes.apple.com/us/app/bingo-fight/id395519376?mt=8&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;download link&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUouzqhiz9KrBOPJ_99MSlAt8s4J06XkayDmC0cJDkhkj4MX9MNjWmek1fn8BBjkBCazLAo2nGRnMFziRVtr78JR6LBOedMo3TPHf5LjYbwqRwCDcN0oDl-ii_EdY9E4TSgN5Pvu57PaKx/s1600/bingoQRUS.jpg&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 196px; DISPLAY: block; HEIGHT: 196px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5525179691795551074&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUouzqhiz9KrBOPJ_99MSlAt8s4J06XkayDmC0cJDkhkj4MX9MNjWmek1fn8BBjkBCazLAo2nGRnMFziRVtr78JR6LBOedMo3TPHf5LjYbwqRwCDcN0oDl-ii_EdY9E4TSgN5Pvu57PaKx/s320/bingoQRUS.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-XOfJV_URg4rjqR3lYL-RkF41KI6jinO8sAVq6ptHOIwsDozGAu9t_lm_e37YcW-syBE0bA6bp-5qjsMCpNjFfVPyQSvD96xHhpYHFb8rl1ptt-LH2BJy4Z_HsIzn7mXye5o6iFoKOWez/s1600/bingoQR.jpg&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtz2htAZwaamkI4mYwqT3OiEOlWKe9seW54EfXAOVSCOADAUcRDMAT04x7rzvM_ErsvBSs5dl5KIrTkV7WelcWmn55HMLdKqltws97b-615Q9cW-OTfqRfNmE4pBzAaabVqlOcaNLDInQS/s1600/1.JPG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 267px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5525140979932853282&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtz2htAZwaamkI4mYwqT3OiEOlWKe9seW54EfXAOVSCOADAUcRDMAT04x7rzvM_ErsvBSs5dl5KIrTkV7WelcWmn55HMLdKqltws97b-615Q9cW-OTfqRfNmE4pBzAaabVqlOcaNLDInQS/s400/1.JPG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQYsKLm3pW7Eo95id-b50CAVmmiZfnapBAyllinvnbI2BD9aWB4qSHmuI9uy4_UX5dJ6zoyM7WQNksD0wDyP_TZ6QDFRgMaqcHpA-nRfa1drWUb8hG3uxltqzsvgGYtLNgFEw0FIrkGMEw/s1600/2.JPG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 267px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5525140973497289842&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQYsKLm3pW7Eo95id-b50CAVmmiZfnapBAyllinvnbI2BD9aWB4qSHmuI9uy4_UX5dJ6zoyM7WQNksD0wDyP_TZ6QDFRgMaqcHpA-nRfa1drWUb8hG3uxltqzsvgGYtLNgFEw0FIrkGMEw/s400/2.JPG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4RiEu7enlknHZKQnH9D594q5BFtjF6GGkLJAFucsB0Pa2at_RJLqFDdogMk8o9SKzJ5fz8DeAM-TtsasigkcNG4lSveWvuVwXVHLhAIUZwdiBIT9Pxk3XLc95FGdkees8sHsMGz7HfUgX/s1600/3.JPG&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 267px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5525140970658610402&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4RiEu7enlknHZKQnH9D594q5BFtjF6GGkLJAFucsB0Pa2at_RJLqFDdogMk8o9SKzJ5fz8DeAM-TtsasigkcNG4lSveWvuVwXVHLhAIUZwdiBIT9Pxk3XLc95FGdkees8sHsMGz7HfUgX/s400/3.JPG&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/2593331483991181564/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/10/iphone-my-first-iphone-app.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2593331483991181564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/2593331483991181564'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/10/iphone-my-first-iphone-app.html' title='[IPhone] My first iphone app（Bingo Fight）'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEjUouzqhiz9KrBOPJ_99MSlAt8s4J06XkayDmC0cJDkhkj4MX9MNjWmek1fn8BBjkBCazLAo2nGRnMFziRVtr78JR6LBOedMo3TPHf5LjYbwqRwCDcN0oDl-ii_EdY9E4TSgN5Pvu57PaKx/s72-c/bingoQRUS.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-8760890418685847651</id><published>2010-09-27T19:40:00.000-07:00</published><updated>2010-09-27T19:41:39.932-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>IDP ready, I will upload my app to App Store tonight</title><content type='html'>IDP ready, I will upload my app to App Store tonight.&lt;br /&gt;Ya!!!!!</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/8760890418685847651/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/09/idp-ready-i-will-upload-my-app-to-app.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8760890418685847651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8760890418685847651'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/09/idp-ready-i-will-upload-my-app-to-app.html' title='IDP ready, I will upload my app to App Store tonight'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-6396628692328854863</id><published>2010-09-07T09:00:00.000-07:00</published><updated>2010-09-07T09:09:29.096-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><title type='text'>[C++] Hex string convert to integer with stringstream</title><content type='html'>Sometimes we need to convert hex string to integer.&lt;br /&gt;Usually we will use this alrorithm.&lt;br /&gt;&lt;pre style=&quot;color: rgb(0, 0, 0); background: none repeat scroll 0% 0% rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;char&lt;/span&gt; xtod(&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;char&lt;/span&gt; c) {&lt;br /&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;if&lt;/span&gt; (c&gt;=&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;0&#39;&lt;/span&gt; &amp;amp;&amp;amp; c&amp;lt;=&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;9&#39;&lt;/span&gt;) &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; c-&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;0&#39;&lt;/span&gt;;&lt;br /&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;if&lt;/span&gt; (c&gt;=&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;A&#39;&lt;/span&gt; &amp;amp;&amp;amp; c&amp;lt;=&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;F&#39;&lt;/span&gt;) &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; c-&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;A&#39;&lt;/span&gt;+10;&lt;br /&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;if&lt;/span&gt; (c&gt;=&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;a&#39;&lt;/span&gt; &amp;amp;&amp;amp; c&amp;lt;=&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;f&#39;&lt;/span&gt;) &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; c-&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&#39;a&#39;&lt;/span&gt;+10;&lt;br /&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; c=0;        &lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;// not Hex digit&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;This is a conventional usage.&lt;br /&gt;Tonight I found a question in CSDN, then I try to found a better solution.&lt;br /&gt;In stackoverflow, I found this answer.&lt;br /&gt;It is very nice.&lt;br /&gt;&lt;pre style=&quot;color: rgb(0, 0, 0); background: none repeat scroll 0% 0% rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(127, 0, 85);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85);&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 63, 191);&quot;&gt;sstream&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85);&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 63, 191);&quot;&gt;iostream&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;main&lt;/span&gt;() {&lt;br /&gt;  &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;unsigned&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;int&lt;/span&gt; x; &lt;br /&gt;  std::&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;stringstream&lt;/span&gt; ss;&lt;br /&gt;  ss &amp;lt;&amp;lt; std::hex &amp;lt;&amp;lt; &lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;FF&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;  ss &gt;&gt; x;&lt;br /&gt;  &lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;// output it as a signed type&lt;/span&gt;&lt;br /&gt;  std::&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;cout&lt;/span&gt; &amp;lt;&amp;lt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;static_cast&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;int&lt;/span&gt;&gt;(x) &amp;lt;&amp;lt; std::endl;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/6396628692328854863/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/09/c-hex-string-convert-to-integer-with.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/6396628692328854863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/6396628692328854863'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/09/c-hex-string-convert-to-integer-with.html' title='[C++] Hex string convert to integer with stringstream'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-8337697322631293742</id><published>2010-08-20T10:39:00.000-07:00</published><updated>2010-08-20T10:43:46.193-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="OOP"/><title type='text'>[C] OOP in C sample</title><content type='html'>Because I got a job, it was a C project.&lt;br /&gt;So I am learning how to implement OOP in C now.&lt;br /&gt;This is a example searched form google.&lt;br /&gt;I use &lt;span style=&quot;font-weight: bold;&quot;&gt;Xcode 3.2.3&lt;/span&gt; with&lt;span style=&quot;font-weight: bold;&quot;&gt; gcc4.2&lt;/span&gt; to implement and test it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;color: rgb(0, 0, 0); background: none repeat scroll 0% 0% rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(127, 0, 85);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85);&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 63, 191);&quot;&gt;stdio.h&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85);&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 63, 191);&quot;&gt;stdlib.h&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;typedef&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;void&lt;/span&gt; (*Walk_Fun)(&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;struct&lt;/span&gt; Animal *a_This);&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;typedef&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;struct&lt;/span&gt; Animal * (*Dtor_Fun)(&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;struct&lt;/span&gt; Animal *a_This);&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;typedef&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;struct&lt;/span&gt; _Animal_Vtable{&lt;br /&gt;   Walk_Fun Walk;&lt;br /&gt;   Dtor_Fun Dtor;&lt;br /&gt;}Animal_Vtable;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;typedef&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;struct&lt;/span&gt; _Animal{&lt;br /&gt;   Animal_Vtable vtable;&lt;br /&gt;  &lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;char&lt;/span&gt; *Name;&lt;br /&gt;}Animal;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;typedef&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;struct&lt;/span&gt; _Dog{&lt;br /&gt;   Animal_Vtable vtable;&lt;br /&gt;  &lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;char&lt;/span&gt; *Name; &lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;// mirror member variables for easy access&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;char&lt;/span&gt; *Type;&lt;br /&gt;}Dog;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;void&lt;/span&gt; Animal_Walk(Animal *a_This){&lt;br /&gt;   printf(&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;Animal (&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;%s&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;) walking&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;, a_This-&gt;Name);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;struct&lt;/span&gt; Animal* Animal_Dtor(&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;struct&lt;/span&gt; Animal *a_This){&lt;br /&gt;   printf(&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;animal::dtor&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;);&lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; a_This;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Animal *Animal_Alloc(){&lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; (Animal*)malloc(&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;sizeof&lt;/span&gt;(Animal));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Animal *Animal_New(Animal *a_Animal){&lt;br /&gt;   a_Animal-&gt;vtable.Walk = Animal_Walk;&lt;br /&gt;   a_Animal-&gt;vtable.Dtor = Animal_Dtor;&lt;br /&gt;   a_Animal-&gt;Name = &lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;Anonymous&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; a_Animal;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;void&lt;/span&gt; Animal_Free(Animal *a_This){&lt;br /&gt;   a_This-&gt;vtable.Dtor(a_This);&lt;br /&gt;  &lt;br /&gt;   free(a_This);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;void&lt;/span&gt; Dog_Walk(Dog *a_This){&lt;br /&gt;   printf(&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;Dog walking &lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;%s&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;%s&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;, a_This-&gt;Type, a_This-&gt;Name);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Dog* Dog_Dtor(Dog *a_This){&lt;br /&gt;   &lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;// explicit call to parent destructor&lt;/span&gt;&lt;br /&gt;   Animal_Dtor((Animal*)a_This);&lt;br /&gt;  &lt;br /&gt;   printf(&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;dog::dtor&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;);&lt;br /&gt;  &lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; a_This;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Dog *Dog_Alloc(){&lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; (Dog*)malloc(&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;sizeof&lt;/span&gt;(Dog));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Dog *Dog_New(Dog *a_Dog){&lt;br /&gt;   &lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;// explict call to parent constructor&lt;/span&gt;&lt;br /&gt;   Animal_New((Animal*)a_Dog);&lt;br /&gt;  &lt;br /&gt;   a_Dog-&gt;Type = &lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;Dog type&lt;/span&gt;&lt;span style=&quot;color: rgb(42, 0, 255);&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;   a_Dog-&gt;vtable.Walk = (Walk_Fun) Dog_Walk;&lt;br /&gt;   a_Dog-&gt;vtable.Dtor = (Dtor_Fun) Dog_Dtor;&lt;br /&gt;  &lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; a_Dog;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;main&lt;/span&gt; (&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;int&lt;/span&gt; argc, &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;const&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;char&lt;/span&gt; * argv[]) {&lt;br /&gt;   &lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;/* &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;     base class: &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;     Animal *a_Animal = Animal_New(Animal_Alloc());&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(63, 127, 89);&quot;&gt;     */&lt;/span&gt;&lt;br /&gt;   Animal *a_Animal = (Animal*)Dog_New(Dog_Alloc());&lt;br /&gt;  &lt;br /&gt;   a_Animal-&gt;vtable.Walk(a_Animal);&lt;br /&gt;  &lt;br /&gt;   Animal_Free(a_Animal);&lt;br /&gt;  &lt;br /&gt;   &lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;return&lt;/span&gt; 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/8337697322631293742/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/08/c-oop-in-c-sample.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8337697322631293742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8337697322631293742'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/08/c-oop-in-c-sample.html' title='[C] OOP in C sample'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-3078144040009995883</id><published>2010-08-05T23:09:00.000-07:00</published><updated>2010-08-05T23:14:12.329-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><title type='text'>[IPhone] How to make iphone automatically distinguish  640 * 960 and 320 * 640 resolution</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6YlRx4BWdbM5tnQubev39Wt3DVqLD1pI6dle8dssC2FRtjbzWgGVVM3hKpZGm9MZ1ay6RGUV8NXqbMe5gZWIo7ClEd7KIESOTAGyGxWZIyAB3KKWZsodsC-Hn_uK6BwCsnAXD4LUGEn17/s1600/6_7444_5525d75cf91a13b.png&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 164px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5502175671814031442&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6YlRx4BWdbM5tnQubev39Wt3DVqLD1pI6dle8dssC2FRtjbzWgGVVM3hKpZGm9MZ1ay6RGUV8NXqbMe5gZWIo7ClEd7KIESOTAGyGxWZIyAB3KKWZsodsC-Hn_uK6BwCsnAXD4LUGEn17/s400/6_7444_5525d75cf91a13b.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEsWNhkutT_Neul9Eym856eBNzHwVeS4kx0Q5ihsXGAYXfnHXPQhyphenhyphen1ugHIckpIQ3gaX11bSf0DSRSr_qwhPxCMT9TpLLfOjeKTa-IqQlhuFDm7iza7x96SwveIPQ_PcmbqxHgm907Mji4a/s1600/6_7444_3eb3b72ae9eecd1.png&quot;&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 240px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5502175676388740322&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEsWNhkutT_Neul9Eym856eBNzHwVeS4kx0Q5ihsXGAYXfnHXPQhyphenhyphen1ugHIckpIQ3gaX11bSf0DSRSr_qwhPxCMT9TpLLfOjeKTa-IqQlhuFDm7iza7x96SwveIPQ_PcmbqxHgm907Mji4a/s400/6_7444_3eb3b72ae9eecd1.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using two images named a.png for 480*320 and named a@2x.png for 960*480.&lt;br /&gt;Then use this code.&lt;br /&gt;UIImage* anImage = [UIImage imageNamed:@&quot;a&quot;];</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/3078144040009995883/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/08/iphone-how-to-make-iphone-automatically.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/3078144040009995883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/3078144040009995883'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/08/iphone-how-to-make-iphone-automatically.html' title='[IPhone] How to make iphone automatically distinguish  640 * 960 and 320 * 640 resolution'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEi6YlRx4BWdbM5tnQubev39Wt3DVqLD1pI6dle8dssC2FRtjbzWgGVVM3hKpZGm9MZ1ay6RGUV8NXqbMe5gZWIo7ClEd7KIESOTAGyGxWZIyAB3KKWZsodsC-Hn_uK6BwCsnAXD4LUGEn17/s72-c/6_7444_5525d75cf91a13b.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-9059416756331996126</id><published>2010-08-05T23:04:00.000-07:00</published><updated>2010-08-05T23:06:00.647-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>[.NET] How to draw on desktop</title><content type='html'>This is a demo for draw on desktop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;BACKGROUND: #ffffff;color:#000000;&quot; &gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System.Collections.Generic;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System.ComponentModel;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System.Data;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System.Drawing;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System.Linq;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System.Text;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System.Windows.Forms;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; System.Runtime.InteropServices;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;namespace&lt;/span&gt; DrawDesktop&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;public&lt;/span&gt; partial &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;class&lt;/span&gt; Form1 : Form&lt;br /&gt;    {&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;public&lt;/span&gt; Form1()&lt;br /&gt;        {&lt;br /&gt;            InitializeComponent();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;private&lt;/span&gt; &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt; Form1_Load(&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            IntPtr hdc = GetDCEx(GetDesktopWindow(), IntPtr.Zero, 1027);&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; (Graphics g = Graphics.FromHdc(hdc))&lt;br /&gt;            {&lt;br /&gt;                g.FillEllipse(Brushes.Red, 0, 0, 400, 400);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [DllImport(&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;user32.dll&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;)]&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;static&lt;/span&gt; &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;extern&lt;/span&gt; IntPtr GetDesktopWindow();&lt;br /&gt;&lt;br /&gt;        [DllImport(&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;user32.dll&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;)]&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;static&lt;/span&gt; &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;extern&lt;/span&gt; IntPtr GetDCEx(IntPtr hwnd, IntPtr hrgn, &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;uint&lt;/span&gt; flags);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/9059416756331996126/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/08/net-how-to-draw-on-desktop.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/9059416756331996126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/9059416756331996126'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/08/net-how-to-draw-on-desktop.html' title='[.NET] How to draw on desktop'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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-4982371906187064587.post-1920979711246671538</id><published>2010-07-28T08:20:00.001-07:00</published><updated>2010-07-28T08:22:18.246-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPhone"/><category scheme="http://www.blogger.com/atom/ns#" term="Xcode"/><title type='text'>[IPhone] UIKit Inheritance Dialog</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlwIoOiGrstGiMpqUmz60GvA6WdORsur7-j7x0W7CvrdaMGmY8Smc_PbUNArR2n7ZRQHkmUN1-espK0te7Wt4oixGBCKUPUcjI0Jd_5adVeP2V58SBt47q8jYXvgGMtoobaU0ghqSNhn2O/s1600/uikit_classes.jpg&quot;&gt;&lt;img style=&quot;display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 273px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlwIoOiGrstGiMpqUmz60GvA6WdORsur7-j7x0W7CvrdaMGmY8Smc_PbUNArR2n7ZRQHkmUN1-espK0te7Wt4oixGBCKUPUcjI0Jd_5adVeP2V58SBt47q8jYXvgGMtoobaU0ghqSNhn2O/s320/uikit_classes.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5498977426131246018&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/1920979711246671538/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/07/iphone-uikit-inheritance-dialog.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/1920979711246671538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/1920979711246671538'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/07/iphone-uikit-inheritance-dialog.html' title='[IPhone] UIKit Inheritance Dialog'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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/AVvXsEhlwIoOiGrstGiMpqUmz60GvA6WdORsur7-j7x0W7CvrdaMGmY8Smc_PbUNArR2n7ZRQHkmUN1-espK0te7Wt4oixGBCKUPUcjI0Jd_5adVeP2V58SBt47q8jYXvgGMtoobaU0ghqSNhn2O/s72-c/uikit_classes.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4982371906187064587.post-8186487701395813551</id><published>2010-07-26T23:34:00.000-07:00</published><updated>2010-07-26T23:37:06.227-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><title type='text'>[C++] Poker with OOP</title><content type='html'>&lt;strong&gt;&lt;em&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;Introduction&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;I found a OOP question from CSND.&lt;br /&gt;That is how to design a OO with Poker.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;Source Code&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;BACKGROUND: #ffffff;color:#000000;&quot; &gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#3f3fbf;&quot;&gt;iostream&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#3f3fbf;&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;using&lt;/span&gt; &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;namespace&lt;/span&gt; std;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;enum&lt;/span&gt; Suit&lt;br /&gt;{&lt;br /&gt;    Spade = 0,&lt;br /&gt;    Heart,&lt;br /&gt;    Diamond,&lt;br /&gt;    Club&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;class&lt;/span&gt; Poker&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;private&lt;/span&gt;:&lt;br /&gt;    Suit m_suit;&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;int&lt;/span&gt; m_number;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;public&lt;/span&gt;:&lt;br /&gt;    Poker(Suit suit,&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;int&lt;/span&gt; number)&lt;br /&gt;    {&lt;br /&gt;        m_suit = suit;&lt;br /&gt;        m_number = number;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;string&lt;/span&gt; GetSuit()&lt;br /&gt;    {&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;string&lt;/span&gt; suit = &lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Spade&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;if&lt;/span&gt;(m_suit == Heart)&lt;br /&gt;            suit = &lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Heart&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;if&lt;/span&gt;(m_suit == Diamond)&lt;br /&gt;            suit = &lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Diamond&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;if&lt;/span&gt;(m_suit == Club)&lt;br /&gt;            suit = &lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;Club&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;return&lt;/span&gt; suit;&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;friend&lt;/span&gt; &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;ostream&lt;/span&gt;&amp;amp; &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;operator&lt;/span&gt; &amp;lt;&amp;lt;(&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;ostream&lt;/span&gt;&amp;amp; os, Poker* pk)&lt;br /&gt;    {&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;string&lt;/span&gt; suit = pk-&gt;GetSuit();&lt;br /&gt;        os &amp;lt;&amp;lt; &lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt; &amp;lt;&amp;lt; suit.c_str() &amp;lt;&amp;lt; &lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt; &amp;lt;&amp;lt; pk-&gt;m_number &amp;lt;&amp;lt; &lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color:#2a00ff;&quot;&gt;&quot;&lt;/span&gt;;&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;return&lt;/span&gt; os;&lt;br /&gt;    }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;class&lt;/span&gt; Cards&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;private&lt;/span&gt;:&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;vector&lt;/span&gt;&amp;lt;Poker*&gt; m_cards;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;public&lt;/span&gt;:&lt;br /&gt;    Cards()&lt;br /&gt;    {&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;for&lt;/span&gt;(&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;int&lt;/span&gt; i = 0 ; i &amp;lt; 52 ; i++)&lt;br /&gt;        {&lt;br /&gt;            m_cards.push_back(&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;new&lt;/span&gt; Poker((Suit)(i / 13), (i % 13)+1));&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;void&lt;/span&gt; Output()&lt;br /&gt;    {&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;vector&lt;/span&gt;&amp;lt;Poker*&gt;::&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;iterator&lt;/span&gt; iter = m_cards.begin();&lt;br /&gt;        &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;for&lt;/span&gt;(; iter != m_cards.end() ; iter++)&lt;br /&gt;        {&lt;br /&gt;            &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;cout&lt;/span&gt;&amp;lt;&amp;lt;(Poker*)(*iter)&amp;lt;&amp;lt;endl;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;int&lt;/span&gt; _tmain(&lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;int&lt;/span&gt; argc, _TCHAR* argv[])&lt;br /&gt;{&lt;br /&gt;    Cards *cards  = &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;new&lt;/span&gt; Cards();&lt;br /&gt;    cards-&gt;Output();&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;int&lt;/span&gt; a = 0;&lt;br /&gt;    a = &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;cin&lt;/span&gt;.get();&lt;br /&gt;    &lt;span style=&quot;FONT-WEIGHT: bold;color:#7f0055;&quot; &gt;return&lt;/span&gt; 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://cloudhsu921en.blogspot.com/feeds/8186487701395813551/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/07/c-poker-with-oop.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8186487701395813551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4982371906187064587/posts/default/8186487701395813551'/><link rel='alternate' type='text/html' href='http://cloudhsu921en.blogspot.com/2010/07/c-poker-with-oop.html' title='[C++] Poker with OOP'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03601197318958703511</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>