<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>iPhone 开发技术</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/" />
    <link rel="self" type="application/atom+xml" href="http://iphone.ipsw.info/atom.xml" />
    <id>tag:iphone.ipsw.info,2009-09-30://3</id>
    <updated>2010-08-30T04:05:44Z</updated>
    <subtitle>CocoaTouch,Objective-C,CoreAnimation</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.32-en</generator>

<entry>
    <title>Cocos2D 小游戏</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/08/cocos2d.html" />
    <id>tag:iphone.ipsw.info,2010://3.322</id>

    <published>2010-08-30T04:03:20Z</published>
    <updated>2010-08-30T04:05:44Z</updated>

    <summary></summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<a href="http://iphone.ipsw.info/IMG_0065.JPG"><img alt="IMG_0065.JPG" src="http://iphone.ipsw.info/assets_c/2010/08/IMG_0065-thumb-320x240-50.jpg" width="320" height="240" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>ObjC ICU 正则</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/08/objc-icu.html" />
    <id>tag:iphone.ipsw.info,2010://3.321</id>

    <published>2010-08-27T07:28:21Z</published>
    <updated>2010-08-27T07:29:06Z</updated>

    <summary>-(NSString*)removeHTMLTag:(NSString*)src...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
        <category term="Coding" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo">-(<span style="color: #743aa7">NSString</span>*)removeHTMLTag:(<span style="color: #743aa7">NSString</span>*)src</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo">{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #743aa7">NSError</span> *error = <span style="color: #bd23a0">NULL</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>NSMutableString<span style="color: #000000"> *dest=[</span>NSMutableString<span style="color: #000000"> </span><span style="color: #411a7f">stringWithCapacity</span><span style="color: #000000">:</span><span style="color: #3724d4">0</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #008517"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>NSRegularExpression<span style="color: #000000"> *regex = [</span>NSRegularExpression<span style="color: #000000"> </span><span style="color: #411a7f">regularExpressionWithPattern</span><span style="color: #000000">:</span><span style="color: #d22723">@"&lt;a href=\".+?\"&gt;(.+?)&lt;/a&gt;"</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">																		</span> &nbsp; </span>options<span style="color: #000000">:</span>NSRegularExpressionCaseInsensitive</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">																			</span> <span style="color: #411a7f">error</span>:&amp;error];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #008517"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #743aa7">NSRegularExpression</span><span style="color: #000000">* regex2 = [[</span><span style="color: #743aa7">NSRegularExpression</span><span style="color: #000000"> </span>alloc<span style="color: #000000">] </span>initWithPattern<span style="color: #000000">:</span><span style="color: #d22723">@"(?&lt;=&gt;).*?(?=&lt;/a&gt;)"</span><span style="color: #000000"> </span>options<span style="color: #000000">:</span>NSRegularExpressionCaseInsensitive<span style="color: #000000"> </span>error<span style="color: #000000">:</span><span style="color: #bd23a0">nil</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #743aa7">NSUInteger</span> numberOfMatches = [regex <span style="color: #411a7f">numberOfMatchesInString</span>:src</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">														</span><span style="color: #411a7f">options</span>:<span style="color: #3724d4">0</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">														</span>&nbsp; <span style="color: #411a7f">range</span>:<span style="color: #411a7f">NSMakeRange</span>(<span style="color: #3724d4">0</span>, [src <span style="color: #411a7f">length</span>])];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #bd23a0">if</span> (numberOfMatches !=<span style="color: #3724d4">0</span>) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>[dest <span style="color: #411a7f">appendString</span>:src];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>[regex </span>enumerateMatchesInString<span style="color: #000000">:src </span>options<span style="color: #000000">:</span><span style="color: #3724d4">0</span><span style="color: #000000"> </span>range<span style="color: #000000">:</span>NSMakeRange<span style="color: #000000">(</span><span style="color: #3724d4">0</span><span style="color: #000000">, [src </span>length<span style="color: #000000">])&nbsp;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">							</span> <span style="color: #411a7f">usingBlock</span>:^(<span style="color: #743aa7">NSTextCheckingResult</span> *result, <span style="color: #743aa7">NSMatchingFlags</span> flags, <span style="color: #bd23a0">BOOL</span> *stop) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">								</span>&nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">								</span>&nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">								</span> <span style="color: #743aa7">NSString</span>*resultString = [src <span style="color: #411a7f">substringWithRange</span>:[result <span style="color: #411a7f">range</span>]];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">								</span> <span style="color: #743aa7">NSString</span>*link=[resultString <span style="color: #411a7f">substringWithRange</span>:[[regex2 <span style="color: #411a7f">firstMatchInString</span>:resultString <span style="color: #411a7f">options</span>:<span style="color: #3724d4">0</span> <span style="color: #411a7f">range</span>:<span style="color: #411a7f">NSMakeRange</span>(<span style="color: #3724d4">0</span>,[resultString <span style="color: #411a7f">length</span>])] <span style="color: #411a7f">range</span>]];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">								</span>&nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">								</span> [dest </span>replaceCharactersInRange<span style="color: #000000">:[result </span>range<span style="color: #000000">] </span>withString<span style="color: #000000">:link];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">							</span> }];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">		</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #bd23a0">return</span><span style="color: #000000"> [dest </span>stringByReplacingOccurrencesOfString<span style="color: #000000">:</span><span style="color: #d22723">@"&lt;br /&gt;"</span><span style="color: #000000"> </span>withString<span style="color: #000000">:</span><span style="color: #d22723">@""</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">		</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">		</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>} <span style="color: #bd23a0">else</span> {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #bd23a0">return</span><span style="color: #000000"> [src </span>stringByReplacingOccurrencesOfString<span style="color: #000000">:</span><span style="color: #d22723">@"&lt;br /&gt;"</span><span style="color: #000000"> </span>withString<span style="color: #000000">:</span><span style="color: #d22723">@""</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo; min-height: 19.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Menlo">}</p> ]]>
        
    </content>
</entry>

