<?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/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;A0EERns-eip7ImA9Wx9bFk8.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864</id><updated>2011-02-25T02:26:47.552-08:00</updated><title>iPhone碎碎念</title><subtitle type='html'>iPhone開發筆記，給健忘的老人用的。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;A0EERns9eCp7ImA9Wx9bFk8.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-8498426582357430464</id><published>2011-02-25T02:26:00.001-08:00</published><updated>2011-02-25T02:26:47.560-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-25T02:26:47.560-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='inapppurchase'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title>App Store Quick Reference: Getting Started with In App Purchase on iPhone OS Version 2.0</title><content type='html'>&lt;a href="http://developer.apple.com/news/ios/pdf/in_app_purchase.pdf"&gt;http://developer.apple.com/news/ios/pdf/in_app_purchase.pdf&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-8498426582357430464?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/8498426582357430464/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/app-store-quick-reference-getting.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/8498426582357430464?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/8498426582357430464?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/app-store-quick-reference-getting.html' title='App Store Quick Reference: Getting Started with In App Purchase on iPhone OS Version 2.0'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEQGQHkycCp7ImA9Wx9bEks.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-7657929517364133504</id><published>2011-02-20T21:32:00.000-08:00</published><updated>2011-02-20T21:32:01.798-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-20T21:32:01.798-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='NSURLConnection'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title>NSURLConnection </title><content type='html'>&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Geneva, Lucida; font-size: 15px; line-height: 22px;"&gt;在預設的情況下，一個 iPhone App 只有一條執行緒(Thread)，簡單的說就是同一時間只能做一件事，所以當你用 NSData 或 NSString 的 initWithContentsOfURL 的方法來載入網頁資料時，整個程式就會停在那裡，直到網頁資料都下載完了後，才會繼續執行下一行的程式碼。繼然程式停在那不動，當然你不論怎麼加上其它的動畫或View都不會有作用，這就是我昨天一直失敗的原因。&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;所以有兩種方式來解決這個問題，一是自己開 Thread 來用時做好幾件事，二是使用委託處理的方式，把要做的事情委託出去，等事情做完後，被委託的人會通知你事情已經處理完了。這也就是 iOS 一直強調的 delgate model。&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;自己開 Thread 並不適合用在 iT邦幫忙 App 裡，因為我必需要知道網頁資料何時會下載完畢，等下載完畢後，再把載入等待畫面給移除。所以我需要找到一個能幫我下載網頁資料，然後下載完後能通知我的一個類別，那個就是 - NSURLConnection。&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;NSURLConnection 宣告使用的程式碼如下：&lt;/span&gt;&lt;br /&gt;
&lt;div class="dp-highlighter" style="background-color: #e7e5dc; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; margin-bottom: 18px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 18px !important; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 1px; width: 596px;"&gt;&lt;div class="bar" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 45px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="tools" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; color: silver; font: normal normal normal 9px/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 8px; padding-top: 3px;"&gt;&lt;a href="http://ithelp.ithome.com.tw/question/10058407#" style="background-attachment: initial; background-clip: initial; background-color: inherit; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #a0a0a0; font-size: 9px; margin-bottom: 0px; margin-left: 0px; margin-right: 10px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;檢視原始檔&lt;/a&gt;&lt;a href="http://ithelp.ithome.com.tw/question/10058407#" style="background-attachment: initial; background-clip: initial; background-color: inherit; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #a0a0a0; font-size: 9px; margin-bottom: 0px; margin-left: 0px; margin-right: 10px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;複製到剪貼簿&lt;/a&gt;&lt;a href="http://ithelp.ithome.com.tw/question/10058407#" style="background-attachment: initial; background-clip: initial; background-color: inherit; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #a0a0a0; font-size: 9px; margin-bottom: 0px; margin-left: 0px; margin-right: 10px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;列印&lt;/a&gt;&lt;a href="http://ithelp.ithome.com.tw/question/10058407#" style="background-attachment: initial; background-clip: initial; background-color: inherit; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #a0a0a0; font-size: 9px; margin-bottom: 0px; margin-left: 0px; margin-right: 10px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;關於&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-cpp" start="1" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; list-style-image: initial; list-style-position: initial; list-style-type: decimal; margin-bottom: 1px !important; margin-left: 45px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;NSURLRequest&amp;nbsp;*request&amp;nbsp;=&amp;nbsp;[NSURLRequest&amp;nbsp;requestWithURL:[NSURL&amp;nbsp;URLWithString:@&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;"http://ithelp.ithome.com.tw/?tab=share"&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[NSURLConnection&amp;nbsp;connectionWithRequest:request&amp;nbsp;delegate:self];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;它需要兩個參數，一個是 NSURLRequest 物件，另一個是 delegate 物件。上面的程式碼把 delegate 指向自己(self)，也就是目前所在的類別來接受 NSURLConnect 的事件。最重要的有四個事件處理的方法：&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;div class="dp-highlighter" style="background-color: #e7e5dc; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; margin-bottom: 18px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 18px !important; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 1px; width: 596px;"&gt;&lt;div class="bar" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 45px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="tools" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; color: silver; font: normal normal normal 9px/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 8px; padding-top: 3px;"&gt;&lt;a href="http://ithelp.ithome.com.tw/question/10058407#" style="background-attachment: initial; background-clip: initial; background-color: inherit; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #a0a0a0; font-size: 9px; margin-bottom: 0px; margin-left: 0px; margin-right: 10px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;檢視原始檔&lt;/a&gt;&lt;a href="http://ithelp.ithome.com.tw/question/10058407#" style="background-attachment: initial; background-clip: initial; background-color: inherit; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #a0a0a0; font-size: 9px; margin-bottom: 0px; margin-left: 0px; margin-right: 10px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;複製到剪貼簿&lt;/a&gt;&lt;a href="http://ithelp.ithome.com.tw/question/10058407#" style="background-attachment: initial; background-clip: initial; background-color: inherit; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #a0a0a0; font-size: 9px; margin-bottom: 0px; margin-left: 0px; margin-right: 10px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;列印&lt;/a&gt;&lt;a href="http://ithelp.ithome.com.tw/question/10058407#" style="background-attachment: initial; background-clip: initial; background-color: inherit; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #a0a0a0; font-size: 9px; margin-bottom: 0px; margin-left: 0px; margin-right: 10px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;關於&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-cpp" start="1" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; list-style-image: initial; list-style-position: initial; list-style-type: decimal; margin-bottom: 1px !important; margin-left: 45px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="comment" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #008200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;//是否收到網站的回應&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;-&amp;nbsp;(&lt;span class="keyword" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #006699; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;)connection:(NSURLConnection&amp;nbsp;*)connection&amp;nbsp;didReceiveResponse:(NSURLResponse&amp;nbsp;*)response&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[htmlData&amp;nbsp;setLength:0];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="comment" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #008200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;//收到網站傳回的資料&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;-&amp;nbsp;(&lt;span class="keyword" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #006699; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;)connection:(NSURLConnection&amp;nbsp;*)connection&amp;nbsp;didReceiveData:(NSData&amp;nbsp;*)data&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[htmlData&amp;nbsp;appendData:data];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="comment" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #008200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;//網頁資料下載完畢&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;-&amp;nbsp;(&lt;span class="keyword" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #006699; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;)connectionDidFinishLoading:(NSURLConnection&amp;nbsp;*)connection&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(@&lt;span class="string" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;"Succeeded!&amp;nbsp;Received&amp;nbsp;%d&amp;nbsp;bytes&amp;nbsp;of&amp;nbsp;data"&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;,[htmlData&amp;nbsp;length]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(@&lt;span class="string" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;"%@"&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;,&amp;nbsp;[[NSString&amp;nbsp;alloc]&amp;nbsp;initWithData:htmlData&amp;nbsp;encoding:NSUTF8StringEncoding]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="comment" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #008200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;//網路連線錯誤&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;-&amp;nbsp;(&lt;span class="keyword" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #006699; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;)connection:(NSURLConnection&amp;nbsp;*)connection&amp;nbsp;didFailWithError:(NSError&amp;nbsp;*)error&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[connection&amp;nbsp;release];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(@&lt;span class="string" style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;"Connection&amp;nbsp;failed!&amp;nbsp;Error&amp;nbsp;-&amp;nbsp;%@&amp;nbsp;%@"&lt;/span&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;,&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[error&amp;nbsp;localizedDescription],&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[[error&amp;nbsp;userInfo]&amp;nbsp;objectForKey:NSErrorFailingURLStringKey]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="background-color: white; border-bottom-style: none; border-color: initial; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important;"&gt;&lt;span style="background-color: inherit; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;htmlData 是個 NSMutableData 的物件，當 NSURLConnect 連上網站時，我先把 htmlData 清空準備來接收網頁資料。NSURLConnection 會把網頁資料一段一段下載回來，每當下載一部份時，didReceiveData 方法會收到通知，這時我把資頁資料給存放進 htmlData 物件裡。等到全部下載回來後，會呼叫 connectionDidFinishLoading 方法，這時我就把網頁的資料給印出來...&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;當下載的過程中發生錯誤時，會呼叫 didFailWithError 的方法，這時我會印出錯誤訊息，看看發生了什麼事。&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-7657929517364133504?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/7657929517364133504/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/nsurlconnection.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/7657929517364133504?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/7657929517364133504?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/nsurlconnection.html' title='NSURLConnection '/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUUNRX86eip7ImA9Wx9UGU8.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-6938097535755120189</id><published>2011-02-16T22:14:00.001-08:00</published><updated>2011-02-16T22:14:54.112-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-16T22:14:54.112-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='NSNotificationCenter'/><category scheme='http://www.blogger.com/atom/ns#' term='iOS'/><title>【IOS】消息通信機制NSNotificationCenter</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: song, Verdana; font-size: 12px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;最近寫程序需要用到這類，研究了下，現把成果和大家分享。&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;NSNotificationCenter是專門供程序中不同類間的消息通信而設置的，使用起來極為方便，&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;設置通知，就是說要在什麼地方（哪個類）接受通知，一般在初始化中做。&lt;/div&gt;&lt;div&gt;&lt;table bgcolor="#f1f1f1" border="1" bordercolor="#999999" cellpadding="0" cellspacing="0" style="border-collapse: collapse;"&gt;&lt;tbody&gt;
&lt;tr style="font: normal normal normal 12px/normal song, Verdana;"&gt;&lt;td style="font: normal normal normal 12px/normal song, Verdana;"&gt;&lt;div style="font: normal normal normal 12px/normal song, Verdana; line-height: 18px; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: NSimsun;"&gt;&lt;span style="color: #0000cc;"&gt;[&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;[&lt;/span&gt;NSNotificationCenter defaultCenter&lt;span style="color: #0000cc;"&gt;]&lt;/span&gt;&amp;nbsp;addObserver&lt;span style="color: #0000cc;"&gt;:&lt;/span&gt;self selector&lt;span style="color: #0000cc;"&gt;:&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;@&lt;/span&gt;selector&lt;span style="color: #0000cc;"&gt;(&lt;/span&gt;&lt;span style="color: red;"&gt;test&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;:&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;)&lt;/span&gt;&amp;nbsp;name&lt;span style="color: #0000cc;"&gt;:&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;@&lt;/span&gt;&lt;span style="color: magenta;"&gt;" test"&lt;/span&gt;&amp;nbsp;object&lt;span style="color: #0000cc;"&gt;:&lt;/span&gt;nil&lt;span style="color: #0000cc;"&gt;]&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;我僅對以上參數做以說明：addObserver　這個是觀察者，就是說　在什麼地方接收通知;&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;　selector　這個是收到通知後，調用何種方法;&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;　name：　這個是通知的名字，也是通知的唯一標示，編譯器就通過這個找到通知的。&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;發送通知，就是說此時要調用觀察者處的方法。&lt;/div&gt;&lt;div&gt;&lt;table bgcolor="#f1f1f1" border="1" bordercolor="#999999" cellpadding="0" cellspacing="0" style="border-collapse: collapse;"&gt;&lt;tbody&gt;
&lt;tr style="font: normal normal normal 12px/normal song, Verdana;"&gt;&lt;td style="font: normal normal normal 12px/normal song, Verdana;"&gt;&lt;div style="font: normal normal normal 12px/normal song, Verdana; line-height: 18px; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: NSimsun;"&gt;&lt;span style="color: #0000cc;"&gt;[&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;[&lt;/span&gt;NSNotificationCenter defaultCenter&lt;span style="color: #0000cc;"&gt;]&lt;/span&gt;&amp;nbsp;postNotificationName&lt;span style="color: #0000cc;"&gt;:&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;@&lt;/span&gt;&lt;span style="color: magenta;"&gt;"test"&lt;/span&gt;　object&lt;span style="color: #0000cc;"&gt;:&lt;/span&gt;searchFriendArray&lt;span style="color: #0000cc;"&gt;]&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;我僅對以上參數做以說明：&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;postNotificationName：通知的名字，也是通知的唯一標示，編譯器就通過這個找到通知的。&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;object：傳遞的參數&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;發送通知時，默認調用test方法。&lt;/div&gt;&lt;table bgcolor="#f1f1f1" border="1" bordercolor="#999999" cellpadding="0" cellspacing="0" style="border-collapse: collapse;"&gt;&lt;tbody&gt;
&lt;tr style="font: normal normal normal 12px/normal song, Verdana;"&gt;&lt;td style="font: normal normal normal 12px/normal song, Verdana;"&gt;&lt;div style="font: normal normal normal 12px/normal song, Verdana; line-height: 18px; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #0000cc;"&gt;-&lt;/span&gt;&amp;nbsp;&lt;span style="color: #0000cc;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;void&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;)&lt;/span&gt;&amp;nbsp;&lt;span style="color: red;"&gt;test&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;:&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;(&lt;/span&gt;NSNotification&lt;span style="color: #0000cc;"&gt;*&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;)&lt;/span&gt;&amp;nbsp;notification&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;&lt;span style="color: #0000cc;"&gt;{&lt;/span&gt;&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;searchFriendArrary&amp;nbsp;&lt;span style="color: #0000cc;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style="color: #0000cc;"&gt;[&lt;/span&gt;notification object&lt;span style="color: #0000cc;"&gt;]&lt;/span&gt;&lt;span style="color: #0000cc;"&gt;;&lt;/span&gt;&lt;span style="color: #ff9900;"&gt;//通過這個獲取到傳遞的對象&lt;/span&gt;&lt;br style="font: normal normal normal 12px/normal song, Verdana;" /&gt;&lt;span style="color: #0000cc;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #0000cc;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-6938097535755120189?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/6938097535755120189/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iosnsnotificationcenter.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/6938097535755120189?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/6938097535755120189?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iosnsnotificationcenter.html' title='【IOS】消息通信機制NSNotificationCenter'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DU4GQH0-fCp7ImA9Wx9UGE8.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-1958356124221804384</id><published>2011-02-15T19:45:00.000-08:00</published><updated>2011-02-15T19:45:21.354-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-15T19:45:21.354-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='iPad'/><category scheme='http://www.blogger.com/atom/ns#' term='記憶體'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title>iPhone/Mac Objective-C 記憶體管理教程和原理剖析</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, sans-serif; font-size: 14px; line-height: 24px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align="left" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;版權聲明&lt;/span&gt;&lt;/div&gt;&lt;div align="left" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;此文版權歸作者&lt;/span&gt;Vince Yuan (vince.yuan#gmail.com)&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;所有。歡迎非營利性轉載，轉載時必須包含原始鏈接&lt;/span&gt;&lt;a href="http://vinceyuan.cnblogs.com/" style="color: #0070af; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;" target="_blank"&gt;&lt;/a&gt;&lt;a href="http://vinceyuan.cnblogs.com/" id="url_1" style="color: #0070af; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;" target="_blank"&gt;http://vinceyuan.cnblogs.com/&lt;/a&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，且必須包含此版權聲明的完整內容。&lt;/span&gt;&lt;/div&gt;&lt;div align="left" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div align="left" class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;版本&lt;/span&gt;&lt;span lang="EN-US" style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;&lt;span style="font-family: Calibri; line-height: 1.5em; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;1.1&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;發表於&lt;/span&gt;&lt;span lang="EN-US" style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;&lt;span style="font-family: Calibri; line-height: 1.5em; outline-color: initial; outline-style: none; outline-width: initial;"&gt;2010-03-08&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;前言&lt;/span&gt;&lt;/div&gt;&lt;div align="left" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;初學&lt;/span&gt;objectice-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的朋友都有一個困惑，總覺得對&lt;/span&gt;objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的內存管理機制琢磨不透，程序經常內存洩漏或莫名其妙的崩潰。我在這裡總結了自己對&lt;/span&gt;objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;內存管理機制的研究成果和經驗，寫了這麼一個由淺入深的教程。希望對大家有所幫助，也歡迎大家一起探討。&lt;/span&gt;&lt;/div&gt;&lt;div align="left" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;此文涉及的內存管理是針對於繼承於&lt;/span&gt;NSObject&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的&lt;/span&gt;Class&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;一&lt;/span&gt;&amp;nbsp;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;基本原理&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的內存管理機制與&lt;/span&gt;.Net/Java&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;那種全自動的垃圾回收機制是不同的，它本質上還是&lt;/span&gt;C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;語言中的手動管理方式，只不過稍微加了一些自動方法。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21.25pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -21.25pt;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;1&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的對象生成於堆之上，生成之後，需要一個指針來指向它。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;ClassA *obj1 = [[ClassA alloc] init];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21.25pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -21.25pt;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;2&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的對象在使用完成之後不會自動銷毀，需要執行&lt;/span&gt;dealloc&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;來釋放空間（銷毀），否則內存洩露。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj1 dealloc];&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;這帶來了一個問題。下面代碼中&lt;/span&gt;obj2&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;是否需要調用&lt;/span&gt;dealloc&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;？&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;ClassA *obj1 = [[ClassA alloc] init];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;ClassA *obj2 = obj1;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj1 hello]; //&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;輸出&lt;/span&gt;hello&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj1 dealloc];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj2 hello]; //&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;能夠執行這一行和下一行嗎？&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj2 dealloc];&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;不能，因為&lt;/span&gt;obj1&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;和&lt;/span&gt;obj2&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;只是指針，它們指向同一個對象，&lt;/span&gt;[obj1 dealloc]&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;已經銷毀這個對象了，不能再調用&lt;/span&gt;[obj2 hello]&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;和&lt;/span&gt;[obj2 dealloc]&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;。&lt;/span&gt;obj2&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;實際上是個無效指針。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;如何避免無效指針？請看下一條。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21.25pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -21.25pt;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;3&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;采用了引用計數&lt;/span&gt;(ref count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;或者&lt;/span&gt;retain count)&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;。對象的內部保存一個數字，表示被引用的次數。例如，某個對象被兩個指針所指向（引用）那麼它的&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;為&lt;/span&gt;2&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;。需要銷毀對象的時候，不直接調用&lt;/span&gt;dealloc&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，而是調用&lt;/span&gt;release&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;。&lt;/span&gt;release&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;會讓&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;減&lt;/span&gt;1&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，只有&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;等於&lt;/span&gt;0&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，系統才會調用&lt;/span&gt;dealloc&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;真正銷毀這個對象。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;ClassA *obj1 = [[ClassA alloc] init]; //&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;對象生成時，&lt;/span&gt;retain count = 1&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj1 release]; //release&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;使&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;減&lt;/span&gt;1&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，&lt;/span&gt;retain count = 0&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，&lt;/span&gt;dealloc&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;自動被調用&lt;/span&gt;,&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;對象被銷毀&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;我們回頭看看剛剛那個無效指針的問題，把&lt;/span&gt;dealloc&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;改成&lt;/span&gt;release&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;解決了嗎？&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;ClassA *obj1 = [[ClassA alloc] init]; //retain count = 1&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;ClassA *obj2 = obj1; //retain count = 1&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj1 hello]; //&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;輸出&lt;/span&gt;hello&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj1 release]; //retain count = 0&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，對象被銷毀&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj2 hello];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;[obj2 release];&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [obj1 release]&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;之後，&lt;/span&gt;obj2&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;依然是個無效指針。問題依然沒有解決。解決方法見下一條。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21.25pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -21.25pt;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;4&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;指針賦值時，&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;不會自動增加，需要手動&lt;/span&gt;retain&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;ClassA *obj1 = [[ClassA alloc] init]; //retain count = 1&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;ClassA *obj2 = obj1; //retain count = 1&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: red; outline-color: initial; outline-style: none; outline-width: initial;"&gt;[obj2 retain]; //retain count = 2&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[obj1 hello]; //&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;輸出&lt;/span&gt;hello&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[obj1 release]; //retain count = 2 – 1 = 1&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[obj2 hello]; //&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;輸出&lt;/span&gt;hello&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[obj2 release]; //retain count = 0&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，對象被銷毀&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;問題解決！注意，如果沒有調用&lt;/span&gt;[obj2 release]&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，這個對象的&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;始終為&lt;/span&gt;1&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，不會被銷毀，內存洩露。&lt;/span&gt;(1-4&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;可以參考附件中的示例程序&lt;/span&gt;memman-no-pool.m)&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;這樣的確不會內存洩露，但似乎有點麻煩，有沒有簡單點的方法？見下一條。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21.25pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -21.25pt;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;5&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;中引入了&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;（自動釋放對象池），在遵守一些規則的情況下，可以自動釋放對象。（&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;依然不是&lt;/span&gt;.Net/Java&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;那種全自動的垃圾回收機制）&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 49.6pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -1cm;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;5.1&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;新生成的對象，只要調用&lt;/span&gt;autorelease&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;就行了，無需再調用&lt;/span&gt;release&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;！&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;ClassA *obj1 = [[[ClassA alloc] init] autorelease]; //retain count = 1&amp;nbsp;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;但無需調用&lt;/span&gt;release&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 49.6pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -1cm;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;5.2&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;對於存在指針賦值的情況，代碼與前面類似。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;ClassA *obj1 = [[[ClassA alloc] init] autorelease]; //retain count = 1&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;ClassA *obj2 = obj1; //retain count = 1&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: red; outline-color: initial; outline-style: none; outline-width: initial;"&gt;[obj2 retain]; //retain count = 2&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[obj1 hello]; //&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;輸出&lt;/span&gt;hello&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;//&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;對於&lt;/span&gt;obj1&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，無需調用（實際上不能調用）&lt;/span&gt;release&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[obj2 hello]; //&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;輸出&lt;/span&gt;hello&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 42pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[obj2 release]; //retain count = 2-1 = 1&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;細心的讀者肯定能發現這個對象沒有被銷毀，何時銷毀呢？誰去銷毀它？（可以參考附件中的示例程序&lt;/span&gt;memman-with-pool.m&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;）請看下一條。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 21pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21.25pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -21.25pt;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;6&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;原理剖析。（其實很簡單的，一定要堅持看下去，否則還是不能理解&lt;/span&gt;Objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的內存管理機制。）&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 49.6pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -1cm;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;6.1&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;不是天生的，需要手動創立。只不過在新建一個&lt;/span&gt;iphone&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;項目時，&lt;/span&gt;xcode&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;會自動幫你寫好。&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的真名是&lt;/span&gt;NSAutoreleasePool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 49.6pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -1cm;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;6.2&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;NSAutoreleasePool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;內部包含一個數組（&lt;/span&gt;NSMutableArray&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;），用來保存聲明為&lt;/span&gt;autorelease&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的所有對象。如果一個對象聲明為&lt;/span&gt;autorelease&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，系統所做的工作就是把這個對象加入到這個數組中去。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;ClassA *obj1 = [[[ClassA alloc] init] autorelease]; //retain count = 1&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，把此對象加入&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;中&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 49.6pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -1cm;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;6.3&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;NSAutoreleasePool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;自身在銷毀的時候，會遍歷一遍這個數組，&lt;/span&gt;release&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;數組中的每個成員。如果此時數組中成員的&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;為&lt;/span&gt;1&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，那麼&lt;/span&gt;release&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;之後，&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;為&lt;/span&gt;0&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，對象正式被銷毀。如果此時數組中成員的&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;大於&lt;/span&gt;1&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，那麼&lt;/span&gt;release&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;之後，&lt;/span&gt;retain count&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;大於&lt;/span&gt;0&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，此對象依然沒有被銷毀，內存洩露。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 49.6pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -1cm;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;6.4&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;默認只有一個&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，通常類似於下面這個例子。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;int main (int argc, const char *argv[])&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 10.5pt;"&gt;NSAutoreleasePool *pool;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 10.5pt;"&gt;pool = [[NSAutoreleasePool alloc] init];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 10.5pt;"&gt;// do something&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 10.5pt;"&gt;[pool release];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 10.5pt;"&gt;return (0);&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;} // main&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&lt;span style="font-family: 宋体; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;所有標記為&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Calibri, sans-serif; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;autorelease&lt;/span&gt;&lt;span style="font-family: 宋体; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的對象都只有在這個&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Calibri, sans-serif; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;pool&lt;/span&gt;&lt;span style="font-family: 宋体; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;銷毀時才被銷毀&lt;/span&gt;。如果你有大量的對象標記為&lt;/span&gt;autorelease&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，這顯然不能很好的利用內存，在&lt;/span&gt;iphone&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;這種內存受限的程序中是很容易造成內存不足的。例如：&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.5pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;int main (int argc, const char *argv[])&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.5pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;int i, j;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;for (i = 0; i &amp;lt; 100; i++ )&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;for (j = 0; j &amp;lt; 100000; j++ )&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSString stringWithFormat:@"1234567890"];//&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;產生的對象是&lt;/span&gt;autorelease&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[pool release];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;return (0);&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.5pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;} // main&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.7pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;（可以參考附件中的示例程序&lt;/span&gt;memman-many-objs-one-pool.m&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，運行時通過監控工具可以發現使用的內存在急劇增加，直到&lt;/span&gt;pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;銷毀時才被釋放）你需要考慮下一條。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 49.6pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 21.25pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -21.25pt;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;7&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman'; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Objective-C&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;程序中可以嵌套創建多個&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;。在需要大量創建局部變量的時候，可以創建內嵌的&lt;/span&gt;autorelease pool&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;來及時釋放內存。&lt;span style="font-family: 宋体; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&lt;span style="font-family: 宋体; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;（感謝網友&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Calibri, sans-serif; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;hhyytt&lt;/span&gt;&lt;span style="font-family: 宋体; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;和&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Calibri, sans-serif; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;neogui&lt;/span&gt;&lt;span style="font-family: 宋体; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的提醒，某些情況下，系統會自動創建&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Calibri, sans-serif; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;autorelease pool,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: 宋体; font-size: 10.5pt; outline-color: initial; outline-style: none; outline-width: initial;"&gt;請參見第四章）&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.5pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;int main (int argc, const char *argv[])&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.5pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;int i, j;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;for (i = 0; i &amp;lt; 100; i++ )&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;NSAutoreleasePool *loopPool = [[NSAutoreleasePool alloc] init];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;for (j = 0; j &amp;lt; 100000; j++ )&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="outline-color: initial; outline-style: none; outline-width: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSString stringWithFormat:@"1234567890"];//&lt;/span&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;產生的對象是&lt;/span&gt;autorelease&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;的。&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;[loopPool release];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[pool release];&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 63pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;return (0);&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.5pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;} // main&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 52.5pt; margin-right: 0cm; margin-top: 0cm; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;（可以參考附件中的示例程序&lt;/span&gt;memman-many-objs-many-pools.m&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;，佔用內存的變化極小）&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 宋体; outline-color: initial; outline-style: none; outline-width: initial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-1958356124221804384?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/1958356124221804384/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphonemac-objective-c.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/1958356124221804384?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/1958356124221804384?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphonemac-objective-c.html' title='iPhone/Mac Objective-C 記憶體管理教程和原理剖析'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkEDQHgzfip7ImA9Wx9UGE8.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-8756639608757311158</id><published>2011-02-15T18:51:00.000-08:00</published><updated>2011-02-15T18:51:11.686-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-15T18:51:11.686-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Objective C'/><title>Objective C 教學！</title><content type='html'>&lt;a href="http://www.otierney.net/objective-c.html.zh-tw.big5"&gt;http://www.otierney.net/objective-c.html.zh-tw.big5&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-8756639608757311158?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/8756639608757311158/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/objective-c.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/8756639608757311158?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/8756639608757311158?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/objective-c.html' title='Objective C 教學！'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkUBSXs_eyp7ImA9Wx9UF0U.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-2499882555975669743</id><published>2011-02-15T08:38:00.001-08:00</published><updated>2011-02-15T08:44:18.543-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-15T08:44:18.543-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='iPad'/><category scheme='http://www.blogger.com/atom/ns#' term='Icon'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title>iPhone,iPad Icon格式說明</title><content type='html'>&lt;a href="http://developer.apple.com/library/ios/#qa/qa2010/qa1686.html"&gt;http://developer.apple.com/library/ios/#qa/qa2010/qa1686.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style="border-bottom-color: rgb(80, 136, 197); border-bottom-style: solid; border-bottom-width: 1px; color: #3c4c6c; font-size: 20px; font-weight: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 2em; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;iPhone-only Apps&lt;/h2&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Include the following in your application's Resources group in the Xcode project:&lt;/div&gt;&lt;div class="smalltext" style="color: black; font-size: 10px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Table 1 :&amp;nbsp;&lt;/strong&gt;iPhone-only apps icon requirements.&lt;/div&gt;&lt;table cellspacing="0" class="graybox" style="border-left-color: rgb(155, 179, 205); border-left-style: solid; border-left-width: 1px; border-top-color: rgb(155, 179, 205); border-top-style: solid; border-top-width: 1px; margin-bottom: 4em;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Image Size (px)&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;File Name&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Used For&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Required Status&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Notes&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;512x512&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;iTunesArtwork&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Ad Hoc iTunes&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;File should be in png format, but name it without the .png extension&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;57x57&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;App Store and Home screen on iPhone/iPod touch&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Required&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;114x114&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon@2x.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Home screen for iPhone 4 High Resolution&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;72x72&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-72.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Home screen for iPad compatibility&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;29x29&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-Small.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Spotlight and Settings&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;50x50&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-Small-50.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Spotlight for iPad compatibility&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Recommended if you have a Settings bundle, otherwise optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;58x58&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-Small@2x.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Spotlight and Settings for iPhone 4 High Resolution&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Recommended if you have a Settings bundle, otherwise optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style="border-bottom-color: rgb(80, 136, 197); border-bottom-style: solid; border-bottom-width: 1px; color: #3c4c6c; font-size: 20px; font-weight: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 2em; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;iPad-only Apps&lt;/span&gt;&lt;/h2&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;Include the following in your application's Resources group in the Xcode project:&lt;/span&gt;&lt;/div&gt;&lt;div class="smalltext" style="color: black; font-size: 10px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;strong&gt;Table 2 :&amp;nbsp;&lt;/strong&gt;iPad-only apps icon requirements.&lt;/span&gt;&lt;/div&gt;&lt;table cellspacing="0" class="graybox" style="border-left-color: rgb(155, 179, 205); border-left-style: solid; border-left-width: 1px; border-top-color: rgb(155, 179, 205); border-top-style: solid; border-top-width: 1px; margin-bottom: 4em;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Image Size (px)&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;File Name&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Used For&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Required Status&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Notes&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;512x512&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;iTunesArtwork&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Ad Hoc iTunes&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;File should be in png format, but name it without the .png extension&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;72x72&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-72.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;App Store and Home screen on iPad&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Required&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;50x50&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-Small-50.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Spotlight on iPad&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;29x29&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-Small.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Settings on iPad&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Recommended if you have a Settings bundle, otherwise optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;h2 style="border-bottom-color: rgb(80, 136, 197); border-bottom-style: solid; border-bottom-width: 1px; color: #3c4c6c; font-size: 20px; font-weight: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 2em; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Universal Apps&lt;/h2&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Include the following in your application's Resources group in the Xcode project:&lt;/div&gt;&lt;div class="smalltext" style="color: black; font-size: 10px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Table 3 :&amp;nbsp;&lt;/strong&gt;Universal apps icon requirements.&lt;/div&gt;&lt;table cellspacing="0" class="graybox" style="border-left-color: rgb(155, 179, 205); border-left-style: solid; border-left-width: 1px; border-top-color: rgb(155, 179, 205); border-top-style: solid; border-top-width: 1px; margin-bottom: 4em;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Image Size (px)&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;File Name&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Used For&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Required Status&lt;/th&gt;&lt;th style="background-attachment: initial; background-clip: initial; background-color: #93a5bb; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; color: white; font-size: 13px; font-weight: normal; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.333em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.333em; text-align: left; vertical-align: top;"&gt;Notes&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;512x512&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;iTunesArtwork&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Ad Hoc iTunes&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;File should be in png format, but name it without the .png extension&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;57x57&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;App Store and the Home screen on iPhone/iPod touch&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Required&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;114x114&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon@2x.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Home screen for iPhone 4 High Resolution&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;72x72&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-72.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;App Store and Home screen on iPad&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Required&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;29x29&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-Small.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Settings on iPad and iPhone, and Spotlight on iPhone&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Recommended if you have a Settings bundle, otherwise optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;50x50&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-Small-50.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Spotlight on iPad&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td scope="row" style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;58x58&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Icon-Small@2x.png&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Spotlight and Settings for iPhone 4 High Resolution&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;Recommended if you have a Settings bundle, otherwise optional but recommended&lt;/td&gt;&lt;td style="border-bottom-color: rgb(155, 179, 205); border-bottom-style: solid; border-bottom-width: 1px; border-right-color: rgb(155, 179, 205); border-right-style: solid; border-right-width: 1px; font-size: 13px; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; padding-bottom: 0.667em; padding-left: 0.667em; padding-right: 0.667em; padding-top: 0.667em; text-align: left; vertical-align: middle;"&gt;&amp;lt;None&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style="border-bottom-color: rgb(80, 136, 197); border-bottom-style: solid; border-bottom-width: 1px; color: #3c4c6c; font-size: 20px; font-weight: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 2em; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Add Icon files in Info.plist&lt;/h2&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;To add the&amp;nbsp;&lt;code style="color: #666666; font-family: Courier, monospace; font-size: 17px;"&gt;Icon files&lt;/code&gt;&amp;nbsp;entry you will need to manually edit your&amp;nbsp;&lt;code style="color: #666666; font-family: Courier, monospace; font-size: 17px;"&gt;Info.plist&lt;/code&gt;.&lt;/div&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Open your&amp;nbsp;&lt;code style="color: #666666; font-family: Courier, monospace; font-size: 17px;"&gt;Info.plist&lt;/code&gt;&amp;nbsp;in Xcode, and locate the "&lt;code style="color: #666666; font-family: Courier, monospace; font-size: 17px;"&gt;Icon file&lt;/code&gt;" entry. Click on the plus (+) button at the end of the entry to make a new key entry. as shown in&amp;nbsp;&lt;a href="http://developer.apple.com/library/ios/qa/qa2010/qa1686.html#PLUSBUTTON"&gt;Figure 2&lt;/a&gt;.&lt;/div&gt;&lt;a href="" name="PLUSBUTTON"&gt;&lt;/a&gt;&lt;div class="caption" style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Figure 2:&amp;nbsp;&lt;/strong&gt;Add a new entry under "Icon file" key&lt;/div&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;img alt="Figure 2, Add a new entry under &amp;quot;Icon file&amp;quot; key" height="446" src="http://developer.apple.com/library/ios/qa/qa2010/images/qa1686_1.png" width="640" /&gt;&lt;/div&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Then, type "&lt;code style="color: #666666; font-family: Courier, monospace; font-size: 17px;"&gt;Icon files&lt;/code&gt;" in the key column (notice the "&lt;code style="color: #666666; font-family: Courier, monospace; font-size: 17px;"&gt;s&lt;/code&gt;" added), or choose "&lt;code style="color: #666666; font-family: Courier, monospace; font-size: 17px;"&gt;Icon files&lt;/code&gt;" from the drop down list, as shown in&amp;nbsp;&lt;a href="http://developer.apple.com/library/ios/qa/qa2010/qa1686.html#ADDICONFILESKEY"&gt;Figure 3&lt;/a&gt;.&lt;/div&gt;&lt;a href="" name="ADDICONFILESKEY"&gt;&lt;/a&gt;&lt;div class="caption" style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Figure 3:&amp;nbsp;&lt;/strong&gt;Add "Icon files" key in Info.plist&lt;/div&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;img alt="Figure 3, Add &amp;quot;Icon files&amp;quot; key in Info.plist" height="310" src="http://developer.apple.com/library/ios/qa/qa2010/images/qa1686_2.png" width="575" /&gt;&lt;/div&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Next, turn down the disclosure triangle on "&lt;code style="color: #666666; font-family: Courier, monospace; font-size: 17px;"&gt;Icon files&lt;/code&gt;" and add the entries for the icons for your application, as shown in&amp;nbsp;&lt;a href="http://developer.apple.com/library/ios/qa/qa2010/qa1686.html#IPHONEADDITEMS"&gt;Figure 4&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://developer.apple.com/library/ios/qa/qa2010/qa1686.html#IPADADDITEMS"&gt;Figure 5&lt;/a&gt;:&lt;/div&gt;&lt;a href="" name="IPHONEADDITEMS"&gt;&lt;/a&gt;&lt;div class="caption" style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Figure 4:&amp;nbsp;&lt;/strong&gt;Add icon file entries for iPhone-only or Universal apps.&lt;/div&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;img alt="Figure 4, Add icon file entries for iPhone-only or Universal apps." height="553" src="http://developer.apple.com/library/ios/qa/qa2010/images/qa1686_3.png" width="640" /&gt;&lt;/div&gt;&lt;a href="" name="IPADADDITEMS"&gt;&lt;/a&gt;&lt;div class="caption" style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Figure 5:&amp;nbsp;&lt;/strong&gt;Add entries for iPad icon files.&lt;/div&gt;&lt;div style="color: black; font: normal normal normal 90%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; line-height: 19px; margin-bottom: 0.833em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;img alt="Figure 5, Add entries for iPad icon files." height="512" src="http://developer.apple.com/library/ios/qa/qa2010/images/qa1686_4.png" width="640" /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-2499882555975669743?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/2499882555975669743/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphoneipad-icon.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/2499882555975669743?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/2499882555975669743?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphoneipad-icon.html' title='iPhone,iPad Icon格式說明'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkIAR3s9eip7ImA9Wx9UF0U.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-6239894683587753157</id><published>2011-02-15T06:35:00.001-08:00</published><updated>2011-02-15T06:35:46.562-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-15T06:35:46.562-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Web App'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title>iPhone Web App 參考網頁</title><content type='html'>&lt;a href="http://developer.apple.com/library/safari/#referencelibrary/GettingStarted/GS_WebApp/"&gt;http://developer.apple.com/library/safari/#referencelibrary/GettingStarted/GS_WebApp/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-6239894683587753157?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/6239894683587753157/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphone-web-app.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/6239894683587753157?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/6239894683587753157?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphone-web-app.html' title='iPhone Web App 參考網頁'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;C0YCRHs4fSp7ImA9Wx9UF0U.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-5046484891168945892</id><published>2011-02-15T02:00:00.001-08:00</published><updated>2011-02-15T06:46:05.535-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-15T06:46:05.535-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='未分類'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title>iPhone各類Code筆記(未分類)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Comic Sans MS', 宋体, Arial, sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;1. 隨機數：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;srandom(time(NULL));&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;隨機數種子&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
id&amp;nbsp;d&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;random();&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;隨機數&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;2. 視頻播放：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MPMoviePlayerController&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;moviePlayer;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;moviePlayer&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[MPMoviePlayerController&amp;nbsp;alloc]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;initWithContentURL:[NSURL&amp;nbsp;fileURLWithPath:[[NSBundle&amp;nbsp;mainBundle]&amp;nbsp;pathForResource:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Movie&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;ofType:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;m4v&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;]]];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;初始化視頻播放器對象，並傳入被播放文件的地址&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;moviePlayer.movieControlMode&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;MPMovieControlModeDefault;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[moviePlayer&amp;nbsp;play];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;此處有內存溢出&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; 3.&amp;nbsp;&lt;span style="color: #444444; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;啟動界面顯示：&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #444444; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px;"&gt;iPhone軟件啟動後的第一屏圖片是非常重要的往往就是loading載入中的意思。設置它說來也簡單，但是卻無比重要&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #444444; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 10px; line-height: normal;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 1.2em; line-height: 1.5em; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: justify; text-indent: 0px;"&gt;&lt;span style="color: #444444; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 10px; line-height: normal;"&gt;只需要在resource裡面將你希望設置的圖片更名為Default.png，這個圖片就可以成為iPhone載入的缺省圖片&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;4.&amp;nbsp;iPhone的系統目錄:&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #ff6600;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #ff6600;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: #ff6600;"&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;得到Document目錄：&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;NSArray&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;paths&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,&amp;nbsp;NSUserDomainMask,&amp;nbsp;YES);&lt;br /&gt;
NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;documentsDirectory&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[paths&amp;nbsp;objectAtIndex:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;得到temp臨時目錄：&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;tempPath&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NSTemporaryDirectory();&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;得到目錄上的文件地址：&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;文件地址&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[目錄地址&amp;nbsp;stringByAppendingPathComponent:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;文件名.擴展名&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #ff6600;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;5. 狀態欄顯示Indicator：&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #ff6600;"&gt;&lt;span style="color: black; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;span style="border-collapse: collapse; font-size: 13px; line-height: 14px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #ff6600;"&gt;&lt;span style="color: black; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;[UIApplication&amp;nbsp;sharedApplication].networkActivityIndicatorVisible&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;YES;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;6.app Icon顯示數字：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)applicationDidEnterBackground:(UIApplication&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)application{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[[UIApplication&amp;nbsp;sharedApplication]&amp;nbsp;setApplicationIconBadgeNumber:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;5&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&amp;nbsp;&amp;nbsp; 7.sqlite保存地址：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="color: #ff6600;"&gt;&lt;span style="color: black; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #ff6600;"&gt;&lt;span style="color: black; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #ff6600;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;span class="Apple-style-span" style="color: #ff6600;"&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NSArray&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;paths&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,&amp;nbsp;NSUserDomainMask,&amp;nbsp;YES);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_6d10c0c5-09b3-451a-8ea8-bb8a00d77e83" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="color: #ff6600;"&gt;&lt;span class="Apple-style-span" style="line-height: 1.5;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSString&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;thePath&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[paths&amp;nbsp;objectAtIndex:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;filePath&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[thePath&amp;nbsp;stringByAppendingPathComponent:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;kilonet1.sqlite&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;dbPath&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[[NSBundle&amp;nbsp;mainBundle]&amp;nbsp;resourcePath]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;stringByAppendingPathComponent:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;kilonet2.sqlite&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #ff6600;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #ff6600;"&gt;&lt;span style="color: black; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: small; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; 8.Application退出：exit(0);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;9. AlertView，ActionSheet的cancelButton點擊事件：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;actionSheet&amp;nbsp;:(UIActionSheet&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;actionSheet&amp;nbsp;didDismissWithButtonIndex:(NSInteger)&amp;nbsp;buttonIndex&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_b4da12a6-7e11-4fac-948d-8de1a07ba94d" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="line-height: 1.5;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;cancel&amp;nbsp;actionSheet........&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;當用戶按下cancel按鈕&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;if&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&amp;nbsp;buttonIndex&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;==&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[actionSheet&amp;nbsp;cancelButtonIndex])&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit(&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;當用戶按下destructive按鈕&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(&amp;nbsp;buttonIndex&amp;nbsp;==&amp;nbsp;[actionSheet&amp;nbsp;destructiveButtonIndex])&amp;nbsp;{&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;DoSomething&amp;nbsp;here.&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)alertView:(UIAlertView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)alertView&amp;nbsp;willDismissWithButtonIndex:(NSInteger)buttonIndex&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;cancel&amp;nbsp;alertView........&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;if&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(buttonIndex&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;==&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[alertView&amp;nbsp;cancelButtonIndex])&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit(&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;10.給Window設置全局的背景圖片：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;window.backgroundColor&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[UIColor&amp;nbsp;colorWithPatternImage:[UIImage&amp;nbsp;imageNamed:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;coolblack.png&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;]];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;11. UITextField文本框顯示及對鍵盤的控制:&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;#pragma&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;mark&amp;nbsp;-&lt;/span&gt;&lt;br /&gt;
&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_6c54a0e8-27ba-4834-8f91-d4d97f965a05" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;#pragma&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;mark&amp;nbsp;UITextFieldDelegate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;控制鍵盤跳轉&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(BOOL)textFieldShouldReturn:(UITextField&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)textField&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;if&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(textField&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;==&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;_txtAccount)&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;if&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;([_txtAccount.text&amp;nbsp;length]&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;==&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NO;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[_txtPassword&amp;nbsp;becomeFirstResponder];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;else&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;if&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(textField&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;==&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;_txtPassword)&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[_txtPassword&amp;nbsp;resignFirstResponder];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;YES;&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;輸入框背景更換&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(BOOL)&amp;nbsp;textFieldShouldBeginEditing:(UITextField&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)textField{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[textField&amp;nbsp;setBackground:[UIImage&amp;nbsp;imageNamed:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;ctext_field_02.png&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;]];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;YES;&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;textFieldDidEndEditing:(UITextField&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)textField{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[textField&amp;nbsp;setBackground:[UIImage&amp;nbsp;imageNamed:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;ctext_field_01.png&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;]];&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;12.UITextField文本框前面空白寬度設置以及後面組合按鈕設置：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;給文本輸入框後面加入空白&lt;/span&gt;&lt;br /&gt;
&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_6076555b-3ee2-4f43-8500-3224a0334209" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_txtAccount.rightView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;_btnDropDown;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_txtAccount.rightViewMode&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;UITextFieldViewModeAlways;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;給文本輸入框前面加入空白&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CGRect&amp;nbsp;frame&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[_txtAccount&amp;nbsp;frame];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;frame.size.width&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;5&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UIView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;leftview&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[UIView&amp;nbsp;alloc]&amp;nbsp;initWithFrame:frame];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_txtAccount.leftViewMode&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;UITextFieldViewModeAlways;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_txtAccount.leftView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;leftview;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;13. UIScrollView 設置滑動不超出本身范圍：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #558186; font-family: Menlo; font-size: 11px; line-height: normal;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[&lt;/span&gt;fcScrollView&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;setBounces&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;NO&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 14. 遍歷View裡面所有的Subview：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NSLog(@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;subviews&amp;nbsp;count=%d&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,[self.view.subviews&amp;nbsp;count]);&lt;/span&gt;&lt;br /&gt;
&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_84636021-09be-46ee-becf-7db4710e04fd" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="line-height: 1.5;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;if&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;([self.view.subviews&amp;nbsp;count]&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;for&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(UIView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;curView&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;in&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;self.view.subviews)&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;view.subviews=%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;[NSString&amp;nbsp;stringWithUTF8String:object_getClassName(curView)]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;14. 在drawRect裡畫文字：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&lt;span style="font-family: Menlo; font-size: 11px; line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;UIFont&lt;/span&gt;&amp;nbsp;* f = [&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;UIFont&lt;/span&gt;&amp;nbsp;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;systemFontOfSize&lt;/span&gt;:&lt;span style="color: #3900d5; font-size: 13px; line-height: 1.5;"&gt;20&lt;/span&gt;];&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3f0b80; font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; [[&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;UIColor&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;darkGrayColor&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;]&amp;nbsp;&lt;/span&gt;set&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;];&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;NSString&lt;/span&gt;&amp;nbsp;* text =&amp;nbsp;&lt;span style="color: #c82a25; font-size: 13px; line-height: 1.5;"&gt;@"hi \nKiloNet"&lt;/span&gt;;&amp;nbsp;&lt;/div&gt;&lt;div style="color: #3f0b80; font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; [text&amp;nbsp;&lt;/span&gt;drawAtPoint&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;CGPointMake&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;center&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;.&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;x&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;,&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;center&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;.&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;y&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;&lt;/span&gt;withFont&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:f];&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;15. NSArray查找是否存在對象時用&lt;span style="color: #3f0b80; font-family: Menlo; font-size: 11px; line-height: normal;"&gt;indexOfObject,&lt;/span&gt;如果不存在則返回為&lt;span style="color: #3f0b80; font-family: Menlo; font-size: 11px; line-height: normal;"&gt;NSNotFound&lt;/span&gt;.&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 16. NString與NSArray之間相互轉換：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;array&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;string&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;componentsSeparatedByString:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;string&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[array&amp;nbsp;valueForKey:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;description&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;]&amp;nbsp;componentsJoinedByString:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17. TabController隨意切換tab bar：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="font-family: monospace; font-size: 13px; line-height: 1.5; white-space: pre;"&gt;      [self.tabBarController setSelectedIndex:tabIndex];&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="font-family: monospace; font-size: 13px; line-height: 1.5; white-space: pre;"&gt;&lt;/span&gt;&lt;span style="font-family: monospace; font-size: 13px; line-height: 1.5; white-space: pre;"&gt;      或者 self.tabBarController.selectedIndex = tabIndex;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="font-family: monospace; font-size: 13px; line-height: 1.5; white-space: pre;"&gt;&lt;/span&gt;&lt;span style="font-family: monospace; font-size: 13px; line-height: 1.5; white-space: pre;"&gt;     或者實現下面的delegate來撲捉tab bar的事件： &lt;/span&gt;&lt;/div&gt;&lt;pre style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span style="font-family: verdana, 'courier new'; font-size: 13px; line-height: 1.5; white-space: normal;"&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(BOOL)&amp;nbsp;tabBarController:(UITabBarController&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)tabBarController&amp;nbsp;shouldSelectViewController:(UIViewController&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)viewController&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;if&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;([viewController.tabBarItem.title&amp;nbsp;isEqualToString:&amp;nbsp;NSLocalizedString(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Logout&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,nil)])&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[self&amp;nbsp;showLogout];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NO;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;YES;
}&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;/div&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span style="font-family: verdana, 'courier new'; font-size: 13px; line-height: 1.5; white-space: normal;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;18. 自定義View之間切換動畫：&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_2c234613-184e-41af-9b15-e7162b2d0fbe" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;pushController:&amp;nbsp;(UIViewController&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;controller&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;withTransition:&amp;nbsp;(UIViewAnimationTransition)&amp;nbsp;transition&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[UIView&amp;nbsp;beginAnimations:nil&amp;nbsp;context:NULL];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[self&amp;nbsp;pushViewController:controller&amp;nbsp;animated:NO];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[UIView&amp;nbsp;setAnimationDuration:.&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;5&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[UIView&amp;nbsp;setAnimationBeginsFromCurrentState:YES];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[UIView&amp;nbsp;setAnimationTransition:transition&amp;nbsp;forView:self.view&amp;nbsp;cache:YES];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[UIView&amp;nbsp;commitAnimations];&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 或者：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_0e2e3836-b38c-42f1-82ad-72e28e36a5d0" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;CATransition&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;transition&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[CATransition&amp;nbsp;animation];&lt;br /&gt;
transition.duration&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;kAnimationDuration;&lt;br /&gt;
transition.timingFunction&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[CAMediaTimingFunction&amp;nbsp;functionWithName:kCAMediaTimingFunctionEaseInEaseOut];&lt;br /&gt;
transition.type&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;kCATransitionPush;&lt;br /&gt;
transition.subtype&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;kCATransitionFromTop;&lt;br /&gt;
transitioning&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;YES;&lt;br /&gt;
transition.&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;delegate&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;self;&lt;br /&gt;
[self.navigationController.view.layer&amp;nbsp;addAnimation:transition&amp;nbsp;forKey:nil];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
self.navigationController.navigationBarHidden&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NO;&lt;br /&gt;
[self.navigationController&amp;nbsp;pushViewController:tableViewController&amp;nbsp;animated:YES];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;19. UIWebView加載時白色顯示問題解決以及字體統一設置：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="font-family: Menlo; font-size: 11px; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;uiWebView.&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;opaque&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;NO&lt;/span&gt;;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 20.計算字符串長度：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #3f0b80; font-family: Menlo; font-size: 11px; line-height: normal;"&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;CGFloat&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;w = [title&amp;nbsp;&lt;/span&gt;sizeWithFont&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:[&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;UIFont&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;fontWithName&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;span style="color: #c82a25; font-size: 13px; line-height: 1.5;"&gt;@"Arial"&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;size&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;span style="color: #3900d5; font-size: 13px; line-height: 1.5;"&gt;18&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;]].&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;width&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;21.&amp;nbsp;iTunesLink should be your applications link&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;NSString *iTunesLink = @"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=xxxxxx&amp;amp;mt=8";&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;22.時間轉換NSString &amp;amp; NSDate：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&lt;span style="font-family: Menlo; font-size: 11px; line-height: normal;"&gt;-(&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;NSDate&lt;/span&gt;&amp;nbsp;*)NSStringDateToNSDate:(&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;NSString&lt;/span&gt;&amp;nbsp;*)string { &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #7031a8; font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;NSDateFormatter&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;*formatter = [[&lt;/span&gt;NSDateFormatter&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;alloc&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;]&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;init&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3f0b80; font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; [formatter&amp;nbsp;&lt;/span&gt;setTimeZone&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:[&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;NSTimeZone&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;timeZoneWithAbbreviation&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;span style="color: #c82a25; font-size: 13px; line-height: 1.5;"&gt;@"UTC"&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;]];&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp; [formatter&amp;nbsp;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;setDateFormat&lt;/span&gt;:&lt;span style="color: #c82a25; font-size: 13px; line-height: 1.5;"&gt;@"yyyy-MM-dd"&lt;/span&gt;];&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;NSDate&lt;/span&gt;&amp;nbsp;*date = [formatter&amp;nbsp;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;dateFromString&lt;/span&gt;:string];&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp; [formatter&amp;nbsp;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;release&lt;/span&gt;];&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&amp;nbsp;date;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;}&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&lt;span style="border-collapse: collapse; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 13px; line-height: 18px; white-space: pre;"&gt;&lt;span class="typ" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #2b91af; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;NSString&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;*&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;year &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;[&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;myDate descriptionWithCalendarFormat&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:@&lt;/span&gt;&lt;span class="str" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: maroon; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;"%Y"&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; timeZone&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:&lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: darkblue; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;nil&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; locale&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:&lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: darkblue; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;nil&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class="prettyprint" style="background-color: #eeeeee; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"&gt;&lt;span style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;code style="background-color: #eeeeee; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;or&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="prettyprint" style="background-color: #eeeeee; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"&gt;&lt;span style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;code style="background-color: #eeeeee; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 1.5; white-space: normal;"&gt;&lt;pre class="prettyprint" style="background-color: #eeeeee; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-color: #eeeeee; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="typ" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #2b91af; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;NSDateFormatter&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;*&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;formatter &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;[[&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #2b91af; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;NSDateFormatter&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; alloc&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;]&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; init&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;];&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;[&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;formatter setDateFormat&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:@&lt;/span&gt;&lt;span class="str" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: maroon; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;"yyyy"&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;];&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="com" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: grey; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;//Optionally for time zone converstions&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;[&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;formatter setTimeZone&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:[&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #2b91af; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;NSTimeZone&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; timeZoneWithName&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:@&lt;/span&gt;&lt;span class="str" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: maroon; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;"..."&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;]];&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #2b91af; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;NSString&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;*&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;stringFromDate &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;[&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;formatter stringFromDate&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;myNSDateInstance&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;];&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;22。 模擬器的文件位置&lt;/div&gt;&lt;span style="border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: normal;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse: collapse; empty-cells: show; line-height: normal; margin-left: 1px; table-layout: fixed; width: 824px; word-wrap: break-word;"&gt;&lt;tbody style="line-height: normal; word-wrap: break-word;"&gt;
&lt;tr style="line-height: normal; word-wrap: break-word;"&gt;&lt;td class="t_msgfont" id="postmessage_218695" style="color: #444444; display: table-cell; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; font: normal normal normal 14px/1.6em Verdana, Helvetica, Arial, sans-serif; visibility: visible; word-wrap: break-word;"&gt;其中#username#表示當前用戶名:&lt;br /&gt;
/Users/#username#/Library/Application Support/iPhone Simulator/User/Applications/&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;23.&lt;span style="color: #242020; font-family: 'Microsoft YaHei', Helvetica, Arial; font-size: 13px; line-height: 28px;"&gt;在使用UISearchBar時，將背景色設定為clearColor，或者將translucent設為YES，都不能使背景透明，經過一番研究，發現了一種超級簡單和實用的方法：&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #242020; font-family: 'Microsoft YaHei', Helvetica, Arial; font-size: 13px; line-height: 28px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="codecolorer-container objc mac-classic" style="background-color: white; border-left-color: rgb(159, 159, 159); color: black; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; margin-bottom: 10px; overflow-x: auto; overflow-y: auto; text-align: left; white-space: nowrap;"&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse: collapse; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace;"&gt;&lt;tbody style="font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace;"&gt;
&lt;tr style="font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace;"&gt;&lt;td class="line-numbers" style="background-color: #eeeeee; color: #888888; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: right;"&gt;&lt;div style="font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; width: 23px;"&gt;1&lt;/div&gt;&lt;/td&gt;&lt;td style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;"&gt;&lt;div class="objc codecolorer" style="background-color: white; color: black; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; white-space: nowrap;"&gt;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;[&lt;/span&gt;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;[&lt;/span&gt;searchbar.subviews objectAtIndex&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;:&lt;/span&gt;0&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;]&lt;/span&gt;removeFromSuperview&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;]&lt;/span&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #242020; font-family: 'Microsoft YaHei', Helvetica, Arial; font-size: 13px; line-height: 28px;"&gt;背景完全消除了，只剩下搜索框本身了。&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; 24. &amp;nbsp;圖像與緩存 :&lt;/div&gt;&lt;span style="border-collapse: collapse; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18px; white-space: nowrap;"&gt;UIImageView&amp;nbsp;&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;*&lt;/span&gt;wallpaper&amp;nbsp;&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;[&lt;/span&gt;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;[&lt;/span&gt;UIImageView alloc&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;]&lt;/span&gt;&amp;nbsp;initWithImage&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="border-collapse: collapse; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18px; white-space: nowrap;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;[&lt;/span&gt;UIImage imageNamed&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;span class="co3" style="color: #0066ff; font-size: 13px; font: italic normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;@&lt;/span&gt;&lt;span class="st0" style="color: #036a07; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;"icon.png"&lt;/span&gt;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;]&lt;/span&gt;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;]&lt;/span&gt;;&lt;/span&gt;&amp;nbsp;//&lt;strong&gt;&amp;nbsp;會緩存圖片&lt;/strong&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style="border-collapse: collapse; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18px; white-space: nowrap;"&gt;UIImageView&amp;nbsp;&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;*&lt;/span&gt;wallpaper&amp;nbsp;&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;[&lt;/span&gt;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;[&lt;/span&gt;UIImageView alloc&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;]&lt;/span&gt;&amp;nbsp;initWithImage&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="border-collapse: collapse; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18px; white-space: nowrap;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;[&lt;/span&gt;UIImage&amp;nbsp;&lt;span class="sy0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;imageWithContentsOfFile:&lt;/span&gt;&lt;span class="co3" style="color: #0066ff; font-size: 13px; font: italic normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;@&lt;/span&gt;&lt;span class="st0" style="color: #036a07; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;"icon.png"&lt;/span&gt;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;]&lt;/span&gt;&lt;span class="br0" style="color: black; font-size: 13px; font: normal normal normal 13px/1.4em Monaco, 'Lucida Console', monospace; line-height: 1.5;"&gt;]&lt;/span&gt;;&lt;/span&gt;&amp;nbsp;//&amp;nbsp;&lt;strong&gt;不會緩存圖片&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp; 25. iphone-常用的對視圖圖層(layer)的操作&lt;br /&gt;
&lt;br /&gt;
對圖層的操作：&lt;br /&gt;
&lt;br /&gt;
(1.給圖層添加背景圖片：&lt;br /&gt;
myView.layer.contents = (id)[UIImage imageNamed:@"view_BG.png"].CGImage;&lt;br /&gt;
&lt;br /&gt;
(2.將圖層的邊框設置為圓腳&lt;br /&gt;
myWebView.layer.cornerRadius = 8;&lt;br /&gt;
myWebView.layer.masksToBounds = YES;&lt;br /&gt;
&lt;br /&gt;
(3.給圖層添加一個有色邊框&lt;br /&gt;
myWebView.layer.borderWidth = 5;&lt;br /&gt;
myWebView.layer.borderColor = [[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:1] CGColor];&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;26.&amp;nbsp;&lt;span style="color: #7031a8; font-family: Menlo; font-size: 11px; line-height: normal;"&gt;UIPopoverController 使用&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;-(&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;) onSetting:(&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;id&lt;/span&gt;) sender {&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="color: #558186; font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;SplitBaseController&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;*detail = [[&lt;/span&gt;SettingServerController&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;alloc&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;]&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;init&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;CGRect&lt;/span&gt;&amp;nbsp;frame = [(&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;UIView&lt;/span&gt;&amp;nbsp;*)sender&amp;nbsp;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;frame&lt;/span&gt;];&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp; frame.&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;origin&lt;/span&gt;.&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;y&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style="color: #3900d5; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div style="color: #7031a8; font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;UIPopoverController&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;*popwin = [[&lt;/span&gt;UIPopoverController&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;alloc&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;]&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;initWithContentViewController&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:detail];&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3f0b80; font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; [popwin&amp;nbsp;&lt;/span&gt;setPopoverContentSize&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;CGSizeMake&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: #3900d5; font-size: 13px; line-height: 1.5;"&gt;400&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3900d5; font-size: 13px; line-height: 1.5;"&gt;300&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;&lt;/span&gt;animated&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;YES&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp; popwin.&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;delegate&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;self&lt;/span&gt;;&lt;/div&gt;&lt;div style="color: #3f0b80; font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; [popwin&amp;nbsp;&lt;/span&gt;presentPopoverFromRect&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;: frame&amp;nbsp;&lt;/span&gt;inView&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;self&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;.&lt;/span&gt;&lt;span style="color: #7031a8; font-size: 13px; line-height: 1.5;"&gt;view&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;permittedArrowDirections&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;UIPopoverArrowDirectionAny&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;animated&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;:&lt;/span&gt;&lt;span style="color: #b414a1; font-size: 13px; line-height: 1.5;"&gt;YES&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 11px/normal Menlo; line-height: 1.4; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&amp;nbsp; &amp;nbsp; [detail&amp;nbsp;&lt;span style="color: #3f0b80; font-size: 13px; line-height: 1.5;"&gt;release&lt;/span&gt;];&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="font-family: Menlo; font-size: 11px; line-height: normal;"&gt;}&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="color: #cc6618; font-size: 13px; font: normal normal normal 20px/normal Times; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="font-size: 13px; font: normal normal normal 20px/normal STSong; line-height: 1.5;"&gt;&amp;nbsp;27.在&lt;/span&gt;UINavigationBar&lt;span style="font-size: 13px; font: normal normal normal 20px/normal STSong; line-height: 1.5;"&gt;中添加左箭頭返回按鈕&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; font: normal normal normal 10px/normal Tahoma; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 12px; text-align: right; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal 'Heiti SC Light'; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;在&lt;span style="font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 1.5;"&gt;iPhone&lt;/span&gt;裡面最討厭的控件之一就是&lt;span style="font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 1.5;"&gt;&amp;nbsp;UINavigationBar&lt;/span&gt;了。這個控件樣式修改不方便，連添加按鈕也特別麻煩。下面的例子是如何手動添加帶箭頭的按鈕：&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 14px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;UINavigationItem *item = [navBar.items objectAtIndex:0];&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;UINavigationItem *back = [[UINavigationItem alloc] initWithTitle:@"Back"];&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;NSArray *items = [[NSArray alloc] initWithObjects:back,item,nil];&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;[navBar setItems:items];&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 14px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;- (BOOL)navigationBar:(UINavigationBar *)navigationBar&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;shouldPopItem:(UINavigationItem *)item{&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal 'Heiti SC Light'; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;&lt;span style="font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 1.5;"&gt;//&lt;/span&gt;在此處添加點擊&lt;span style="font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 1.5;"&gt;back&lt;/span&gt;按鈕之後的操作代碼&lt;span style="font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #666666; font-size: 13px; font: normal normal normal 12px/normal Arial; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;return NO;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="color: #666666; font-family: Arial; font-size: 12px; line-height: normal;"&gt;}&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-5046484891168945892?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/5046484891168945892/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphonecode.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/5046484891168945892?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/5046484891168945892?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphonecode.html' title='iPhone各類Code筆記(未分類)'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUEHSXsyfCp7ImA9Wx9UF0s.&quot;'><id>tag:blogger.com,1999:blog-1399164727595192864.post-7273218168309407671</id><published>2011-02-15T01:50:00.001-08:00</published><updated>2011-02-15T01:53:58.594-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-15T01:53:58.594-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title>iPhone代碼片段收集(持續更新)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Comic Sans MS', 宋体, Arial, sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;1.&amp;nbsp;stringWithFormat 用法：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; [NSString&amp;nbsp;stringWithFormat:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Hight:&amp;nbsp;%d°%@&amp;nbsp;&amp;nbsp;&amp;nbsp;Low:&amp;nbsp;%d°%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;[Temp],&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;C&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,[lTemp],&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;C&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; NSString to NSData:&lt;/div&gt;&lt;span style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class="prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"&gt;&lt;span style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;NSString&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;*&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; str&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="str" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;"kilonet"&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;span style="border-collapse: collapse; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 13px; line-height: 18px; white-space: pre;"&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; NSData&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;*&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; data&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=[&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;str dataUsingEncoding&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;NSUTF8StringEncoding&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;];&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 2. NSDate 用法：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSDate&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;today;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSDate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;tomorrow;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;today&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[NSDate&amp;nbsp;date];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tomorrow&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[NSDate&amp;nbsp;dateWithTimeInterval:(i&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;24&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;60&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;60&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;sinceDate:today];&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;可能有更好的&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date format用法：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;(NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;getDay:(NSDate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;d&amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;s&amp;nbsp;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSDateFormatter&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;format&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[NSDateFormatter&amp;nbsp;alloc]&amp;nbsp;init];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[format&amp;nbsp;setDateFormat:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;YYYY/MM/dd&amp;nbsp;hh:mm:ss&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;s&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[format&amp;nbsp;stringFromDate:d];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[format&amp;nbsp;release];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;s;&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;各地時區獲取：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NSDate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;nowDate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[NSDate&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;new&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;br /&gt;
&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_c29eebc7-c3c4-4770-95dd-934601828aa5" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="line-height: 1.5;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSDateFormatter&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;formatter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;[[NSDateFormatter&amp;nbsp;alloc]&amp;nbsp;init];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[formatter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;setDateFormat:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;yyyy/MM/dd&amp;nbsp;HH:mm:ss&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;根據時區名字獲取當前時間，如果該時區不存在，默認獲取系統當前時區的時間&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSTimeZone*&amp;nbsp;timeZone&amp;nbsp;=&amp;nbsp;[NSTimeZone&amp;nbsp;timeZoneWithName:@"Europe/Andorra"];&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[formatter&amp;nbsp;setTimeZone:timeZone];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;獲取所有的時區名字&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSArray&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;array&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[NSTimeZone&amp;nbsp;knownTimeZoneNames];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(@"array:%@",array);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;for循環&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(int&amp;nbsp;i=0;i&amp;lt;[array&amp;nbsp;count];i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSTimeZone*&amp;nbsp;timeZone&amp;nbsp;=&amp;nbsp;[NSTimeZone&amp;nbsp;timeZoneWithName:[array&amp;nbsp;objectAtIndex:i]];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[formatter&amp;nbsp;setTimeZone:timeZone];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSString&amp;nbsp;*locationTime&amp;nbsp;=&amp;nbsp;[formatter&amp;nbsp;stringFromDate:nowDate];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(@"時區名字:%@&amp;nbsp;&amp;nbsp;&amp;nbsp;:&amp;nbsp;時區當前時間:&amp;nbsp;%@",[array&amp;nbsp;objectAtIndex:i],locationTime);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;NSLog(@"timezone&amp;nbsp;name&amp;nbsp;is:%@",[array&amp;nbsp;objectAtIndex:i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;快速枚舉法&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;for&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;timeZoneName&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;in&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;array){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[formatter&amp;nbsp;setTimeZone:[NSTimeZone&amp;nbsp;timeZoneWithName:timeZoneName]];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;%@,%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,timeZoneName,[formatter&amp;nbsp;stringFromDate:nowDate]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[formatter&amp;nbsp;release];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[nowDate&amp;nbsp;release];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 獲取毫秒時間：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_4895dd7c-66bb-498f-9854-2661505f0fef" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;NSDateFormatter&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;dateFormatter&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[NSDateFormatter&amp;nbsp;alloc]&amp;nbsp;init];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[dateFormatter&amp;nbsp;setDateStyle:NSDateFormatterMediumStyle];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[dateFormatter&amp;nbsp;setTimeStyle:NSDateFormatterShortStyle];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;[dateFormatter&amp;nbsp;setDateFormat:@"hh:mm:ss"]&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[dateFormatter&amp;nbsp;setDateFormat:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;yyyy-MM-dd&amp;nbsp;HH:mm:ss.SSS&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Date%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;[dateFormatter&amp;nbsp;stringFromDate:[NSDate&amp;nbsp;date]]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[dateFormatter&amp;nbsp;release];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;3.&amp;nbsp;&lt;span style="color: #7031a8; font-family: Menlo; font-size: 11px; line-height: normal;"&gt;NSCalendar用法：&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;(NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;getWeek:(NSDate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;d&amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSCalendar&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;calendar&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[NSCalendar&amp;nbsp;alloc]&amp;nbsp;initWithCalendarIdentifier:NSGregorianCalendar];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;unsigned&amp;nbsp;units&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NSYearCalendarUnit&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;|&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NSMonthCalendarUnit&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;|&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;NSDayCalendarUnit&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;|&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;NSWeekdayCalendarUnit;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSDateComponents&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;components&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[calendar&amp;nbsp;components:units&amp;nbsp;fromDate:d];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[calendar&amp;nbsp;release];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;switch&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;([components&amp;nbsp;weekday])&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;case&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;2&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Monday&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;break&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;case&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;3&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Tuesday&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;break&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;case&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;4&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Wednesday&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;break&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;case&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;5&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Thursday&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;break&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;case&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;6&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Friday&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;break&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;case&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;7&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Saturday&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;break&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;case&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;1&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Sunday&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;break&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;default&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;No&amp;nbsp;Week&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;break&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;用components，我們可以讀取其他更多的數據。&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;4. 用Get方式讀取網絡數據：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;將網絡數讀取為字符串&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;getDataByURL:(NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;url&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[NSString&amp;nbsp;alloc]&amp;nbsp;initWithData:[NSData&amp;nbsp;dataWithContentsOfURL:[NSURL&amp;nbsp;URLWithString:[url&amp;nbsp;stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]&amp;nbsp;encoding:NSUTF8StringEncoding];&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;讀取網絡圖片&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(UIImage&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;getImageByURL:(NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;url&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;return&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[UIImage&amp;nbsp;alloc]&amp;nbsp;initWithData:[NSData&amp;nbsp;dataWithContentsOfURL:[NSURL&amp;nbsp;URLWithString:[url&amp;nbsp;stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]];&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 5. 多線程NSThread用法 ：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;[NSThread&amp;nbsp;detachNewThreadSelector:@selector(scheduleTask)&amp;nbsp;toTarget:self&amp;nbsp;withObject:nil];&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;scheduleTask&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;create&amp;nbsp;a&amp;nbsp;pool&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSAutoreleasePool&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;pool&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[NSAutoreleasePool&amp;nbsp;alloc]&amp;nbsp;init];&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;release&amp;nbsp;the&amp;nbsp;pool;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[pool&amp;nbsp;release];&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;如果有參數，則這麼使用：&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;[NSThread&amp;nbsp;detachNewThreadSelector:@selector(scheduleTask:)&amp;nbsp;toTarget:self&amp;nbsp;withObject:[NSDate&amp;nbsp;date]];&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;scheduleTask:(NSDate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;mdate&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;create&amp;nbsp;a&amp;nbsp;pool&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSAutoreleasePool&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;pool&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[NSAutoreleasePool&amp;nbsp;alloc]&amp;nbsp;init];&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;release&amp;nbsp;the&amp;nbsp;pool;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[pool&amp;nbsp;release];&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;注意selector裡有冒號。&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-size: 13px; line-height: 1.5;"&gt;在線程裡運行主線程裡的方法&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[self performSelectorOnMainThread:@selector(moveToMain)&amp;nbsp;withObject:nil&amp;nbsp;waitUntilDone:FALSE];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;6. 定時器NSTimer用法:&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_aaa158ba-412a-49e5-976d-bd61bfa902c9" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;一個可以自動關閉的Alert窗口&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UIAlertView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;alert&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[UIAlertView&amp;nbsp;alloc]&amp;nbsp;initWithTitle:nil&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;message:[&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;一個可以自動關閉的Alert窗口&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;delegate&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;:nil&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cancelButtonTitle:nil&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;NSLocalizedString(@"OK",&amp;nbsp;@"OK")&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;取消任何按鈕&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;otherButtonTitles:nil];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;[alert&amp;nbsp;setBounds:CGRectMake(alert.bounds.origin.x,&amp;nbsp;alert.bounds.origin.y,&amp;nbsp;alert.bounds.size.width,&amp;nbsp;alert.bounds.size.height+30.0)];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[alert&amp;nbsp;show];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UIActivityIndicatorView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;indicator&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[UIActivityIndicatorView&amp;nbsp;alloc]&amp;nbsp;initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;Adjust&amp;nbsp;the&amp;nbsp;indicator&amp;nbsp;so&amp;nbsp;it&amp;nbsp;is&amp;nbsp;up&amp;nbsp;a&amp;nbsp;few&amp;nbsp;pixels&amp;nbsp;from&amp;nbsp;the&amp;nbsp;bottom&amp;nbsp;of&amp;nbsp;the&amp;nbsp;alert&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;indicator.center&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;CGPointMake(alert.bounds.size.width&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;/&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;2&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;&amp;nbsp;alert.bounds.size.height&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;40.0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[indicator&amp;nbsp;startAnimating];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[alert&amp;nbsp;insertSubview:indicator&amp;nbsp;atIndex:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[indicator&amp;nbsp;release];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[NSTimer&amp;nbsp;scheduledTimerWithTimeInterval:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;3.0f&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;target:self&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;selector:@selector(dismissAlert:)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;userInfo:[NSDictionary&amp;nbsp;dictionaryWithObjectsAndKeys:alert,&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;alert&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;testing&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;key&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;,nil]&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;如果不用傳遞參數，那麼可以將此項設置為nil.&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;repeats:NO];&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;release&amp;nbsp;alert&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[alert&amp;nbsp;release];&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;dismissAlert:(NSTimer&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)timer{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;release&amp;nbsp;timer&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog([[timer&amp;nbsp;userInfo]&amp;nbsp;&amp;nbsp;objectForKey:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;key&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UIAlertView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;alert&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[timer&amp;nbsp;userInfo]&amp;nbsp;&amp;nbsp;objectForKey:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;alert&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[alert&amp;nbsp;dismissWithClickedButtonIndex:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;animated:YES];&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 定時器停止使用：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[timer&amp;nbsp;invalidate];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timer&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;nil;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 7. 用戶缺省值NSUserDefaults讀取：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;得到用戶缺省值&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSUserDefaults&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;defs&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[NSUserDefaults&amp;nbsp;standardUserDefaults];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;在缺省值中找到AppleLanguages,&amp;nbsp;返回值是一個數組&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSArray&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;languages&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[defs&amp;nbsp;objectForKey:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;AppleLanguages&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;all&amp;nbsp;language語言&amp;nbsp;is&amp;nbsp;%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;languages);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;在得到的數組中的第一個項就是用戶的首選語言了&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;首選語言&amp;nbsp;is&amp;nbsp;%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,[languages&amp;nbsp;objectAtIndex:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;]);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;get&amp;nbsp;the&amp;nbsp;language&amp;nbsp;&amp;amp;&amp;nbsp;country&amp;nbsp;code&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLocale&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;currentLocale&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[NSLocale&amp;nbsp;currentLocale];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Language&amp;nbsp;Code&amp;nbsp;is&amp;nbsp;%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;[currentLocale&amp;nbsp;objectForKey:NSLocaleLanguageCode]);&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;Country&amp;nbsp;Code&amp;nbsp;is&amp;nbsp;%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;[currentLocale&amp;nbsp;objectForKey:NSLocaleCountryCode]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 8. View之間切換的動態效果設置：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SettingsController&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;settings&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[SettingsController&amp;nbsp;alloc]initWithNibName:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;SettingsView&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;bundle:nil];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;settings.modalTransitionStyle&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;UIModalTransitionStyleFlipHorizontal;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;水平翻轉&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[self&amp;nbsp;presentModalViewController:settings&amp;nbsp;animated:YES];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[settings&amp;nbsp;release];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 9.NSScrollView 滑動用法：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;scrollViewDidScroll:(UIScrollView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)scrollView{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;正在滑動中...&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;);&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;用戶直接滑動NSScrollView，可以看到滑動條&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;scrollViewDidEndDecelerating:(UIScrollView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)scrollView&amp;nbsp;{&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;通過其他控件觸發NSScrollView滑動，看不到滑動條&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)&amp;nbsp;scrollViewDidEndScrollingAnimation:(UIScrollView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)scrollView&amp;nbsp;{&lt;br /&gt;
&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;10. 讀取全局的Delegate：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;KiloNetAppDelegate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;appdelegate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;(KiloNetAppDelegate&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)[[UIApplication&amp;nbsp;sharedApplication]&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;delegate&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 11.鍵盤處理系列&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: green; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-size: 13px; line-height: 1.5;"&gt;set&amp;nbsp;the&amp;nbsp;UIKeyboard&amp;nbsp;to&amp;nbsp;switch&amp;nbsp;to&amp;nbsp;a&amp;nbsp;different&amp;nbsp;text&amp;nbsp;field&amp;nbsp;when&amp;nbsp;you&amp;nbsp;press&amp;nbsp;return&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;switch&amp;nbsp;textField&amp;nbsp;to&amp;nbsp;the&amp;nbsp;name&amp;nbsp;of&amp;nbsp;your&amp;nbsp;textfield&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;[textField&amp;nbsp;becomeFirstResponder];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 12. 半透明層的實現：&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_175e7821-7d92-45c9-8a67-045b665b5f77" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;+&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)showWaiting:(UIView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)parent&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;int&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;width&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;32&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;height&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;32&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CGRect&amp;nbsp;frame&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[parent&amp;nbsp;frame];&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;[[UIScreen&amp;nbsp;mainScreen]&amp;nbsp;applicationFrame];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;int&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;x&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;frame.size.width;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;int&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;y&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;frame.size.height;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;frame&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;CGRectMake((x&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;width)&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;/&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;2&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;(y&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;-&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;height)&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;/&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;2&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,&amp;nbsp;width,&amp;nbsp;height);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UIActivityIndicatorView&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;progressInd&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[UIActivityIndicatorView&amp;nbsp;alloc]&amp;nbsp;initWithFrame:frame];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[progressInd&amp;nbsp;startAnimating];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;progressInd.activityIndicatorViewStyle&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;UIActivityIndicatorViewStyleWhiteLarge;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;frame&amp;nbsp;=&amp;nbsp;CGRectMake((x&amp;nbsp;-&amp;nbsp;140)/2,&amp;nbsp;(y&amp;nbsp;-&amp;nbsp;height)&amp;nbsp;/&amp;nbsp;2&amp;nbsp;+&amp;nbsp;height,&amp;nbsp;140,&amp;nbsp;30);&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UILabel&amp;nbsp;*waitingLable&amp;nbsp;=&amp;nbsp;[[UILabel&amp;nbsp;alloc]&amp;nbsp;initWithFrame:frame];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;waitingLable.text&amp;nbsp;=&amp;nbsp;@"Proccesing...";&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;waitingLable.textColor&amp;nbsp;=&amp;nbsp;[UIColor&amp;nbsp;whiteColor];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;waitingLable.font&amp;nbsp;=&amp;nbsp;[UIFont&amp;nbsp;systemFontOfSize:15];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;waitingLable.backgroundColor&amp;nbsp;=&amp;nbsp;[UIColor&amp;nbsp;clearColor];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;frame&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[parent&amp;nbsp;frame];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UIView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;theView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[UIView&amp;nbsp;alloc]&amp;nbsp;initWithFrame:frame];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;theView.backgroundColor&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[UIColor&amp;nbsp;blackColor];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;theView.alpha&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;0.8&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[theView&amp;nbsp;addSubview:progressInd];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;[theView&amp;nbsp;addSubview:waitingLable];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[progressInd&amp;nbsp;release];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[waitingLable&amp;nbsp;release];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[theView&amp;nbsp;setTag:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;9999&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[parent&amp;nbsp;addSubview:theView];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[theView&amp;nbsp;release];&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;+&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;void&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)hideWaiting:(UIView&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;)parent&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[[parent&amp;nbsp;viewWithTag:&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;9999&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;]&amp;nbsp;removeFromSuperview];&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;13. 設置View的圓角：&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: green; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;首先應用&amp;nbsp;&amp;nbsp;#import&amp;nbsp;&amp;lt;QuartzCore/QuartzCore.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;view.layer.cornerRadius&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: purple; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;10&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;;&lt;br /&gt;
view.layer.masksToBounds&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;YES;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;14. UIWebView顯示本地圖片(目前有點問題，無法正確顯示圖片):&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div class="cnblogs_code_hide" id="cnblogs_code_open_3dc4278c-54db-4025-8c50-36f17d53eb7d" style="display: block;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;imagePath&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[NSBundle&amp;nbsp;mainBundle]&amp;nbsp;resourcePath];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;imagePath&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[imagePath&amp;nbsp;stringByReplacingOccurrencesOfString:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;/&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;withString:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;imagePath&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[imagePath&amp;nbsp;stringByReplacingOccurrencesOfString:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;withString:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;%20&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSLog(&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;fileurl=%@&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,[NSString&amp;nbsp;stringWithFormat:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;file:/%@//&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,imagePath]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;[self&amp;nbsp;loadData:[html&amp;nbsp;dataUsingEncoding:NSUTF8StringEncoding]&amp;nbsp;MIMEType:@"text/html"&amp;nbsp;textEncodingName:@"UTF-8"&amp;nbsp;baseURL:[NSURL&amp;nbsp;fileURLWithPath:[NSString&amp;nbsp;stringWithFormat:@"file:/%@&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;",imagePath]]&amp;nbsp;];&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[self&amp;nbsp;loadHTMLString:html&amp;nbsp;baseURL:[NSURL&amp;nbsp;fileURLWithPath:[NSString&amp;nbsp;stringWithFormat:&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;@"&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;file:/%@//&lt;/span&gt;&lt;span style="color: maroon; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;"&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;,imagePath]&amp;nbsp;&amp;nbsp;&amp;nbsp;]];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 5px; text-indent: 0px;"&gt;&amp;nbsp;&lt;span style="font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSString&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;path&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[[NSBundle&amp;nbsp;mainBundle]&amp;nbsp;bundlePath];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="cnblogs_code" style="background-color: whitesmoke; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: 'Courier New'; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all;"&gt;&lt;div&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NSURL&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;*&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;baseURL&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;=&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;&amp;nbsp;[NSURL&amp;nbsp;fileURLWithPath:path];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[UIWebView&amp;nbsp;loadHTMLString:html&amp;nbsp;baseURL:baseURL];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;//&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New'; font-size: 13px; line-height: 1.5;"&gt;這段代碼可以正確顯示圖片。&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1399164727595192864-7273218168309407671?l=iphonemurmur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphonemurmur.blogspot.com/feeds/7273218168309407671/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphone.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/7273218168309407671?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1399164727595192864/posts/default/7273218168309407671?v=2'/><link rel='alternate' type='text/html' href='http://iphonemurmur.blogspot.com/2011/02/iphone.html' title='iPhone代碼片段收集(持續更新)'/><author><name>Hanson</name><uri>http://www.blogger.com/profile/03705090223241459781</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='15122142402892992507'/></author><thr:total>0</thr:total></entry></feed>