<entry>
    <title>iPad external Screen Display </title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/08/post-63.html" />
    <id>tag:iphone.ipsw.info,2010://3.320</id>

    <published>2010-08-21T14:20:45Z</published>
    <updated>2010-08-21T14:21:58Z</updated>

    <summary><![CDATA[&nbsp;1326 writes / 0 errorsUSB mux: 0 s...]]></summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">&nbsp;1326 writes / 0 errors</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">USB mux: 0 short packets, 0 dups</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">AppleS5L8930XUSBPhy::enableDeviceMode : enable: 0</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">AppleS5L8930XUSBPhy::powerDown :</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">AppleEmbeddedUSBArbitrator::enableDeviceClock : enable: 0, index: 0</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000056.50551585]: AppleSamsungDPTXController::disableInterrupts: disabling</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000037]: AppleSamsungDPTXController::disableInterrupts: _outstandingIO=0 _pendingDisable=0</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.100284]: AppleSamsungDPTXController::enableInterrupts: enabling</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.002263]: AppleSamsungDPTXController::initAnalogFunctions: powered up DP PLL lockstate=16</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000079]: AppleSamsungDPTXController::startupHDCPBlock:</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000039]: AppleSamsungDPTXController::loadKey: Fuse Data.</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000756]: AppleSamsungDPTXController::shutdownHDCPBlock:</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000042]: AppleSamsungDPTXController::abortHDCPNegotiation:</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000038]: AppleSamsungDPTXController::disableHDCPProtection: Disabling encryption.</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">IOReturn AppleRGBOUT::set_display_device_gated(uint32_t), 1</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.634524]: IODPDevice::setPower: setting power level = 1</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000085]: AppleSamsungDPTXController::addDevice: virtual bool IODPController::addDevice(IODPDevice*, IOOptionBits): Attempting to add device to controller. result=1</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.107408]: IODPDevice::setPower: setting power level = 1</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.249387]: IODPDevice::setPower: setting power level = 1</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">AppleRGBOUT: DP cable attached</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">launchd[1740] Builtin profile: container (sandbox)</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">launchd[1740] Container: /private/var/mobile/Applications/70F52B37-7762-4DF0-B53B-5029D7B0BC04 [69] (sandbox)</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">IOReturn AppleRGBOUT::set_display_device_gated(uint32_t), 2</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">IOReturn AppleRGBOUT::set_digital_out_mode_gated(uint32_t, uint32_t) 9 5</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000004.3955799]: IODPDisplayInterface::setColorElement: Setting element 0xcae9f700</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000034]: IODPDisplayInterface::setTimingElement: Setting element 0xcb33aa80</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000027]: AppleSTDP3100::startLinkGated: starting Video link</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000024]: IODPDevice::setPower: setting power level = 1</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.100480]: AppleSTDP3100::startLinkGated: setPower ret=0x00000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.001091]: AppleSamsungDPTXController::recommendedLinkGated: validation with 1 lanes @ 1620000000 ret=0xe00002c7</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000089]: AppleSamsungDPTXController::recommendedLinkGated: validation with 2 lanes @ 1620000000 ret=0x00000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000066]: AppleSTDP3100::startLinkGated: recommendedLink ret=0x00000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.101130]: AppleSTDP3100::startLinkGated: trainLink ret=0x00000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000034]: IODPDevice::startLinkGated: starting Video link</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000020]: AppleSamsungDPTXController::startLinkGated: linkType=Video</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000024]: AppleSamsungDPTXController::configureVideo: Attempting to configuring video with the following properties:</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000037]: AppleSamsungDPTXController::configureVideoMode: Configure Video Master</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000025]: AppleSamsungDPTXController::validateVideo: Horizontal: total=1344 frontPorch=24 backPorch=160 active=1024</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000034]: AppleSamsungDPTXController::validateVideo: Vertical: total=806 frontPorch=3 backPorch=29 active=768</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000030]: AppleSamsungDPTXController::validateVideo: Timing: syncRate=60.0 interlaced=0</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000024]: AppleSamsungDPTXController::validateVideo: Color: depth=8 space=0 range=0 coefficient=0</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000026]: AppleSamsungDPTXController::validateVideo: stream clock=64995840</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000024]: AppleSamsungDPTXController::validateVideo: max stream clock=81000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000026]: AppleSamsungDPTXController::validateVideo: maxAvailableVSyncRate=99 mVid=64995840 nVid=81000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000056]: AppleSamsungDPTXController::configureVideo: Finished Configuring Video</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000023]: AppleSamsungDPTXController::startLinkGated: Enabling audio mute</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000020]: AppleSamsungDPTXController::startLinkGated: HDCP status after startLink: 0x00</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000023]: IODPDevice::startLinkGated: startLink ret=0x00000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000849]: AppleSTDP3100::startLinkGated: unprotectLink ret=0x00000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">[000000.000027]: IODPDisplayInterface::startLink: Starting Link ret=0x00000000</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; ">IOReturn AppleRGBOUT::set_displayport_mode(IODPDisplayColorElement*, IODPDisplayTimingElement*), mDPDriver-&gt;startLink()</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; "><br /></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; "><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>完善一个CoreData + NSXMLParser demo</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/07/coredata-nsxmlparser-demo.html" />
    <id>tag:iphone.ipsw.info,2010://3.319</id>

    <published>2010-07-23T05:19:48Z</published>
    <updated>2010-07-23T05:24:55Z</updated>

    <summary>XMLdemo.zip代码就不贴了...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<a href="http://iphone.ipsw.info/2010/07/23/XMLdemo.zip">XMLdemo.zip</a><br /><div><br /></div><div>代码就不贴了</div>]]>
        
    </content>
</entry>

<entry>
    <title>UIViewAnimation with block </title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/06/uiviewanimation-with-block.html" />
    <id>tag:iphone.ipsw.info,2010://3.318</id>

    <published>2010-06-21T02:35:12Z</published>
    <updated>2010-06-21T02:44:21Z</updated>

    <summary>UIViewAnimationWithBlocks使用block,动画结束后不需...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
        <category term="iPhone" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">UIViewAnimationWithBlocks使用block,动画结束后不需要使用回调方法，相比UIViewAnimation 方式要简洁很多</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><br /></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)setSelectedVeg:(<span style="color: #bd23a0">id</span>)sender</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">{ &nbsp; &nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4e8187"><span style="color: #000000">&nbsp; &nbsp; [</span>selectedVegetableIcon<span style="color: #000000"> </span><span style="color: #411a7f">setAlpha</span><span style="color: #000000">:</span><span style="color: #3724d4">0.0</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000">&nbsp; &nbsp; [</span><span style="color: #743aa7">UIView</span><span style="color: #000000"> </span>animateWithDuration<span style="color: #000000">:</span><span style="color: #3724d4">0.4</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #411a7f">animations</span>: ^{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #bd23a0">float</span> angle = [<span style="color: #bd23a0">self</span> <span style="color: #31595d">spinnerAngleForVegetable</span>:sender];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [</span><span style="color: #4e8187">vegetableSpinner</span><span style="color: #000000"> </span>setTransform<span style="color: #000000">:</span>CGAffineTransformMakeRotation<span style="color: #000000">(angle)];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #411a7f">completion</span>:^(<span style="color: #bd23a0">BOOL</span> finished) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [<span style="color: #4e8187">selectedVegetableIcon</span> <span style="color: #411a7f">setAlpha</span>:<span style="color: #3724d4">1.0</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><font class="Apple-style-span" color="#000000"><br /></font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">以上代码来自WWDC2010 iPlant PlantCareViem.m</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><br /></p></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">UIViewAnimation style&nbsp;Animation</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)setSelectedVeg:(<span style="color: #bd23a0">id</span>)sender</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">{ &nbsp; &nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4e8187"><span style="color: #000000">&nbsp; &nbsp; [</span>selectedVegetableIcon<span style="color: #000000"> </span><span style="color: #411a7f">setAlpha</span><span style="color: #000000">:</span><span style="color: #3724d4">0.0</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[</span><span style="color: #743aa7">UIView</span><span style="color: #000000"> </span>beginAnimations<span style="color: #000000">:</span><span style="color: #d22723">@"setSelectedVeg"</span><span style="color: #000000"> </span>context<span style="color: #000000">:</span><span style="color: #bd23a0">nil</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #31595d"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #bd23a0">float</span><span style="color: #000000"> angle = [</span><span style="color: #bd23a0">self</span><span style="color: #000000"> </span>spinnerAngleForVegetable<span style="color: #000000">:sender];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[</span><span style="color: #4e8187">vegetableSpinner</span><span style="color: #000000"> </span>setTransform<span style="color: #000000">:</span>CGAffineTransformMakeRotation<span style="color: #000000">(angle)];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[</span><span style="color: #743aa7">UIView</span><span style="color: #000000"> </span>setAnimationDuration<span style="color: #000000">:</span><span style="color: #3724d4">0.4</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[</span><span style="color: #743aa7">UIView</span><span style="color: #000000"> </span>setAnimationDelegate<span style="color: #000000">:</span><span style="color: #bd23a0">self</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[</span><span style="color: #743aa7">UIView</span><span style="color: #000000"> </span>setAnimationDidStopSelector<span style="color: #000000">:</span><span style="color: #bd23a0">@selector</span><span style="color: #000000">(</span><span style="color: #31595d">done</span><span style="color: #000000">)];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[</span><span style="color: #743aa7">UIView</span><span style="color: #000000"> </span>commitAnimations<span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">-(<span style="color: #bd23a0">void</span>)done</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4e8187"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[</span>selectedVegetableIcon<span style="color: #000000"> </span><span style="color: #411a7f">setAlpha</span><span style="color: #000000">:</span><span style="color: #3724d4">1.0</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p></p>]]>
        
    </content>
</entry>

<entry>
    <title>lldb help</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/06/lldb-help.html" />
    <id>tag:iphone.ipsw.info,2010://3.317</id>

    <published>2010-06-20T05:27:33Z</published>
    <updated>2010-06-20T05:28:42Z</updated>

    <summary>MacBook-Pro:~ yarshure$ /Users/yarshure/...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
        <category term="Coding" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<div>MacBook-Pro:~ yarshure$ /Users/yarshure/lldb/lldb/build/Debug/lldb&nbsp;</div><div>(lldb) help</div><div>The following is a list of built-in, permanent debugger commands:</div><div><br /></div><div>alias &nbsp; &nbsp; &nbsp; &nbsp;-- Allows users to define their own debugger command abbreviations.</div><div>append &nbsp; &nbsp; &nbsp; -- Allows the user to append a value to a single debugger setting variable, for settings that are of list types. Type 'settings' to see a list of debugger setting variables</div><div>apropos &nbsp; &nbsp; &nbsp;-- Finds a list of debugger commands related to a particular word/subject.</div><div>breakpoint &nbsp; -- A set of commands for operating on breakpoints.</div><div>call &nbsp; &nbsp; &nbsp; &nbsp; -- Call a function.</div><div>delete &nbsp; &nbsp; &nbsp; -- Lists the kinds of objects you can delete, and shows syntax for deleting them.</div><div>disassemble &nbsp;-- Disassemble bytes in the current function or anywhere in the inferior program.</div><div>expression &nbsp; -- Evaluate a C expression in the current program context, using variables currently in scope.</div><div>file &nbsp; &nbsp; &nbsp; &nbsp; -- Sets the file to be used as the main <a class="zem_slink" href="http://en.wikipedia.org/wiki/Executable" title="Executable" rel="wikipedia">executable</a> by the debugger.</div><div>frame &nbsp; &nbsp; &nbsp; &nbsp;-- A set of commands for operating on the current thread's frames.</div><div>help &nbsp; &nbsp; &nbsp; &nbsp; -- Shows a list of all debugger commands, or give details about specific commands.</div><div>image &nbsp; &nbsp; &nbsp; &nbsp;-- Access information for one or more executable images.</div><div>info &nbsp; &nbsp; &nbsp; &nbsp; -- Lists the kinds of objects for which you can get information, and shows the syntax for doing so.</div><div>log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- A set of commands for operating on logs.</div><div>memory &nbsp; &nbsp; &nbsp; -- A set of commands for operating on a memory.</div><div><a class="zem_slink" href="http://en.wikipedia.org/wiki/Process_%28computing%29" title="Process (computing)" rel="wikipedia">process</a> &nbsp; &nbsp; &nbsp;-- A set of commands for operating on a process.</div><div>quit &nbsp; &nbsp; &nbsp; &nbsp; -- Quits out of the LLDB debugger.</div><div>regexp-break -- Smart breakpoint command (using <a class="zem_slink" href="http://en.wikipedia.org/wiki/Regular_expression" title="Regular expression" rel="wikipedia">regular expressions</a>).</div><div>register &nbsp; &nbsp; -- Access thread registers.</div><div>script &nbsp; &nbsp; &nbsp; -- Passes an expression to the script <a class="zem_slink" href="http://en.wikipedia.org/wiki/Interpreter_%28computing%29" title="Interpreter (computing)" rel="wikipedia">interpreter</a> for evaluation and returns the results. Drops user into the interactive interpreter if no expressions are given.</div><div>select &nbsp; &nbsp; &nbsp; -- Lists the kinds of objects you can select, and shows syntax for selecting them.</div><div>set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Allows the user to set or change the value of a single debugger setting variable.</div><div>settings &nbsp; &nbsp; -- Lists the debugger settings variables available to the user to 'set' or 'show'.</div><div>show &nbsp; &nbsp; &nbsp; &nbsp; -- Allows the user to see a single debugger setting variable and its value, or lists them all.</div><div>source &nbsp; &nbsp; &nbsp; -- Reads in debugger commands from the file &lt;filename&gt; and executes them.</div><div><a class="zem_slink" href="http://en.wikipedia.org/wiki/Source_code" title="Source code" rel="wikipedia">source-file</a> &nbsp;-- Display source files from the current executable's debug info.</div><div>target &nbsp; &nbsp; &nbsp; -- A set of commands for operating on debugger targets.</div><div>thread &nbsp; &nbsp; &nbsp; -- A set of commands for operating on one or more thread within a running process.</div><div>unalias &nbsp; &nbsp; &nbsp;-- Allows the user to remove/delete a user-defined command abbreviation.</div><div>variable &nbsp; &nbsp; -- Access program arguments, locals, static and <a class="zem_slink" href="http://en.wikipedia.org/wiki/Global_variable" title="Global variable" rel="wikipedia">global variables</a>.</div><div><br /></div><div>The following is a list of your current command abbreviations (see 'alias' for more info):</div><div><br /></div><div>bt &nbsp; &nbsp; &nbsp; -- ('thread backtrace') &nbsp;Shows the <a class="zem_slink" href="http://en.wikipedia.org/wiki/Call_stack" title="Call stack" rel="wikipedia">stack</a> for one or more threads.</div><div>c &nbsp; &nbsp; &nbsp; &nbsp;-- ('process continue') &nbsp;Continues <a class="zem_slink" href="http://en.wikipedia.org/wiki/Execution_%28computing%29" title="Execution (computing)" rel="wikipedia">execution</a> all threads in the current process.</div><div>continue -- ('process continue') &nbsp;Continues execution all threads in the current process.</div><div>exit &nbsp; &nbsp; -- ('quit') &nbsp;Quits out of the LLDB debugger.</div><div>expr &nbsp; &nbsp; -- ('expression') &nbsp;Evaluate a C expression in the current program context, using variables currently in scope.</div><div>finish &nbsp; -- ('thread step-out') &nbsp;Source level single step out in specified thread (current thread, if none specified).</div><div>l &nbsp; &nbsp; &nbsp; &nbsp;-- ('source-file') &nbsp;Display source files from the current executable's debug info.</div><div>list &nbsp; &nbsp; -- ('source-file') &nbsp;Display source files from the current executable's debug info.</div><div>n &nbsp; &nbsp; &nbsp; &nbsp;-- ('thread step-over') &nbsp;Source level single step over in specified thread (current thread, if none specified).</div><div>next &nbsp; &nbsp; -- ('thread step-over') &nbsp;Source level single step over in specified thread (current thread, if none specified).</div><div>q &nbsp; &nbsp; &nbsp; &nbsp;-- ('quit') &nbsp;Quits out of the LLDB debugger.</div><div>r &nbsp; &nbsp; &nbsp; &nbsp;-- ('process launch') &nbsp;Launches the executable in the debugger.</div><div>run &nbsp; &nbsp; &nbsp;-- ('process launch') &nbsp;Launches the executable in the debugger.</div><div>s &nbsp; &nbsp; &nbsp; &nbsp;-- ('thread step-in') &nbsp;Source level single step in in specified thread (current thread, if none specified).</div><div>si &nbsp; &nbsp; &nbsp; -- ('thread step-inst') &nbsp;Single step one instruction in specified thread (current thread, if none specified).</div><div>step &nbsp; &nbsp; -- ('thread step-in') &nbsp;Source level single step in in specified thread (current thread, if none specified).</div><div>x &nbsp; &nbsp; &nbsp; &nbsp;-- ('memory read') &nbsp;Read memory from the process being <a class="zem_slink" href="http://en.wikipedia.org/wiki/Debugging" title="Debugging" rel="wikipedia">debugged</a>.</div><div><br /></div><div>For more information on any particular command, try 'help &lt;command-name&gt;'.</div>

<div class="zemanta-pixie" style="margin-top:10px;height:15px"><a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"><img class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=c0d38435-5a38-4bff-9e02-32c7bc5e5556" alt="Enhanced by Zemanta" style="border:none;float:right" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Invalid update: invalid number of sections</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/06/invalid-update-invalid-number-of-sections.html" />
    <id>tag:iphone.ipsw.info,2010://3.316</id>

    <published>2010-06-15T01:36:19Z</published>
    <updated>2010-06-15T01:37:15Z</updated>

    <summary>2010-06-15 09:35:14.408 JoyPlayer[494:20...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    <category term="invalidupdateinvalidnumberofsections" label="Invalid update: invalid number of sections" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-06-15 09:35:14.408 JoyPlayer[494:207] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-984.38/UITableView.m:772</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-06-15 09:35:14.408 JoyPlayer[494:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of sections.&nbsp; The number of sections contained in the table view after the update (2) must be equal to the number of sections contained in the table view before the update (1), plus or minus the number of sections inserted or deleted (0 inserted, 0 deleted).'</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-06-15 09:35:14.409 JoyPlayer[494:207] Stack: (</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 36209755,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 2528503049,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 36293691,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 2776852,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 5075846,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 5020217,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 43132,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 387640,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 2454948,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 2454803,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 32134584,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 32132632,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 32135830,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 31795157,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 35993825,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 35990600,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 41654157,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 41654354,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 4763651,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 10756,</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; 10610</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>)</b></p>]]>
        
    </content>
</entry>

<entry>
    <title>InAppSMS </title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/06/inappsms.html" />
    <id>tag:iphone.ipsw.info,2010://3.315</id>

    <published>2010-06-09T16:42:18Z</published>
    <updated>2010-06-09T16:43:23Z</updated>

    <summary>- (IBAction)sendSMS { 	 	BOOL canSendSMS...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">IBAction</span>)sendSMS {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #bd23a0">BOOL</span><span style="color: #000000"> canSendSMS = [</span>MFMessageComposeViewController<span style="color: #000000"> </span><span style="color: #411a7f">canSendText</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #411a7f">NSLog</span><span style="color: #000000">(</span>@"can send SMS [%d]"<span style="color: #000000">, canSendSMS);<span class="Apple-tab-span" style="white-space:pre">	</span></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #bd23a0">if</span> (canSendSMS) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span>MFMessageComposeViewController<span style="color: #000000"> *picker = [[</span>MFMessageComposeViewController<span style="color: #000000"> </span><span style="color: #411a7f">alloc</span><span style="color: #000000">] </span><span style="color: #411a7f">init</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>picker.</span>messageComposeDelegate<span style="color: #000000"> = </span><span style="color: #bd23a0">self</span><span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>picker.</span>navigationBar<span style="color: #000000">.</span>tintColor<span style="color: #000000"> = [</span>UIColor<span style="color: #000000"> </span><span style="color: #411a7f">blackColor</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>picker.<span style="color: #743aa7">body</span> = <span style="color: #d22723">@"test"</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>picker.<span style="color: #743aa7">recipients</span> = [<span style="color: #743aa7">NSArray</span> <span style="color: #411a7f">arrayWithObject</span>:<span style="color: #d22723">@"186-0123-0123"</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>[</span><span style="color: #bd23a0">self</span><span style="color: #000000"> </span>presentModalViewController<span style="color: #000000">:picker </span>animated<span style="color: #000000">:</span><span style="color: #bd23a0">YES</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>[picker <span style="color: #411a7f">release</span>];<span class="Apple-tab-span" style="white-space:pre">		</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}<span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)messageComposeViewController:(<span style="color: #743aa7">MFMessageComposeViewController</span> *)controller didFinishWithResult:(<span style="color: #411a7f">MessageComposeResult</span>)result {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>// Notifies users about errors associated with the interface</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #bd23a0">switch</span> (result) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #bd23a0">case</span><span style="color: #000000"> </span>MessageComposeResultCancelled<span style="color: #000000">:</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span></span><span style="color: #bd23a0">if</span><span style="color: #000000"> (</span><span style="color: #78482d">DEBUG</span><span style="color: #000000">) </span><span style="color: #411a7f">NSLog</span><span style="color: #000000">(</span>@"Result: canceled"<span style="color: #000000">);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span></span>break<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #bd23a0">case</span><span style="color: #000000"> </span>MessageComposeResultSent<span style="color: #000000">:</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span></span><span style="color: #bd23a0">if</span><span style="color: #000000"> (</span><span style="color: #78482d">DEBUG</span><span style="color: #000000">) </span><span style="color: #411a7f">NSLog</span><span style="color: #000000">(</span>@"Result: Sent"<span style="color: #000000">);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span></span>break<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #bd23a0">case</span><span style="color: #000000"> </span>MessageComposeResultFailed<span style="color: #000000">:</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span></span><span style="color: #bd23a0">if</span><span style="color: #000000"> (</span><span style="color: #78482d">DEBUG</span><span style="color: #000000">) </span><span style="color: #411a7f">NSLog</span><span style="color: #000000">(</span>@"Result: Failed"<span style="color: #000000">);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span></span>break<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span>default<span style="color: #000000">:</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span></span>break<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[</span><span style="color: #bd23a0">self</span><span style="color: #000000"> </span>dismissModalViewControllerAnimated<span style="color: #000000">:</span><span style="color: #bd23a0">YES</span><span style="color: #000000">];<span class="Apple-tab-span" style="white-space:pre">	</span></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p> ]]>
        
    </content>
</entry>

<entry>
    <title>KongXiangBo-iPad:~ root# hostinfo</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/06/kongxiangbo-ipad-root-hostinfo.html" />
    <id>tag:iphone.ipsw.info,2010://3.314</id>

    <published>2010-06-09T14:29:58Z</published>
    <updated>2010-06-09T14:30:19Z</updated>

    <summary>KongXiangBo-iPad:~ root# hostinfoMach ke...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<div>KongXiangBo-iPad:~ root# hostinfo</div><div>Mach kernel version:</div><div><span class="Apple-tab-span" style="white-space:pre">	</span> Darwin Kernel Version 10.3.1: Mon Mar 15 23:15:33 PDT 2010; root:xnu-1504.2.27~18/RELEASE_ARM_S5L8930X</div><div>Kernel configured for a single processor only.</div><div>1 processor is physically available.</div><div>1 processor is logically available.</div><div>Processor type: armv7 (arm v7)</div><div>Processor active: 0</div><div>Primary memory available: 247.00 megabytes</div><div>Default processor set: 27 tasks, 184 threads, 1 processors</div><div>Load average: 0.06, Mach factor: 0.93</div><div><br /></div> ]]>
        
    </content>
</entry>

<entry>
    <title>UINavigationBar 背景Hack </title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/06/uinavigationbar-hack.html" />
    <id>tag:iphone.ipsw.info,2010://3.313</id>

    <published>2010-06-07T11:51:27Z</published>
    <updated>2010-06-07T11:56:11Z</updated>

    <summary>LOGO_320×44.png 图片显示在背景上，@implementation...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-style-span" style="color: rgb(210, 39, 35); ">LOGO_320×44.png 图片显示在背景上，</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><font class="Apple-style-span" color="#D22723"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span style="color: #bd23a0">@implementation</span> UINavigationBar (UINavigationBarCategory)</p></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)drawRect:(<span style="color: #743aa7">CGRect</span>)rect {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Heiti SC Light'; color: #008517"><span style="font: 14.0px Menlo; color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="font: 14.0px Menlo">//</span>加入旋转坐标系代码</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517"><span style="color: #000000">&nbsp; &nbsp; </span>// Drawing code<span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #743aa7">UIImage</span> *navBarImage = [<span style="color: #743aa7">UIImage</span> <span style="color: #411a7f">imageNamed</span>:<span style="color: #d22723">@"LOGO_320×44.png"</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #743aa7">CGContextRef</span><span style="color: #000000"> context = </span>UIGraphicsGetCurrentContext<span style="color: #000000">();</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>CGContextTranslateCTM<span style="color: #000000">(context, </span><span style="color: #3724d4">0.0</span><span style="color: #000000">, </span><span style="color: #bd23a0">self</span><span style="color: #000000">.</span><span style="color: #743aa7">frame</span><span style="color: #000000">.</span><span style="color: #743aa7">size</span><span style="color: #000000">.</span><span style="color: #743aa7">height</span><span style="color: #000000">);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #411a7f">CGContextScaleCTM</span>(context, <span style="color: #3724d4">1.0</span>, -<span style="color: #3724d4">1.0</span>);<span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>CGPoint<span style="color: #000000"> </span>center<span style="color: #000000">=</span><span style="color: #bd23a0">self</span><span style="color: #000000">.</span>center<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #743aa7">CGImageRef</span><span style="color: #000000"> cgImage= </span>CGImageCreateWithImageInRect<span style="color: #000000">(navBarImage.</span><span style="color: #743aa7">CGImage</span><span style="color: #000000">, </span>CGRectMake<span style="color: #000000">(</span><span style="color: #3724d4">0</span><span style="color: #000000">, </span><span style="color: #3724d4">0</span><span style="color: #000000">, </span><span style="color: #3724d4">1</span><span style="color: #000000">, </span><span style="color: #3724d4">44</span><span style="color: #000000">));</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #411a7f">CGContextDrawImage</span>(context, <span style="color: #411a7f">CGRectMake</span>(<span style="color: #743aa7">center</span>.<span style="color: #743aa7">x</span>-<span style="color: #3724d4">160</span>-<span style="color: #3724d4">80</span>, <span style="color: #3724d4">0</span>, <span style="color: #3724d4">80</span>, <span style="color: #bd23a0">self</span>.<span style="color: #743aa7">frame</span>.<span style="color: #743aa7">size</span>.<span style="color: #743aa7">height</span>), cgImage);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #411a7f">CGContextDrawImage</span>(context, <span style="color: #411a7f">CGRectMake</span>(<span style="color: #743aa7">center</span>.<span style="color: #743aa7">x</span>-<span style="color: #3724d4">160</span>, <span style="color: #3724d4">0</span>, <span style="color: #3724d4">320</span>, <span style="color: #bd23a0">self</span>.<span style="color: #743aa7">frame</span>.<span style="color: #743aa7">size</span>.<span style="color: #743aa7">height</span>), navBarImage.<span style="color: #743aa7">CGImage</span>);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #411a7f">CGContextDrawImage</span>(context, <span style="color: #411a7f">CGRectMake</span>(<span style="color: #743aa7">center</span>.<span style="color: #743aa7">x</span>+<span style="color: #3724d4">160</span>, <span style="color: #3724d4">0</span>, <span style="color: #3724d4">80</span>, <span style="color: #bd23a0">self</span>.<span style="color: #743aa7">frame</span>.<span style="color: #743aa7">size</span>.<span style="color: #743aa7">height</span>), cgImage);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0">@end</p></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">old code</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span style="color: #411a7f">CGContextDrawImage</span>(context, <span style="color: #411a7f">CGRectMake</span>(<span style="color: #3724d4">0</span>, <span style="color: #3724d4">0</span>, <span style="color: #bd23a0">self</span>.<span style="color: #743aa7">frame</span>.<span style="color: #743aa7">size</span>.<span style="color: #743aa7">width</span>, <span style="color: #bd23a0">self</span>.<span style="color: #743aa7">frame</span>.<span style="color: #743aa7">size</span>.<span style="color: #743aa7">height</span>), navBarImage.<span style="color: #743aa7">CGImage</span>);</p><div>hack 过logo 不再拉伸</div><div><a href="http://iphone.ipsw.info/2010/06/07/nav_bar.png"><img alt="nav_bar.png" src="http://iphone.ipsw.info/assets_c/2010/06/nav_bar-thumb-320x172-47.png" width="320" height="172" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></div></p><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>sel_registerName  使用</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/06/sel-registername.html" />
    <id>tag:iphone.ipsw.info,2010://3.312</id>

    <published>2010-06-02T07:11:43Z</published>
    <updated>2010-06-02T07:15:27Z</updated>

    <summary> Q: 已知一个字符串，如何让objctive c 实例执行字符串代笔的方法？A...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    <category term="sel_registername" label="sel_registerName" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[ <div>Q: 已知一个字符串，如何让objctive c 实例执行字符串代笔的方法？</div><div>A: 使用<span class="Apple-style-span" style="color: rgb(65, 26, 127); font-family: Menlo, helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif; font-size: 14px; ">sel_registerName 注册成SEL,然后使用respondsToSelector</span><span class="Apple-style-span" style="font-family: Menlo, helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif; font-size: 14px; "><font class="Apple-style-span" color="#000000">判断是否可以执行，如果可以执行，那么使用<span class="Apple-style-span" style="color: rgb(65, 26, 127); ">performSelector 来执行</span></font></span></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)configureView:(<span style="color: rgb(116, 58, 167); ">NSString</span>&nbsp;*)performaction&nbsp;{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517"><font class="Apple-style-span" color="#000000"><br /></font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #bd23a0">if</span> ([performaction <span style="color: #411a7f">length</span>] &gt;<span style="color: #3724d4">0</span>) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span><span style="color: #bd23a0">SEL</span> sel=<span style="color: #411a7f">sel_registerName</span>([performaction <span style="color: #411a7f">UTF8String</span>]);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #bd23a0">if</span><span style="color: #000000"> ([</span><span style="color: #bd23a0">self</span><span style="color: #000000"> </span>respondsToSelector<span style="color: #000000">:sel]) {</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span>[</span><span style="color: #bd23a0">self</span><span style="color: #000000"> </span>performSelector<span style="color: #000000">:sel];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">		</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p></div>]]>
        
    </content>
</entry>

<entry>
    <title>NSOperation and KVO/KVC coding </title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/05/nsoperation-and-kvokvc-coding.html" />
    <id>tag:iphone.ipsw.info,2010://3.311</id>

    <published>2010-05-25T05:21:55Z</published>
    <updated>2010-05-25T07:21:12Z</updated>

    <summary>本文简要介绍如何使用KVO 跟踪NSOperation 状态traceOpera...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
        <category term="Coding" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="iPhone" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="nsoperationqueuensoperationkvckvo" label="NSOperationQueue NSOperation KVC KVO" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><font class="Apple-style-span" color="#31595D"></font></p><font class="Apple-style-span" color="#31595D"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span style="font: 14.0px 'Heiti SC Light'">本文简要介绍如何使用</span>KVO <span style="font: 14.0px 'Heiti SC Light'">跟踪</span>NSOperation <span style="font: 14.0px 'Heiti SC Light'">状态</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><font class="Apple-style-span" face="'Heiti SC Light', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif"><br /></font></p></font><p></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-style-span" style="color: rgb(49, 89, 93); ">traceOperation</span><font class="Apple-style-span" color="#000000">&nbsp;方法跟踪&nbsp;<span class="Apple-style-span" style="color: rgb(78, 129, 135); ">PageLoadOperation（NSOperation 子类）</span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">BOOL</span>)application:(<span style="color: #743aa7">UIApplication</span> *)application didFinishLaunchingWithOptions:(<span style="color: #743aa7">NSDictionary</span> *)launchOptions { &nbsp; &nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px">&nbsp;&nbsp; &nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517"><span style="color: #000000">&nbsp; &nbsp; </span>// Override point for customization after app launch&nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #bd23a0">for</span> (<span style="color: #743aa7">NSString</span> *urlString <span style="color: #bd23a0">in</span> <span style="color: #4e8187">urlArray</span>)&nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #743aa7">NSURL</span> *url = [<span style="color: #743aa7">NSURL</span> <span style="color: #411a7f">URLWithString</span>:urlString];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4e8187"><span style="color: #000000">&nbsp; &nbsp; &nbsp; &nbsp; </span>PageLoadOperation<span style="color: #000000"> *plo = [[</span>PageLoadOperation<span style="color: #000000"> </span><span style="color: #411a7f">alloc</span><span style="color: #000000">] </span><span style="color: #411a7f">initWithURL</span><span style="color: #000000">:url];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; &nbsp; &nbsp; [<span style="color: #4e8187">queue</span> <span style="color: #411a7f">addOperation</span>:plo];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #31595d"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>[</span><span style="color: #bd23a0">self</span><span style="color: #000000"> </span>traceOperation<span style="color: #000000">:plo];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; &nbsp; &nbsp; [plo <span style="color: #411a7f">release</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; }</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4e8187"><span style="color: #000000">&nbsp; &nbsp; [</span>window<span style="color: #000000"> </span><span style="color: #411a7f">addSubview</span><span style="color: #000000">:</span>viewController<span style="color: #000000">.</span><span style="color: #411a7f">view</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000">&nbsp; &nbsp; [</span><span style="color: #4e8187">window</span><span style="color: #000000"> </span>makeKeyAndVisible<span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>return<span style="color: #000000"> </span>YES<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">traceOperation 方法</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">KeyPath 官方文档说明&nbsp;<a href="http://developer.apple.com/mac/library/documentation/cocoa/reference/NSOperation_class/Reference/Reference.html#//apple_ref/doc/c_ref/NSOperation">http://developer.apple.com/mac/library/documentation/cocoa/reference/NSOperation_class/Reference/Reference.html#//apple_ref/doc/c_ref/NSOperation</a></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "></span></p><h3 style="margin-top: 1.5em; margin-bottom: 0.25em; font-size: 19px; font-weight: normal; color: rgb(0, 0, 0); ">KVO-Compliant Properties</h3><p style="margin-top: 0px; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; ">The&nbsp;<code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">NSOperation</code>&nbsp;class is key-value coding (KVC) and key-value observing (KVO) compliant for several of its properties. As needed, you can observe these properties to control other parts of your application. The properties you can observe include the following:</p><ul class="ul" style="list-style-type: square; list-style-position: outside; list-style-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2.5em; padding-top: 0px; padding-right: 0px; padding-bottom: 1em; padding-left: 0.5em; "><li class="li" style="margin-top: 0.583em; "><p style="margin-top: 0.667em; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; display: inline; "><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">isCancelled</code>&nbsp;- read-only property</p></li><li class="li" style="margin-top: 0.583em; "><p style="margin-top: 0.667em; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; display: inline; "><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">isConcurrent</code>&nbsp;- read-only property</p></li><li class="li" style="margin-top: 0.583em; "><p style="margin-top: 0.667em; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; display: inline; "><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">isExecuting</code>&nbsp;- read-only property</p></li><li class="li" style="margin-top: 0.583em; "><p style="margin-top: 0.667em; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; display: inline; "><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">isFinished</code>&nbsp;- read-only property</p></li><li class="li" style="margin-top: 0.583em; "><p style="margin-top: 0.667em; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; display: inline; "><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">isReady</code>&nbsp;- read-only property</p></li><li class="li" style="margin-top: 0.583em; "><p style="margin-top: 0.667em; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; display: inline; "><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">dependencies</code>&nbsp;- read-only property</p></li><li class="li" style="margin-top: 0.583em; "><p style="margin-top: 0.667em; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; display: inline; "><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">queuePriority</code>&nbsp;- readable and writable property</p></li><li class="li" style="margin-top: 0.583em; "><p style="margin-top: 0.667em; margin-bottom: 0.833em; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; display: inline; "><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">completionBlock</code>&nbsp;- readable and writable property (Mac OS X only)</p></li></ul><p></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">-(<span style="color: #bd23a0">void</span>)traceOperation:(<span style="color: #743aa7">NSOperation</span>*)obj</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[obj </span>addObserver<span style="color: #000000">:</span><span style="color: #bd23a0">self</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span> &nbsp; </span><span style="color: #411a7f">forKeyPath</span><span style="color: #000000">:</span>@"isExecuting"</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span>&nbsp; </span>options<span style="color: #000000">:</span><span style="color: #3724d4">0</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">			</span>&nbsp; <span style="color: #411a7f">context</span>:<span style="color: #bd23a0">NULL</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[obj </span>addObserver<span style="color: #000000">:</span><span style="color: #bd23a0">self</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span> &nbsp; </span><span style="color: #411a7f">forKeyPath</span><span style="color: #000000">:</span>@"isFinished"</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span>&nbsp; </span>options<span style="color: #000000">:</span><span style="color: #3724d4">0</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">			</span>&nbsp; <span style="color: #411a7f">context</span>:<span style="color: #bd23a0">NULL</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[obj </span>addObserver<span style="color: #000000">:</span><span style="color: #bd23a0">self</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>&nbsp; </span>forKeyPath<span style="color: #000000">:</span><span style="color: #d22723">@"isReady"</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span> </span>options<span style="color: #000000">:</span><span style="color: #3724d4">0</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">			</span> <span style="color: #411a7f">context</span>:<span style="color: #bd23a0">NULL</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>[obj </span>addObserver<span style="color: #000000">:</span><span style="color: #bd23a0">self</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>&nbsp; </span><span style="color: #411a7f">forKeyPath</span><span style="color: #000000">:</span>@"isCancelled"</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span> </span>options<span style="color: #000000">:</span><span style="color: #3724d4">0</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">			</span> <span style="color: #411a7f">context</span>:<span style="color: #bd23a0">NULL</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #78482d"><span class="Apple-style-span" style="color: rgb(51, 51, 51); "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; font: normal normal normal 14px/normal Menlo; color: rgb(120, 72, 45); "><br /></p></span></p></div><p></p><p></p><p></p>]]>
        <![CDATA[<span class="Apple-style-span" style="font-family: Menlo, helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif; font-size: 14px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; color: rgb(120, 72, 45); ">#pragma mark -</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; color: rgb(120, 72, 45); ">#pragma mark KVO 回调方法</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; ">- (<span style="color: rgb(189, 35, 160); ">void</span>)observeValueForKeyPath:(<span style="color: rgb(116, 58, 167); ">NSString</span>&nbsp;*)keyPath</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;ofObject:(<span style="color: rgb(189, 35, 160); ">id</span>)object</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;change:(<span style="color: rgb(116, 58, 167); ">NSDictionary</span>&nbsp;*)change</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;context:(<span style="color: rgb(189, 35, 160); ">void</span>&nbsp;*)context</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; ">{</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; color: rgb(210, 39, 35); "><span style="color: rgb(0, 0, 0); "><span class="Apple-tab-span" style="white-space: pre; ">	</span></span><span style="color: rgb(65, 26, 127); ">NSLog</span><span style="color: rgb(0, 0, 0); ">(</span>@"dict= %@ obj= %@,keypath=%@"<span style="color: rgb(0, 0, 0); ">,change,object,keyPath);</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; ">}</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; ">NSOperation 完成后回调方法,执行完第一个下载，cancel所有</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; border-style: initial; border-color: initial; font: normal normal normal 14px/normal Menlo; "><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)pageLoaded:(<span style="color: #743aa7">NSString</span>*)document;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #411a7f">NSLog</span><span style="color: #000000">(</span>@"%s Do something with the XMLDocument"<span style="color: #000000">, </span><span style="color: #bd23a0">_cmd</span><span style="color: #000000">);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #bd23a0">for</span> (<span style="color: #bd23a0">id</span> opt <span style="color: #bd23a0">in</span> [<span style="color: #4e8187">queue</span> <span style="color: #411a7f">operations</span>]) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #411a7f">NSLog</span><span style="color: #000000">(</span>@"opt:%@ will cancel"<span style="color: #000000">,opt);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>[(<span style="color: #743aa7">NSOperation</span>*)opt <span style="color: #411a7f">cancel</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span> &nbsp; &nbsp;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517"><span style="color: #000000">&nbsp; &nbsp;&nbsp;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><br /></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">执行log如下</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo">[Session started at 2010-05-25 13:31:26 +0800.]</p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.030 AsyncDownloader[2672:4503] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3b0a530&gt;,keypath=isExecuting</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.032 AsyncDownloader[2672:4903] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x390dc00&gt;,keypath=isExecuting</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.490 AsyncDownloader[2672:207] pageLoaded: Do something with the XMLDocument</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.490 AsyncDownloader[2672:4903] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x390dc00&gt;,keypath=isExecuting</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.490 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x3b0a530&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.494 AsyncDownloader[2672:207] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3b0a530&gt;,keypath=isCancelled</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.495 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x390dc00&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.495 AsyncDownloader[2672:4903] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x390dc00&gt;,keypath=isFinished</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.495 AsyncDownloader[2672:6607] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3912ae0&gt;,keypath=isExecuting</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.496 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x3912ae0&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.496 AsyncDownloader[2672:207] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3912ae0&gt;,keypath=isCancelled</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.497 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x3913470&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.497 AsyncDownloader[2672:207] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3913470&gt;,keypath=isCancelled</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.498 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x39135f0&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.499 AsyncDownloader[2672:207] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x39135f0&gt;,keypath=isCancelled</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.916 AsyncDownloader[2672:207] pageLoaded: Do something with the XMLDocument</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.916 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x3b0a530&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.916 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x3912ae0&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.916 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x3913470&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.916 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x39135f0&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.916 AsyncDownloader[2672:4503] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3b0a530&gt;,keypath=isExecuting</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.918 AsyncDownloader[2672:4503] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3b0a530&gt;,keypath=isFinished</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.920 AsyncDownloader[2672:5a33] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3913470&gt;,keypath=isFinished</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:28.922 AsyncDownloader[2672:4507] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x39135f0&gt;,keypath=isFinished</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:30.652 AsyncDownloader[2672:6607] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3912ae0&gt;,keypath=isExecuting</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:30.652 AsyncDownloader[2672:207] pageLoaded: Do something with the XMLDocument</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:30.653 AsyncDownloader[2672:207] opt:&lt;PageLoadOperation: 0x3912ae0&gt; will cancel</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>2010-05-25 13:31:30.654 AsyncDownloader[2672:6607] dict= {</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; kind = 1;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>} obj= &lt;PageLoadOperation: 0x3912ae0&gt;,keypath=isFinished</b></p><p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b><br /></b></p><p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>测试项目代码下载&nbsp;<span class="Apple-style-span" style="font-size: 14px; font-weight: normal; "><a href="http://iphone.ipsw.info/2010/05/25/AsyncDownloader.zip">AsyncDownloader.zip</a></span></b></p><div style="text-indent: -28px;"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; "><b><br /></b></span></font></div></p></p></p></span>]]>
    </content>
</entry>

<entry>
    <title>Using C++ With Objective-C</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/05/using-c-with-objective-c.html" />
    <id>tag:iphone.ipsw.info,2010://3.310</id>

    <published>2010-05-24T05:41:40Z</published>
    <updated>2010-05-24T05:53:57Z</updated>

    <summary><![CDATA[// // &nbsp;Greeting.h 头文件 //&nbsp; cpp_...]]></summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<br /><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">// &nbsp;<span class="Apple-style-span" style="color: rgb(210, 39, 35); ">Greeting</span>.h 头文件</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//&nbsp; cpp_demo</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//&nbsp; Created by <span style="font: 14.0px 'Heiti SC Light'">孔祥波</span> on 10-5-24.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//&nbsp; Copyright 2010 aaa. All rights reserved.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #78482d">#import </span>&lt;Foundation/Foundation.h&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span style="color: #bd23a0">class</span> Hello {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0">private<span style="color: #000000">:</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #bd23a0">id</span><span style="color: #000000"> </span><span style="color: #4e8187">greeting_text</span><span style="color: #000000">;&nbsp; </span>// holds an NSString</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0">public<span style="color: #000000">:</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>Hello() {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #4e8187">greeting_text</span><span style="color: #000000"> = </span>@"Hello, world!"<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4e8187"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>Hello(</span><span style="color: #bd23a0">const</span><span style="color: #000000"> </span><span style="color: #bd23a0">char</span><span style="color: #000000">* </span>initial_greeting_text<span style="color: #000000">) {</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4e8187"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span>greeting_text<span style="color: #000000"> = [[</span><span style="color: #743aa7">NSString</span><span style="color: #000000"> </span><span style="color: #411a7f">alloc</span><span style="color: #000000">] </span><span style="color: #411a7f">initWithUTF8String</span><span style="color: #000000">:</span>initial_greeting_text<span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #bd23a0">void</span> say_hello() {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span>printf<span style="color: #000000">(</span><span style="color: #d22723">"%s\n"</span><span style="color: #000000">, [</span><span style="color: #4e8187">greeting_text</span><span style="color: #000000"> </span>UTF8String<span style="color: #000000">]);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">};</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span style="color: #bd23a0">@interface</span> Greeting : NSObject {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0">@private</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4e8187"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>Hello<span style="color: #000000"> *</span>hello<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">id</span>)init;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)dealloc;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)sayGreeting;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)sayGreeting:(<span style="color: #4e8187">Hello</span>*)greeting;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0">@end</p><div><font class="Apple-style-span" color="#BD23A0" face="Menlo, helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif" size="4"><span class="Apple-style-span" style="font-size: 14px; "><br /></span></font></div><div><font class="Apple-style-span" color="#BD23A0" face="Menlo, helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif" size="4"><span class="Apple-style-span" style="font-size: 14px;"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><br /></p></span></font></div></div><div><br /></div>]]>
        <![CDATA[<div><br /></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//&nbsp;&nbsp;<span class="Apple-style-span" style="color: rgb(210, 39, 35); ">Greeting</span>.mm</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//&nbsp; cpp_demo</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//&nbsp; Created by <span style="font: 14.0px 'Heiti SC Light'">孔祥波</span> on 10-5-24.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//&nbsp; Copyright 2010 aaa. All rights reserved.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517">//</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #78482d">#import </span>"Greeting.h"</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0">@implementation<span style="color: #000000"> Greeting</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">id</span>)init {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; <span style="color: #bd23a0">if</span> (<span style="color: #bd23a0">self</span> = [<span style="color: #bd23a0">super</span> <span style="color: #411a7f">init</span>]) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; &nbsp; &nbsp; hello = <span style="color: #bd23a0">new</span> Hello();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; }</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"><span style="color: #000000">&nbsp; &nbsp; </span>return<span style="color: #000000"> </span>self<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)dealloc {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; <span style="color: #bd23a0">delete</span> hello;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; [<span style="color: #bd23a0">super</span> <span style="color: #411a7f">dealloc</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)sayGreeting {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; hello-&gt;say_hello();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">- (<span style="color: #bd23a0">void</span>)sayGreeting:(Hello*)greeting {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; greeting-&gt;say_hello();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0">@end</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"><br /></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0">使用Greeting 类，主要使用的类命名必须以.mm结尾，否则无法编译。</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #78482d">#import </span>"Greeting.h" 引入定义</p><p></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #bd23a0"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000">&nbsp;&nbsp;&nbsp;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #4e8187">Greeting</span> *greeting = [[<span style="color: #4e8187">Greeting</span> <span style="color: #411a7f">alloc</span>] <span style="color: #411a7f">init</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; [greeting <span style="color: #31595d">sayGreeting</span>]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008517">// &gt; Hello,&nbsp; world!</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; <span style="color: #4e8187">Hello</span> *hello = <span style="color: #bd23a0">new</span> <span style="color: #4e8187">Hello</span>(<span style="color: #d22723">"Bonjour, monde!"</span>);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; [greeting <span style="color: #31595d">sayGreeting</span>:hello]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008517">// &gt; Bonjour,&nbsp; monde!</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; <span style="color: #bd23a0">delete</span> hello;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">&nbsp; &nbsp; [greeting <span style="color: #411a7f">release</span>];</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><br /></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-style-span" style="color: rgb(189, 35, 160); ">例子下载 &nbsp;<a href="http://iphone.ipsw.info/2010/05/24/cpp_demo.zip" style="text-decoration: underline; ">cpp_demo.zip</a></span></p><p></p></div>]]>
    </content>
</entry>

<entry>
    <title>UIWebView &amp;WebKit  target == &apos;_blank&apos; </title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/05/uiwebview-webkit-target--blank.html" />
    <id>tag:iphone.ipsw.info,2010://3.309</id>

    <published>2010-05-07T05:02:40Z</published>
    <updated>2010-05-07T05:26:12Z</updated>

    <summary>http://www.icab.de/blog/category/program...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<div>http://www.icab.de/blog/category/programming/</div><div>有两篇很好的文章关于<span class="Apple-style-span" style="color: rgb(0, 51, 0); font-family: monospace, arial, sans-serif; font-size: 11px; line-height: 18px; white-space: pre; "> target == '_blank' <span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: arial, sans-serif; font-size: 18px; line-height: normal; ">window.open(url, "_blank");</span></span></div><div><span class="Apple-style-span" style="color: rgb(153, 153, 153); font-family: helvetica, arial, sans-serif; font-size: 12px; line-height: 18px; "><strong class="entry-title" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; background-position: initial initial; "><a href="http://www.icab.de/blog/2009/08/05/webkit-on-the-iphone-part-2/" title="Permanent link to WebKit on the iPhone (Part 2)" rel="bookmark" rev="post-21" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; color: rgb(81, 85, 92); text-decoration: none; background-position: initial initial; ">WebKit on the iPhone (Part 2)</a></strong><br /><div><span class="Apple-style-span" style="font-size: 14px; font-weight: bold; "><a href="http://www.icab.de/blog/2009/08/05/webkit-on-the-iphone-part-2/" title="Permanent link to WebKit on the iPhone (Part 2)" rel="bookmark" rev="post-21" style="text-decoration: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; color: rgb(81, 85, 92); ">WebKit on the iPhone (Part 1)</a></span></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;"><b>http://niw.at/articles/2009/02/06/how-to-enable-the-popup-window-on-uiwebview/en</b></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;"><b>&nbsp;这里讲的也不错</b></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;"><b><br /></b></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;"><b>偶不是搞Web开发JS 不会写，只能读读。</b></span></font></div></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>iPAD 链接外置显示器</title>
    <link rel="alternate" type="text/html" href="http://iphone.ipsw.info/2010/04/ipad-1.html" />
    <id>tag:iphone.ipsw.info,2010://3.308</id>

    <published>2010-04-30T05:58:51Z</published>
    <updated>2010-05-01T17:37:21Z</updated>

    <summary>iPhone SDK 3.2 /4.0 模拟器支持电视输出，可选分辨率为640*...</summary>
    <author>
        <name>孔祥波</name>
        
    </author>
    
    
    <content type="html" xml:lang="zh-cn" xml:base="http://iphone.ipsw.info/">
        <![CDATA[<div><br /></div><div>iPhone SDK 3.2 /4.0 模拟器支持电视输出，可选分辨率为</div><div>640*480</div><div>1024*168</div><div>1280*720 720p</div><div><br /></div><a href="http://iphone.ipsw.info/2010/05/02/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202010-05-02%20%E4%B8%8A%E5%8D%8801.27.22.png"><img alt="屏幕快照 2010-05-02 上午01.27.22.png" src="http://iphone.ipsw.info/assets_c/2010/05/屏幕快照 2010-05-02 上午01.27.22-thumb-320x493-43.png" width="186" height="287" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /><br /></a><a href="http://iphone.ipsw.info/2010/04/30/ipad_extern_displayer.png"></a><div><a href="http://iphone.ipsw.info/2010/04/30/ipad_extern_displayer.png"><img alt="ipad_extern_displayer.png" src="http://iphone.ipsw.info/assets_c/2010/04/ipad_extern_displayer-thumb-320x240-41.png" width="320" height="240" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a><br /><div><br /></div><div><br /></div></div>]]>
        <![CDATA[<div>上代码，自己看吧</div><div><br /></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">-(<span style="color: #bd23a0">void</span>)vgadisplay</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #d22723"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #411a7f">NSLog</span><span style="color: #000000">(</span>@"Number of screens: %d"<span style="color: #000000">, [[</span><span style="color: #743aa7">UIScreen</span><span style="color: #000000"> </span><span style="color: #411a7f">screens</span><span style="color: #000000">] </span><span style="color: #411a7f">count</span><span style="color: #000000">]);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #bd23a0">if</span><span style="color: #000000">([[</span><span style="color: #743aa7">UIScreen</span><span style="color: #000000"> </span><span style="color: #411a7f">screens</span><span style="color: #000000">]</span><span style="color: #411a7f">count</span><span style="color: #000000">] &gt; </span><span style="color: #3724d4">1</span><span style="color: #000000">) </span>//if there are more than 1 screens connected to the device</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span><span style="color: #743aa7">CGSize</span> max;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span><span style="color: #743aa7">UIScreenMode</span> *maxScreenMode;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #bd23a0">for</span><span style="color: #000000">(</span><span style="color: #bd23a0">int</span><span style="color: #000000"> i = </span><span style="color: #3724d4">0</span><span style="color: #000000">; i &lt; [[[[</span><span style="color: #743aa7">UIScreen</span><span style="color: #000000"> </span>screens<span style="color: #000000">] </span>objectAtIndex<span style="color: #000000">:</span><span style="color: #3724d4">1</span><span style="color: #000000">] </span>availableModes<span style="color: #000000">]</span>count<span style="color: #000000">]; i++)</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">			</span></span><span style="color: #743aa7">UIScreenMode</span><span style="color: #000000"> *current = [[[[</span><span style="color: #743aa7">UIScreen</span><span style="color: #000000"> </span>screens<span style="color: #000000">]</span>objectAtIndex<span style="color: #000000">:</span><span style="color: #3724d4">1</span><span style="color: #000000">]</span>availableModes<span style="color: #000000">]</span>objectAtIndex<span style="color: #000000">:i];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">			</span><span style="color: #bd23a0">if</span>(current.<span style="color: #743aa7">size</span>.<span style="color: #743aa7">width</span> &gt; max.<span style="color: #743aa7">width</span>);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">			</span>{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">				</span>max = current.<span style="color: #743aa7">size</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">				</span>maxScreenMode = current;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">			</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008517"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span>//Now we have the highest mode. Turn the external display to use that mode.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span><span style="color: #743aa7">UIScreen</span> *external = [[<span style="color: #743aa7">UIScreen</span> <span style="color: #411a7f">screens</span>] <span style="color: #411a7f">objectAtIndex</span>:<span style="color: #3724d4">1</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>external.<span style="color: #743aa7">currentMode</span> = maxScreenMode;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span><span style="color: #743aa7">UIWindow</span> *newwindow = [[<span style="color: #743aa7">UIWindow</span> <span style="color: #411a7f">alloc</span>] <span style="color: #411a7f">initWithFrame</span>:[external <span style="color: #411a7f">applicationFrame</span>]];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span></span><span style="color: #743aa7">UIView</span><span style="color: #000000"> *aview=[[</span><span style="color: #743aa7">UIView</span><span style="color: #000000"> </span>alloc<span style="color: #000000">] </span>initWithFrame<span style="color: #000000">:[external </span>applicationFrame<span style="color: #000000">]];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #743aa7"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>aview.</span>backgroundColor<span style="color: #000000"> =[</span>UIColor<span style="color: #000000"> </span><span style="color: #411a7f">redColor</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>[newwindow <span style="color: #411a7f">addSubview</span>:aview];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">		</span>newwindow.<span style="color: #743aa7">screen</span> = external;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #411a7f"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">		</span>[newwindow </span>makeKeyAndVisible<span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo"><span class="Apple-tab-span" style="white-space:pre">	</span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; min-height: 16.0px"><span class="Apple-tab-span" style="white-space:pre">	</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">}</p></div>]]>
    </content>
</entry>

</feed>
