锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产91久久精品一区二区,久久精品国产亚洲AV蜜臀色欲,久久九色综合九色99伊人http://www.shnenglu.com/wanghaiguang/category/20888.html閫嗘按琛岃垷錛屼笉榪涘垯閫zh-cnThu, 05 Mar 2015 08:52:36 GMTThu, 05 Mar 2015 08:52:36 GMT60UISearchBar鎺т歡錛堣漿杞斤級http://www.shnenglu.com/wanghaiguang/archive/2015/03/04/209924.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Wed, 04 Mar 2015 11:23:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2015/03/04/209924.htmlhttp://www.shnenglu.com/wanghaiguang/comments/209924.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2015/03/04/209924.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/209924.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/209924.html闃呰鍏ㄦ枃

]]>
iOS 瑙e喅NSString杞崲涓篘SURL鏃跺寘鍚腑鏂囧瓧絎?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2014/08/18/208048.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Mon, 18 Aug 2014 01:45:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2014/08/18/208048.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/208048.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2014/08/18/208048.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/208048.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/208048.html</trackback:ping><description><![CDATA[<span style="color: #362e2b; font-family: Verdana; line-height: 26px; background-color: #ffffff; font-size: 14pt;">NSString涓鏋滃寘鎷腑鏂囧瓧絎︼紝鍦ㄨ漿鎹負NSURL鏃跺緱鍒扮殑鍊間負nil<br /><br /></span><div><span style="color: #362e2b; font-family: Verdana; line-height: 26px; background-color: #ffffff; font-size: 14pt;">瑙e喅鍔炴硶錛?/span></div> <div> <div style="background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="font-family: Verdana; font-size: 14pt;">NSString *urlString = [NSString stringWithFormat:@"http://api.openweathermap.org/data/2.5/weather?q=%@&units=imperial",cityName];</span><br /> <span style="color: red; font-family: Verdana; font-size: 14pt;">urlString </span><span style="color: red; font-family: Verdana; font-size: 14pt;">=</span><span style="color: red; font-family: Verdana; font-size: 14pt;"> [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];</span><br /><span style="font-family: Verdana; font-size: 14pt;"> NSURL *url = [NSURL URLWithString:urlString];</span><br /><span style="font-family: Verdana; font-size: 14pt;"> NSLog(@"%@", url);</span></div> </div><img src ="http://www.shnenglu.com/wanghaiguang/aggbug/208048.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2014-08-18 09:45 <a href="http://www.shnenglu.com/wanghaiguang/archive/2014/08/18/208048.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>iOS 鐩戝惉 Home閿紙杞澆錛?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2014/08/01/207884.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Fri, 01 Aug 2014 05:31:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2014/08/01/207884.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/207884.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2014/08/01/207884.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/207884.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/207884.html</trackback:ping><description><![CDATA[<span style="background-color: #ececec; color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; font-size: 14px; line-height: 25px;">絎竴姝?</span><br /> <span style="color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; line-height: 25px; background-color: #ececec;">鍒涘緩2涓狽SNotificationCenter鐩戝惉</span><br style="line-height: 25px; color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; background-color: #ececec;" /> <pre class="prettyprint" name="code" style="white-space: pre-wrap; word-wrap: break-word; line-height: 25px; padding: 2px; border: 1px solid #888888; color: #626262; background-color: #ececec;"><span id="vdl7fj7" class="pun" style="color: #666600;">[[</span><span id="z97vf99" class="typ" style="color: #660066;">NSNotificationCenter</span><span id="pvn9jj7" class="pln" style="color: #000000;"> defaultCenter</span><span id="v1tzhd7" class="pun" style="color: #666600;">]</span><span id="91njxd9" class="pln" style="color: #000000;"> addObserver</span><span id="j779p9f" class="pun" style="color: #666600;">:</span><span id="ffbr7bd" class="kwd" style="color: #000088;">self</span><span id="njdtzz9" class="pln" style="color: #000000;"> selector</span><span id="9bt7n7r" class="pun" style="color: #666600;">:</span><span id="h9999dt" class="lit" style="color: #006666;">@selector</span><span id="pbv79jr" class="pun" style="color: #666600;">(</span><span id="9l7vzpp" class="pln" style="color: #000000;">applicationWillResignActive</span><span id="7t7tl79" class="pun" style="color: #666600;">:)</span> <span id="xjb9fh9" class="pln" style="color: #000000;">name</span><span id="9l97tjl" class="pun" style="color: #666600;">:</span><span id="l7bvrzb" class="typ" style="color: #660066;">UIApplicationWillResignActiveNotification</span><span id="bn9pjzp" class="pln" style="color: #000000;"> </span><span id="r7fzt79" class="kwd" style="color: #000088;">object</span><span id="xp797zx" class="pun" style="color: #666600;">:</span><span id="9tt979d" class="kwd" style="color: #000088;">nil</span><span id="tp79r7l" class="pun" style="color: #666600;">];</span><span id="z7tr7lh" class="pln" style="color: #000000;"> </span><span id="7fdj999" class="com" style="color: #880000;">//鐩戝惉鏄惁瑙﹀彂home閿寕璧風▼搴?</span> <span id="p9txv7p" class="pln" style="color: #000000;"> </span> <span id="7t9np7b" class="pun" style="color: #666600;">[[</span><span id="7797r97" class="typ" style="color: #660066;">NSNotificationCenter</span><span id="pb99frr" class="pln" style="color: #000000;"> defaultCenter</span><span id="b77b999" class="pun" style="color: #666600;">]</span><span id="r7pvxxn" class="pln" style="color: #000000;"> addObserver</span><span id="b9xbllt" class="pun" style="color: #666600;">:</span><span id="b171px7" class="kwd" style="color: #000088;">self</span><span id="9jnt7nb" class="pln" style="color: #000000;"> selector</span><span id="7nb799n" class="pun" style="color: #666600;">:</span><span id="r19nbb9" class="lit" style="color: #006666;">@selector</span><span id="7frp99f" class="pun" style="color: #666600;">(</span><span id="7p7vx9p" class="pln" style="color: #000000;">applicationDidBecomeActive</span><span id="9xbz9tj" class="pun" style="color: #666600;">:)</span> <span id="1t9b9bl" class="pln" style="color: #000000;">name</span><span id="1r9lpf9" class="pun" style="color: #666600;">:</span><span id="z7r7nlj" class="typ" style="color: #660066;">UIApplicationDidBecomeActiveNotification</span><span id="bp9jn79" class="pln" style="color: #000000;"> </span><span id="h9pv7b7" class="kwd" style="color: #000088;">object</span><span id="rhnlrpd" class="pun" style="color: #666600;">:</span><span id="xtrdbzp" class="kwd" style="color: #000088;">nil</span><span id="h1vr7rd" class="pun" style="color: #666600;">];</span><span id="lb99phn" class="pln" style="color: #000000;"> </span><span id="rzxjzz7" class="com" style="color: #880000;">//鐩戝惉鏄惁閲嶆柊榪涘叆紼嬪簭紼嬪簭.</span> <p style="margin: 0px 0px 10px; padding: 0px;"> </p> </pre> <br style="line-height: 25px; color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; background-color: #ececec;" /> <span style="color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; line-height: 25px; background-color: #ececec;">絎簩姝?</span><br style="line-height: 25px; color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; background-color: #ececec;" /> <span style="color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; line-height: 25px; background-color: #ececec;">瀹炵幇2涓狽SNotificationCenter鎵瑙﹀彂鐨勪簨浠舵柟娉?/span><br style="line-height: 25px; color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; background-color: #ececec;" /> <pre class="prettyprint" name="code" style="white-space: pre-wrap; word-wrap: break-word; line-height: 25px; padding: 2px; border: 1px solid #888888; color: #626262; background-color: #ececec;"><span id="tx777zh" class="pun" style="color: #666600;">-</span><span id="lf9999p" class="pln" style="color: #000000;"> </span><span id="zljb7tb" class="pun" style="color: #666600;">(</span><span id="7fv7r99" class="kwd" style="color: #000088;">void</span><span id="n9xjpzp" class="pun" style="color: #666600;">)</span><span id="7f7dndd" class="pln" style="color: #000000;">applicationWillResignActive</span><span id="dfv79nn" class="pun" style="color: #666600;">:(</span><span id="lpj7lrj" class="typ" style="color: #660066;">NSNotification</span><span id="b9nzljr" class="pln" style="color: #000000;"> </span><span id="z97dn99" class="pun" style="color: #666600;">*)</span><span id="779tdtj" class="pln" style="color: #000000;">notification</span> <span id="7vtn7dl" class="pun" style="color: #666600;">{</span> <span id="zd7j7fv" class="pln" style="color: #000000;"> printf</span><span id="rllt7tl" class="pun" style="color: #666600;">(</span><span id="df77tbr" class="str" style="color: #008800;">"鎸夌悊璇存槸瑙﹀彂home鎸変笅\n"</span><span id="fb99btr" class="pun" style="color: #666600;">);</span> <span id="7xrv7xn" class="pun" style="color: #666600;">}</span> <span id="79ptb97" class="pun" style="color: #666600;">-</span><span id="bflhflb" class="pln" style="color: #000000;"> </span><span id="j9d9b9p" class="pun" style="color: #666600;">(</span><span id="dp999hn" class="kwd" style="color: #000088;">void</span><span id="97997b9" class="pun" style="color: #666600;">)</span><span id="9f7dzz7" class="pln" style="color: #000000;">applicationDidBecomeActive</span><span id="zltfzpf" class="pun" style="color: #666600;">:(</span><span id="nz7tnn7" class="typ" style="color: #660066;">NSNotification</span><span id="n7ptp9x" class="pln" style="color: #000000;"> </span><span id="77b9pvl" class="pun" style="color: #666600;">*)</span><span id="rddpr7v" class="pln" style="color: #000000;">notification</span> <span id="xrh7ddl" class="pun" style="color: #666600;">{</span> <span id="xzv7lzr" class="pln" style="color: #000000;"> printf</span><span id="7f9hdt9" class="pun" style="color: #666600;">(</span><span id="jl79p9l" class="str" style="color: #008800;">"鎸夌悊璇存槸閲嶆柊榪涙潵鍚庡搷搴擻n"</span><span id="tfztpfn" class="pun" style="color: #666600;">);</span> <span id="vhtdhx7" class="pun" style="color: #666600;">}</span> <p style="margin: 0px 0px 10px; padding: 0px;"> </p> </pre> <br style="line-height: 25px; color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; background-color: #ececec;" /> <span style="color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; line-height: 25px; background-color: #ececec;">娉? 鍦╤ome閿Е鍙戝悗,AppDelegate鍝嶅簲鐨勬柟娉曚負:</span><br style="line-height: 25px; color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; background-color: #ececec;" /> <pre class="prettyprint" name="code" style="white-space: pre-wrap; word-wrap: break-word; line-height: 25px; padding: 2px; border: 1px solid #888888; color: #626262; background-color: #ececec;"><p style="margin: 0px 0px 10px; padding: 0px;"><span id="z7vhtjr" class="pun" style="color: #666600;">-</span><span id="d7zjvnv" class="pln" style="color: #000000;"> </span><span id="b99d9n9" class="pun" style="color: #666600;">(</span><span id="9jhl79r" class="kwd" style="color: #000088;">void</span><span id="xtfrdtb" class="pun" style="color: #666600;">)</span><span id="xrx77t9" class="pln" style="color: #000000;">applicationDidEnterBackground</span><span id="xbf7llj" class="pun" style="color: #666600;">:(</span><span id="xh779zh" class="typ" style="color: #660066;">UIApplication</span><span id="dvp7h9j" class="pln" style="color: #000000;"> </span><span id="tf7d7bz" class="pun" style="color: #666600;">*)</span><span id="htxr7d7" class="pln" style="color: #000000;">application</span> <span id="lfjl9xn" class="pun" style="color: #666600;">{</span> <span id="vxj7j9t" class="pln" style="color: #000000;"> </span><span id="9nptf7p" class="com" style="color: #880000;">/*</span> <span id="ptdztzp" class="com" style="color: #880000;"> Use this method to release shared resources, save user data, invalidate timers, </span> </p> <p style="margin: 0px 0px 10px; padding: 0px;"><span id="7zlp7fv" class="com" style="color: #880000;"> and store enough application state information to restore your application to its current state in case it is terminated later.</span> <span id="d7v79hv" class="com" style="color: #880000;"> If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.</span> <span id="97x9t9b" class="com" style="color: #880000;"> */</span> <span id="xpjxr7t" class="pun" style="color: #666600;">}</span></p> </pre> <span style="color: #626262; font-family: Arial, Helvetica, simsun, u5b8bu4f53; line-height: 25px; background-color: #ececec;">鏈枃杞嚜錛?/span>http://blog.csdn.net/sqc3375177/article/details/9466687 <div><br /> </div> <div>鍏朵粬鐩稿叧淇℃伅錛?/div> <div> <div style="line-height: 25px; color: #323e32; background-color: #ffffff; font-family: Monaco, 'DejaVu sans Mono', 'Bitstream Vera sans Mono', Consolas, 'Courier new', monospace; font-size: 12px; width: 679px; overflow: auto; margin-left: 9px; padding: 1px; word-break: break-all; word-wrap: break-word;"> <ol start="1" style="line-height: 1.4em; margin: 0px 0px 1px; padding: 2px 0px; border: 1px solid #d1d7dc; list-style: none; font-size: 1em; color: #2b91af;"> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">- <wbr style="line-height: 21px;">(BOOL)application:(UIApplication <wbr style="line-height: 21px;">*)application <wbr style="line-height: 21px;">didFinishLaunchingWithOp<wbr style="line-height: 21px;">tions:(NSDictionary <wbr style="line-height: 21px;">*)launchOptions <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">{ <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"><span style="word-wrap: normal; word-break: normal; color: #008200;">// <wbr style="line-height: 21px;">Override <wbr style="line-height: 21px;">point <wbr style="line-height: 21px;">for <wbr style="line-height: 21px;">customization <wbr style="line-height: 21px;">after <wbr style="line-height: 21px;">application <wbr style="line-height: 21px;">launch.</span> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;">NSLog(@<span style="word-wrap: normal; word-break: normal; color: blue;">"\n <wbr style="line-height: 21px;">===> <wbr style="line-height: 21px;">紼嬪簭寮濮?nbsp;<wbr style="line-height: 21px;">!"</span>); <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"><span style="word-wrap: normal; word-break: normal; color: #7f0055; font-weight: bold;">return</span> <wbr style="line-height: 21px;">YES; <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">} <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">- <wbr style="line-height: 21px;">(<span style="word-wrap: normal; word-break: normal; color: #7f0055; font-weight: bold;">void</span>)applicationWillResignAct<wbr style="line-height: 21px;">ive:(UIApplication <wbr style="line-height: 21px;">*)application <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">{ <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;">NSLog(@<span style="word-wrap: normal; word-break: normal; color: blue;">"\n <wbr style="line-height: 21px;">===> <wbr style="line-height: 21px;">紼嬪簭鏆傝 <wbr style="line-height: 21px;">!"</span>); <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">} <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">- <wbr style="line-height: 21px;">(<span style="word-wrap: normal; word-break: normal; color: #7f0055; font-weight: bold;">void</span>)applicationDidEnterBackg<wbr style="line-height: 21px;">round:(UIApplication <wbr style="line-height: 21px;">*)application <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">{ <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;">NSLog(@<span style="word-wrap: normal; word-break: normal; color: blue;">"\n <wbr style="line-height: 21px;">===> <wbr style="line-height: 21px;">紼嬪簭榪涘叆鍚庡彴 <wbr style="line-height: 21px;">!"</span>); <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">} <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">- <wbr style="line-height: 21px;">(<span style="word-wrap: normal; word-break: normal; color: #7f0055; font-weight: bold;">void</span>)applicationWillEnterFore<wbr style="line-height: 21px;">ground:(UIApplication <wbr style="line-height: 21px;">*)application <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">{ <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;">NSLog(@<span style="word-wrap: normal; word-break: normal; color: blue;">"\n <wbr style="line-height: 21px;">===> <wbr style="line-height: 21px;">紼嬪簭榪涘叆鍓嶅彴 <wbr style="line-height: 21px;">!"</span>); <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">} <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">- <wbr style="line-height: 21px;">(<span style="word-wrap: normal; word-break: normal; color: #7f0055; font-weight: bold;">void</span>)applicationDidBecomeActi<wbr style="line-height: 21px;">ve:(UIApplication <wbr style="line-height: 21px;">*)application <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">{ <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;">NSLog(@<span style="word-wrap: normal; word-break: normal; color: blue;">"\n <wbr style="line-height: 21px;">===> <wbr style="line-height: 21px;">紼嬪簭閲嶆柊嬋媧?nbsp;<wbr style="line-height: 21px;">!"</span>); <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">} <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">- <wbr style="line-height: 21px;">(<span style="word-wrap: normal; word-break: normal; color: #7f0055; font-weight: bold;">void</span>)applicationWillTerminate<wbr style="line-height: 21px;">:(UIApplication <wbr style="line-height: 21px;">*)application <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">{ <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;">NSLog(@<span style="word-wrap: normal; word-break: normal; color: blue;">"\n <wbr style="line-height: 21px;">===> <wbr style="line-height: 21px;">紼嬪簭鎰忓鏆傝 <wbr style="line-height: 21px;">!"</span>); <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;">UIDevice <wbr style="line-height: 21px;">*device <wbr style="line-height: 21px;">= <wbr style="line-height: 21px;">[UIDevice <wbr style="line-height: 21px;">currentDevice]; <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> <li style="line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px; border-width: 0px 0px 0px 1px; list-style: decimal; font-size: 1em; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa;"><span style="word-wrap: normal; word-break: normal; color: black;">} <wbr style="line-height: 21px;"> <wbr style="line-height: 21px;"></span></li> </ol> </div> <span style="line-height: 25px; color: #323e32; font-size: 16px; background-color: #ffffff; word-wrap: normal; word-break: normal; font-family: Helvetica, Tahoma, Arial, sans-serif;"> <wbr style="line-height: 28px;"></span> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;"><span style="word-wrap: normal; word-break: normal; color: #ff0000;">棣栨榪愯</span>錛?/p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;">- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOp<wbr style="line-height: 28px;">tions:(NSDictionary *)launchOptions</p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;">- (void)applicationDidBecomeActi<wbr style="line-height: 28px;">ve:(UIApplication *)application</p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;"> <wbr style="line-height: 28px;"></p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;"><span style="word-wrap: normal; word-break: normal; color: #ff0000;">棣栨鍏抽棴錛坔ome錛夛細</span></p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;">- (void)applicationWillResignAct<wbr style="line-height: 28px;">ive:(UIApplication *)application</p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;">- (void)applicationDidEnterBackg<wbr style="line-height: 28px;">round:(UIApplication *)application</p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;"> <wbr style="line-height: 28px;"></p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;"><span style="word-wrap: normal; word-break: normal; color: #ff0000;">鍐嶆榪愯錛?/span></p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;">- (void)applicationWillEnterFore<wbr style="line-height: 28px;">ground:(UIApplication *)application</p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;">- (void)applicationDidBecomeActi<wbr style="line-height: 28px;">ve:(UIApplication *)application</p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;"> <wbr style="line-height: 28px;"></p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;"><span style="word-wrap: normal; word-break: normal; color: #ff0000;">鍐嶆鍏抽棴錛?/span></p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;">- (void)applicationWillResignAct<wbr style="line-height: 28px;">ive:(UIApplication *)application</p> <p style="margin: 0px; padding: 0px; color: #323e32; font-family: simsun; font-size: 16px; background-color: #ffffff; border: 0px; list-style: none; word-wrap: normal; word-break: normal;">- (void)applicationDidEnterBackg<wbr style="line-height: 28px;">round:(UIApplication *)application</p> </div> <div><br /> </div> <div>鏈枃杞嚜錛歨ttp://friendlysong.blog.163.com/blog/static/3225243920128144251666/</div><img src ="http://www.shnenglu.com/wanghaiguang/aggbug/207884.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2014-08-01 13:31 <a href="http://www.shnenglu.com/wanghaiguang/archive/2014/08/01/207884.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>UIGestureRecognizer瀛︿範絎旇錛堣漿杞斤級鈥斺旀墜鍔胯瘑鍒姛鑳?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2014/07/29/207854.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Tue, 29 Jul 2014 05:35:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2014/07/29/207854.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/207854.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2014/07/29/207854.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/207854.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/207854.html</trackback:ping><description><![CDATA[     鎽樿: UIGestureRecognizer 鏄竴涓叿浣撴墜鍔跨殑鍩虹被錛屾彁渚涗簡杈冧負綆鍗曠殑鎵嬪娍瀹炵幇鏂瑰紡  The concrete subclasses of UIGestureRecognizer are the following:UITapGestureRecognizerUIPinchGestureRecognizerUIRotationGestureRecog...  <a href='http://www.shnenglu.com/wanghaiguang/archive/2014/07/29/207854.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/wanghaiguang/aggbug/207854.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2014-07-29 13:35 <a href="http://www.shnenglu.com/wanghaiguang/archive/2014/07/29/207854.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>iOS 娣誨姞libxml2.dylb 鍚? 鎵句笉鍒?lt;libxml/tree.h> 澶存枃浠?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207651.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Tue, 15 Jul 2014 05:50:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207651.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/207651.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207651.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/207651.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/207651.html</trackback:ping><description><![CDATA[<span style="font-size: 14pt; font-family: Verdana;">鍦?/span><span style="color: #333333; font-family: Verdana; background-color: #ffffff; font-size: 14pt;">“Header Search Paths” 涓坊鍔?/span><span style="color: #333333; font-family: Verdana; font-size: 14pt; background-color: #ffffff;">“/usr/include/libxml2″ <br /></span><span style="color: #333333; font-family: Verdana; font-size: 14pt; background-color: #ffffff;">鍦?/span><span style="color: #333333; font-family: Verdana; background-color: #ffffff; font-size: 14pt;">“Other Linker Flags”娣誨姞</span><span style="color: #333333; font-family: Verdana; font-size: 14pt; background-color: #ffffff;">“-lxml2″ <br /></span><span style="color: #333333; font-family: Verdana; font-size: 14pt; background-color: #ffffff;">榪愯鍚庡嚭鐜伴敊璇壘涓嶅埌</span><span style="font-size: 14pt; font-family: Verdana;"><libxml/tree.h><br /><br /></span><span style="font-size: 14pt; font-family: Verdana;"> 瑙e喅鍔炴硶錛?/span><span style="font-size: 14pt; font-family: Verdana;">鍦?/span><span style="color: #333333; font-family: Verdana; background-color: #ffffff; font-size: 14pt;">“Header Search Paths” 涓坊鍔?/span><span style="background-color: #ffffff;"> </span><span style="color: red; font-family: Verdana; font-size: 14pt; background-color: #ffffff;">${SDKROOT}</span><span style="color: #333333; font-family: Verdana; font-size: 14pt; background-color: #ffffff;"><strong>/usr/include/libxml2</strong></span><img src ="http://www.shnenglu.com/wanghaiguang/aggbug/207651.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2014-07-15 13:50 <a href="http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207651.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>iOS UIButton絎旇http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207650.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Tue, 15 Jul 2014 05:37:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207650.htmlhttp://www.shnenglu.com/wanghaiguang/comments/207650.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207650.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/207650.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/207650.html鍒涘緩涓ょ鏂規硶錛?/span>
錛?錛夊父瑙勭殑initWithFrame鐨勬柟寮?nbsp;
UIButton *btn1 = [[UIButton alloc]initWithFrame:CGRectMake(100, 50, 100, 75)];

[btn1 setTitle:@"close" forState:UIControlStateNormal];
btn1.backgroundColor = [UIColor greenColor];//button鐨勮儗鏅鑹?/span>
[btn1 setBackgroundImage:[UIImage imageNamed:@"1.png"] forState:UIControlStateNormal];//button鐨勮儗鏅浘鐗?/span>

錛?錛塙IButton 鐨勪竴涓被鏂規硶錛堜篃鍙互璇存槸闈欐佹柟娉曪級buttonWithType 
UIButton *btn2 = [UIButton buttonWithType:UIButtonTypeRoundedRect];
btn2.frame = CGRectMake(200, 20, 50, 60);
btn2.backgroundColor = [UIColor blackColor];
[btn2 setTitle:@"clicke" forState:UIControlStateNormal];
[self.window addSubview:btn1];
[self.window addSubview:btn2];
 
鑳藉瀹氫箟鐨刡utton綾誨瀷鐢?縐?/span>
typedef enum 

    UIButtonTypeCustom = 0,         // 鑷畾涔夛紝鏃犻鏍?nbsp;
    UIButtonTypeRoundedRect,      // 鐧借壊鍦嗚鐭╁艦錛岀被浼煎亸濂借緗〃鏍煎崟鍏冩垨鑰呭湴鍧綈垮崱鐗?nbsp;
    UIButtonTypeDetailDisclosure, // 钃濊壊鐨勬姭闇叉寜閽紝鍙斁鍦ㄤ換浣曟枃瀛楁梺 
    UIButtonTypeInfoLight,            // 寰歡(widget)浣跨敤鐨勫皬鍦嗗湀淇℃伅鎸夐挳錛屽彲浠ユ斁鍦ㄤ換浣曟枃瀛楁梺 
    UIButtonTypeInfoDark,            // 鐧借壊鑳屾櫙涓嬩嬌鐢ㄧ殑娣辮壊鍦嗗湀淇℃伅鎸夐挳 
    UIButtonTypeContactAdd,       // 钃濊壊鍔犲彿(+)鎸夐挳錛屽彲浠ユ斁鍦ㄤ換浣曟枃瀛楁梺 
} UIButtonType; 
 
[btn1 setTitle:@"BTN1" forState:UIControlStateNormal];                                                                   //璁劇疆鎸夐挳鐨勬爣棰?br /> 
[btn1 setTitle:@"楂樹寒鐘舵? forState:UIControlStateHighlighted];                                                        //楂樹寒鐘舵佹寜閽畉itle鍊?br />
[btn2 setImage:[UIImage imageNamed:@"pic"] forState:UIControlStateNormal];                             //浣犱篃鍙互涓烘寜閽殑鏌愪竴鐘舵佽緗負鍥?nbsp;

[btn1 setTitleColor:[UIColor redColor] forState:UIControlStateNormal];                                            //璁劇疆鏍囬棰滆壊 

[btn1 setTitleShadowColor:[UIColor grayColor] forState:UIControlStateNormal ];                             //闃村獎 

[btn1 setBackgroundImage:[UIImage imageNamed:@"PIC"] forState:UIControlStateHighlighted];  //鑳屾櫙鍥懼儚 

btn1.titleLabel.font = [UIFont fontWithName錛欯“test” size:18];                                                       //璁劇疆鎸夐挳瀛椾綋澶у皬

[btn1 setTag:101] ;                                                                                                                            //璁劇疆tag鍊?/span>

btn1.layer.cornerRadius = 4.5;                                                                                                          //璁劇疆鍦嗚——鍥涗釜鍦嗚鍗婂緞 
btn1.layer.borderWidth = 0.5;                                                                                                          // 鎸夐挳杈規瀹藉害
                   
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();                                                   // 璁劇疆棰滆壊絀洪棿涓簉gb錛岀敤浜庣敓鎴怌olorRef
CGColorRef borderColorRef = CGColorCreate(colorSpace,(CGFloat[]){ 0, 0, 0, 1 });                        // 鏂板緩涓涓孩鑹茬殑ColorRef錛岀敤浜庤緗竟妗嗭紙鍥涗釜鏁板瓧鍒嗗埆鏄?r, g, b, alpha錛?/span>
btn1.layer.borderColor = borderColorRef;                                                                                        // 璁劇疆杈規棰滆壊

鏇村灞炴у弬鑰冮摼鎺ワ細http://www.cocoachina.com/wiki/index.php?title=UIButton&variant=zh-cn

鍙傛暟 forState . 榪欎釜鍙傛暟鍐沖畾浜嗘爣棰樸佸浘鍍忔垨鍏朵粬灞炴у皢鍦ㄤ綍縐嶇姸鎬佷笅鏄劇幇銆備綘鍙互緙栫▼浠ゆ寜閽湪閭d釜鐘舵佸彉鍖?nbsp;
enum { 
    UIControlStateNormal       = 0,                    // 甯告?nbsp;                     
    UIControlStateHighlighted  = 1 << 0,          // 楂樹寒 
    UIControlStateDisabled     = 1 << 1,           // 紱佺敤 
    UIControlStateSelected     = 1 << 2,           // 閫変腑 
    UIControlStateApplication  = 0x00FF0000,  // 褰撳簲鐢ㄧ▼搴忔爣蹇椾嬌鐢ㄦ椂 
    UIControlStateReserved     = 0xFF000000  // 涓哄唴閮ㄦ鏋墮鐣欑殑 
}; 
typedef NSUInteger UIControlState; 
 
浣犲彧瑕佹帉鎻″墠鍥涚鐘舵佸氨濂戒簡銆?/span>
褰撴寜閽珮浜垨鑰呯鐢紝UIButton 綾誨彲浠ヨ皟鏁磋嚜宸辯殑澶栬錛屼笅闈㈠嚑涓睘鎬у彲浠ヨ浣犳寜鐓ч渶瑕佸鎸夐挳鐨勫瑙傝繘琛屽井璋冿細
adjustsImageWhenHighlighted
榛樿鎯呭喌涓嬶紝鍦ㄦ寜閽紱佺敤鏃訛紝鍥懼儚浼氳鐢葷殑棰滆壊娣變竴浜涖傝紱佺敤姝ゅ姛鑳斤紝璇峰皢榪欎釜灞炴ц緗負NO錛?/span>
btn1.adjustsImageWhenHighlighted = NO; 

adjustsImageWhenDisabled
榛樿鎯呭喌涓嬶紝鎸夐挳鍦ㄨ紱佺敤鏃訛紝鍥懼儚浼氳鐢葷殑棰滆壊娣′竴浜涖傝紱佺敤姝ゅ姛鑳斤紝璇峰皢榪欎釜灞炴ц緗負NO錛?/span>
btn1.adjustsImageWhenDisabled = NO; 

showsTouchWhenHighlighted
榪欎釜灞炴ц緗負YES錛屽彲浠ゆ寜閽湪鎸変笅鏃跺彂鍏夈傝繖鍙互鐢ㄤ簬淇℃伅鎸夐挳鎴栬呮湁浜涢噸瑕佺殑鎸夐挳錛?/span>
btn1.showsTouchWhenHighlighted = YES;
 
鏄劇ず鎺т歡
[self.view addSubview:btn1]; 
[self.view addSubview:btn2]; 
 
閲嶅啓緇樺埗琛屼負
 
浣犲彲浠ラ氳繃瀛愮被鍖栨寜閽潵瀹氬埗灞炰簬浣犺嚜宸辯殑鎸夐挳綾匯傚湪瀛愮被鍖栫殑鏃跺欎綘鍙互閲嶈澆涓嬮潰榪欎簺鏂規硶錛岃繖浜涙柟娉曡繑鍥濩GRect緇撴瀯錛屾寚鏄庝簡鎸夐挳姣忎竴緇勬垚閮ㄥ垎鐨勮竟鐣屻?/span>
娉ㄦ剰錛氫笉瑕佺洿鎺ヨ皟鐢ㄨ繖浜涙柟娉曪紝 榪欎簺鏂規硶鏄綘鍐欑粰緋葷粺璋冪敤鐨勩?/span>
 
backgroundRectForBounds   //鎸囧畾鑳屾櫙杈圭晫 
contentRectForBounds         // 鎸囧畾鍐呭杈圭晫 
titleRectForContentRect       // 鎸囧畾鏂囧瓧鏍囬杈圭晫  
imageRectForContentRect   //鎸囧畾鎸夐挳鍥懼儚杈圭晫 
 
渚嬶細
- (CGRect)imageRectForContentRect:(CGRect)bounds

     return CGRectMake(0.0, 0.0, 44, 44); 

 
[btn1 addTarget:self action:@selector(btnPressed:) forControlEvents:UIControlEventTouchUpInside];//娣誨姞鐐瑰嚮鎸夐挳浜嬩歡
 
-(void)btnPressed:(id)sender
{  
      UIButton* btn = (UIButton*)sender;  
      //寮濮嬪啓浣犺嚜宸辯殑鍔ㄤ綔 
}

forControlEvents鍙傛暟綾誨瀷
 typedef NS_OPTIONS(NSUInteger, UIControlEvents) 
{
    UIControlEventTouchDown                 = 1 <<  0,      // 鍗曠偣瑙︽懜鎸変笅浜嬩歡錛氱敤鎴風偣瑙﹀睆騫曪紝鎴栬呭張鏈夋柊鎵嬫寚钀戒笅鐨勬椂鍊欍?br />    UIControlEventTouchDownRepeat      = 1 <<  1,      // 澶氱偣瑙︽懜鎸変笅浜嬩歡錛岀偣瑙﹁鏁板ぇ浜?錛氱敤鎴鋒寜涓嬬浜屻佷笁銆佹垨絎洓鏍規墜鎸囩殑鏃跺欍?/span>
    UIControlEventTouchDragInside         = 1 <<  2,      // 褰撲竴嬈¤Е鎽稿湪鎺т歡紿楀彛鍐呮嫋鍔ㄦ椂銆?/span>
    UIControlEventTouchDragOutside       = 1 <<  3,      // 褰撲竴嬈¤Е鎽稿湪鎺т歡紿楀彛涔嬪鎷栧姩鏃躲?/span>
    UIControlEventTouchDragEnter           = 1 <<  4,      // 褰撲竴嬈¤Е鎽鎬粠鎺т歡紿楀彛涔嬪鎷栧姩鍒板唴閮ㄦ椂
    UIControlEventTouchDragExit             = 1 <<  5,      // 褰撲竴嬈¤Е鎽鎬粠鎺т歡紿楀彛鍐呴儴鎷栧姩鍒板閮ㄦ椂銆?/span>
    UIControlEventTouchUpInside            = 1 <<  6,      // 鎵鏈夊湪鎺т歡涔嬪唴瑙︽懜鎶搗浜嬩歡
    UIControlEventTouchUpOutside          = 1 <<  7,      // 鎵鏈夊湪鎺т歡涔嬪瑙︽懜鎶搗浜嬩歡(鐐硅Е蹇呴』寮濮嬩笌鎺т歡鍐呴儴鎵嶄細鍙戦侀氱煡)銆?/span>
    UIControlEventTouchCancel                = 1 <<  8,      //鎵鏈夎Е鎽稿彇娑堜簨浠訛紝鍗充竴嬈¤Е鎽稿洜涓烘斁涓婁簡澶鎵嬫寚鑰岃鍙栨秷錛屾垨鑰呰涓婇攣鎴栬呯數璇濆懠鍙墦鏂?/span>

    UIControlEventValueChanged             = 1 << 12,     // 褰撴帶浠剁殑鍊煎彂鐢熸敼鍙樻椂錛屽彂閫侀氱煡銆傜敤浜庢粦鍧椼佸垎孌墊帶浠躲佷互鍙婂叾浠栧彇鍊肩殑鎺т歡銆備綘鍙互閰嶇疆婊戝潡鎺т歡浣曟椂鍙戦侀氱煡錛屽湪婊戝潡琚斁涓嬫椂鍙戦侊紝鎴栬呭湪琚嫋鍔ㄦ椂鍙戦併?/span>

    UIControlEventEditingDidBegin           = 1 << 16,     // 褰撴枃鏈帶浠朵腑寮濮嬬紪杈戞椂鍙戦侀氱煡
    UIControlEventEditingChanged           = 1 << 17,     // 褰撴枃鏈帶浠朵腑鐨勬枃鏈鏀瑰彉鏃跺彂閫侀氱煡銆?/span>
    UIControlEventEditingDidEnd              = 1 << 18,     // 褰撴枃鏈帶浠朵腑緙栬緫緇撴潫鏃跺彂閫侀氱煡銆?/span>
    UIControlEventEditingDidEndOnExit    = 1 << 19,     // 褰撴枃鏈帶浠跺唴閫氳繃鎸変笅鍥炶濺閿紙鎴栫瓑浠瘋涓猴級緇撴潫緙栬緫鏃訛紝鍙戦侀氱煡銆?/span>

    UIControlEventAllTouchEvents             = 0x00000FFF,  // 閫氱煡鎵鏈夎Е鎽鎬簨浠躲?/span>
    UIControlEventAllEditingEvents           = 0x000F0000,  // 閫氱煡鎵鏈夊叧浜庢枃鏈紪杈戠殑浜嬩歡銆?/span>
    UIControlEventApplicationReserved    = 0x0F000000,  // range available for application use
    UIControlEventSystemReserved          = 0xF0000000,  // range reserved for internal framework use
    UIControlEventAllEvents                      = 0xFFFFFFFF   // 閫氱煡鎵鏈変簨浠?/span>
}; 

]]>
iOS UITextField絎旇http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207649.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Tue, 15 Jul 2014 03:02:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207649.htmlhttp://www.shnenglu.com/wanghaiguang/comments/207649.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207649.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/207649.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/207649.html
//鎵嬪姩瀹氫箟涓涓猆ITextField 鍙婂叾鍩烘湰鐨勫睘鎬э細
 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(202013030)];
 
//璁劇疆杈規鏍峰紡錛屽彧鏈夎緗簡鎵嶄細鏄劇ず杈規鏍峰紡銆
text.borderStyle = UITextBorderStyleRoundedRect;
typedef 
enum 
{
    UITextBorderStyleNone, 
    UITextBorderStyleLine,
    UITextBorderStyleBezel,
    UITextBorderStyleRoundedRect  
  } UITextBorderStyle;

text.backgroundColor 
= [UIColor whiteColor];                             //璁劇疆杈撳叆妗嗙殑鑳屾櫙棰滆壊錛屾鏃惰緗負鐧借壊 濡傛灉浣跨敤浜嗚嚜瀹氫箟鐨勮儗鏅浘鐗囪竟妗嗕細琚拷鐣ユ帀銆
text.background = [UIImage imageNamed:@"dd.png"];              //璁劇疆鑳屾櫙
text.disabledBackground = [UIImage imageNamed:@"cc.png"]; //璁劇疆鑳屾櫙
text.placeholder = @"password";                                                //褰撹緭鍏ユ娌℃湁鍐呭鏃訛紝姘村嵃鎻愮ず 鎻愮ず鍐呭涓簆assword
text.font = [UIFont fontWithName:@"Arial" size:20.0f];              //璁劇疆杈撳叆妗嗗唴瀹圭殑瀛椾綋鏍峰紡鍜屽ぇ灝?/span>
text.textColor = [UIColor redColor];                                            //璁劇疆瀛椾綋棰滆壊
text.clearButtonMode = UITextFieldViewModeAlways;                //杈撳叆妗嗕腑鏄惁鏈変釜鍙夊彿錛屽湪浠涔堟椂鍊欐樉紺猴紝鐢ㄤ簬涓嬈℃у垹闄よ緭鍏ユ涓殑鍐呭

typedef 
enum 
{
    UITextFieldViewModeNever,銆           
//閲嶄笉鍑虹幇
    UITextFieldViewModeWhileEditing,    
//緙栬緫鏃跺嚭鐜?/span>
    UITextFieldViewModeUnlessEditing,  
// 闄や簡緙栬緫澶栭兘鍑虹幇
    UITextFieldViewModeAlways 銆         
//涓鐩村嚭鐜?nbsp;
} UITextFieldViewMode;

text.text = @"涓寮濮嬪氨鍦ㄨ緭鍏ユ鐨勬枃瀛?/span>";   //杈撳叆妗嗕腑涓寮濮嬪氨鏈夌殑鏂囧瓧
text.secureTextEntry = YES;                 //姣忚緭鍏ヤ竴涓瓧絎﹀氨鍙樻垚鐐?nbsp;鐢ㄨ瀵嗙爜杈撳叆
text.autocorrectionType = UITextAutocorrectionTypeNo;//鏄惁綰犻敊
 
typedef enum 
{

    UITextAutocorrectionTypeDefault,  // 榛樿
    UITextAutocorrectionTypeNo, 銆     //涓嶈嚜鍔ㄧ籂閿?br />    UITextAutocorrectionTypeYes,銆     //鑷姩綰犻敊
} UITextAutocorrectionType;

text.clearsOnBeginEditing = YES;                            //鍐嶆緙栬緫灝辨竻絀?/span>
text.textAlignment = UITextAlignmentLeft;              //鍐呭瀵歸綈鏂瑰紡
text.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;//鍐呭鐨勫瀭鐩村榻愭柟寮?nbsp; UITextField緇ф壙鑷猆IControl,姝ょ被涓湁涓涓睘鎬ontentVerticalAlignment
textFied.adjustsFontSizeToFitWidth = YES;             //璁劇疆涓篩ES鏃舵枃鏈細鑷姩緙╁皬浠ラ傚簲鏂囨湰紿楀彛澶у皬.榛樿鏄繚鎸佸師鏉ュぇ灝?鑰岃闀挎枃鏈粴鍔ㄣ
text.minimumFontSize = 20;                                    //璁劇疆鑷姩緙╁皬鏄劇ず鐨勬渶灝忓瓧浣撳ぇ灝?/span>
text.keyboardType = UIKeyboardTypeNumberPad; //璁劇疆閿洏鐨勬牱寮?/span>
 
typedef 
enum 
{
    UIKeyboardTypeDefault,     銆                       榛樿閿洏錛屾敮鎸佹墍鏈夊瓧絎?br />    UIKeyboardTypeASCIICapable,銆                 鏀寔ASCII鐨勯粯璁ら敭鐩?br />    UIKeyboardTypeNumbersAndPunctuation,銆鏍囧噯鐢佃瘽閿洏錛屾敮鎸侊紜錛婏純瀛楃
    UIKeyboardTypeURL,                                    URL閿洏錛屾敮鎸?com鎸夐挳 鍙敮鎸乁RL瀛楃
UIKeyboardTypeNumberPad,            銆             鏁板瓧閿洏
UIKeyboardTypePhonePad,銆 銆                       鐢佃瘽閿洏
    UIKeyboardTypeNamePhonePad, 銆             鐢佃瘽閿洏錛屼篃鏀寔杈撳叆浜哄悕
UIKeyboardTypeEmailAddress, 銆                     鐢ㄤ簬杈撳叆鐢靛瓙 閭歡鍦板潃鐨勯敭鐩?nbsp;    
UIKeyboardTypeDecimalPad,   銆                      鏁板瓧閿洏 鏈夋暟瀛楀拰灝忔暟鐐?br />    UIKeyboardTypeTwitter,      銆                      浼樺寲鐨勯敭鐩橈紝鏂逛究杈撳叆@銆?瀛楃
    
UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, 
} UIKeyboardType;
 
text.autocapitalizationType 
= UITextAutocapitalizationTypeNone;//棣栧瓧姣嶆槸鍚﹀ぇ鍐?/span>
 
typedef 
enum 
{
    UITextAutocapitalizationTypeNone,              涓嶈嚜鍔ㄥぇ鍐?br />    UITextAutocapitalizationTypeWords,銆         鍗曡瘝棣栧瓧姣嶅ぇ鍐?br />    UITextAutocapitalizationTypeSentences,銆   鍙ュ瓙鐨勯瀛楁瘝澶у啓
    UITextAutocapitalizationTypeAllCharacters,  鎵鏈夊瓧姣嶉兘澶у啓 
} UITextAutocapitalizationType;

 text.returnKeyType =UIReturnKeyDone;//return閿彉鎴愪粈涔堥敭
typedef enum 
{
    UIReturnKeyDefault,              榛樿 鐏拌壊鎸夐挳錛屾爣鏈塕eturn
    UIReturnKeyGo,    銆              鏍囨湁Go鐨勮摑鑹叉寜閽?br />    UIReturnKeyGoogle,              鏍囨湁Google鐨勮摑鑹叉寜閽紝鐢ㄨ鎼滅儲
    UIReturnKeyJoin,                   鏍囨湁Join鐨勮摑鑹叉寜閽?br />    UIReturnKeyNext,                  鏍囨湁Next鐨勮摑鑹叉寜閽?br />    UIReturnKeyRoute,                鏍囨湁Route鐨勮摑鑹叉寜閽?br />    UIReturnKeySearch,              鏍囨湁Search鐨勮摑鑹叉寜閽?br />    UIReturnKeySend,                 鏍囨湁Send鐨勮摑鑹叉寜閽?br />    UIReturnKeyYahoo,               鏍囨湁Yahoo鐨勮摑鑹叉寜閽?br />    UIReturnKeyYahoo,               鏍囨湁Yahoo鐨勮摑鑹叉寜閽?br />    UIReturnKeyEmergencyCall,  绱фュ懠鍙寜閽?nbsp;
} UIReturnKeyType;

textView.keyboardAppearance=UIKeyboardAppearanceDefault錛?/span>//閿洏澶栬
typedef enum 
{
UIKeyboardAppearanceDefault錛?/span>   榛樿澶栬錛屾祬鐏拌壊
UIKeyboardAppearanceAlert錛?/span>銆 銆娣辯伆 鐭沖ⅷ鑹?/span>
} UIReturnKeyType;

text.delegate = self;//璁劇疆浠g悊 鐢ㄤ簬瀹炵幇鍗忚
[self.window addSubview:text];//鎶妕extfield鍔犲埌瑙嗗浘涓?br /> 
//鏈鍙充晶鍔犲浘鐗囨槸浠ヤ笅浠g爜銆 宸︿晶綾諱技
 UIImageView *image=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"right.png"]];
 text.rightView
=image;
 text.rightViewMode 
= UITextFieldViewModeAlways; 
 
typedef 
enum 
{
    UITextFieldViewModeNever,
    UITextFieldViewModeWhileEditing,
    UITextFieldViewModeUnlessEditing,
    UITextFieldViewModeAlways
} UITextFieldViewMode;
 
//鎸塺eturn閿敭鐩樺線涓嬫敹  becomeFirstResponder
 
綾昏閲囩敤UITextFieldDelegate鍗忚
text.
delegate = self;銆澹版槑text鐨勪唬鐞嗘槸鎴戯紝鎴戜細鍘誨疄鐜版妸閿洏寰涓嬫敹鐨勬柟娉?nbsp;榪欎釜鏂規硶鍦║ITextFieldDelegate閲屾墍浠ユ垜浠閲囩敤UITextFieldDelegate榪欎釜鍗忚
 
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [text resignFirstResponder];    
//涓昏鏄痆receiver resignFirstResponder]鍦ㄥ摢璋冪敤灝辮兘鎶妑eceiver瀵瑰簲鐨勯敭鐩樺線涓嬫敹
    return YES;
}
閲嶅啓緇樺埗琛屼負
闄や簡UITextField瀵硅薄鐨勯鏍奸夐」錛屼綘榪樺彲浠ュ畾鍒跺寲UITextField瀵硅薄錛屼負浠栨坊鍔犺澶氫笉鍚岀殑閲嶅啓鏂規硶錛屾潵鏀瑰彉鏂囨湰瀛楁鐨勬樉紺鴻涓恒傝繖浜涙柟娉曢兘浼氳繑鍥炰竴涓狢GRect緇撴瀯錛屽埗瀹氫簡鏂囨湰瀛楁姣忎釜閮ㄤ歡鐨勮竟鐣岃寖鍥淬備互涓嬫柟娉曢兘鍙互閲嶅啓銆?br /> 
– textRectForBounds:銆銆  銆    
//閲嶅啓鏉ラ噸緗枃瀛楀尯鍩?/span>
– drawTextInRect:銆銆      銆     //鏀瑰彉緇樻枃瀛楀睘鎬?閲嶅啓鏃惰皟鐢╯uper鍙互鎸夐粯璁ゅ浘褰㈠睘鎬х粯鍒?鑻ヨ嚜宸卞畬鍏ㄩ噸鍐欑粯鍒跺嚱鏁幫紝灝變笉鐢ㄨ皟鐢╯uper浜?
– placeholderRectForBounds:   //閲嶅啓鏉ラ噸緗崰浣嶇鍖哄煙
– drawPlaceholderInRect:銆銆  //閲嶅啓鏀瑰彉緇樺埗鍗犱綅絎﹀睘鎬?閲嶅啓鏃惰皟鐢╯uper鍙互鎸夐粯璁ゅ浘褰㈠睘鎬х粯鍒?鑻ヨ嚜宸卞畬鍏ㄩ噸鍐欑粯鍒跺嚱鏁幫紝灝變笉鐢ㄨ皟鐢╯uper浜?
– borderRectForBounds:銆銆    //閲嶅啓鏉ラ噸緗竟緙樺尯鍩?/span>
– editingRectForBounds:銆銆    //閲嶅啓鏉ラ噸緗紪杈戝尯鍩?/span>
– clearButtonRectForBounds:銆//閲嶅啓鏉ラ噸緗甤learButton浣嶇疆,鏀瑰彉size鍙兘瀵艱嚧button鐨勫浘鐗囧け鐪?/span>
– leftViewRectForBounds:
– rightViewRectForBounds:
 
濮旀墭鏂規硶
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{銆銆銆
      
//榪斿洖涓涓狟OOL鍊鹼紝鎸囧畾鏄惁寰簭鏂囨湰瀛楁寮濮嬬紪杈戙銆
      return YES;銆
}銆
 
- (void)textFieldDidBeginEditing:(UITextField *)textField
{銆
       
//寮濮嬬紪杈戞椂瑙﹀彂錛屾枃鏈瓧孌靛皢鎴愪負first responder銆
}銆
 
- (BOOL)textFieldShouldEndEditing:(UITextField *)textField
{銆
      
//榪斿洖BOOL鍊鹼紝鎸囧畾鏄惁鍏佽鏂囨湰瀛楁緇撴潫緙栬緫錛屽綋緙栬緫緇撴潫錛屾枃鏈瓧孌典細璁╁嚭first responder銆
銆   
//瑕佹兂鍦ㄧ敤鎴風粨鏉熺紪杈戞椂闃繪鏂囨湰瀛楁娑堝け錛屽彲浠ヨ繑鍥濶O銆
銆   
//榪欏涓浜涙枃鏈瓧孌靛繀欏誨緇堜繚鎸佹椿璺冪姸鎬佺殑紼嬪簭寰堟湁鐢紝姣斿鍗蟲椂娑堟伅銆
銆 
    
return NO;銆
}銆
 
- (BOOL)textField:(UITextField*)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{銆
      
//褰撶敤鎴蜂嬌鐢ㄨ嚜鍔ㄦ洿姝e姛鑳斤紝鎶婅緭鍏ョ殑鏂囧瓧淇敼涓烘帹鑽愮殑鏂囧瓧鏃訛紝灝變細璋冪敤榪欎釜鏂規硶銆傘
      
//榪欏浜庢兂瑕佸姞鍏ユ挙閿閫夐」鐨勫簲鐢ㄧ▼搴忕壒鍒湁鐢ㄣ
      
//鍙互璺熻釜瀛楁鍐呮墍鍋氱殑鏈鍚庝竴嬈′慨鏀癸紝涔熷彲浠ュ鎵鏈夌紪杈戝仛鏃ュ織璁板綍,鐢ㄤ綔瀹¤鐢ㄩ斻傘銆 
      
//瑕侀槻姝㈡枃瀛楄鏀瑰彉鍙互榪斿洖NO銆
      
//榪欎釜鏂規硶鐨勫弬鏁頒腑鏈変竴涓狽SRange瀵硅薄錛屾寚鏄庝簡琚敼鍙樻枃瀛楃殑浣嶇疆錛屽緩璁慨鏀圭殑鏂囨湰涔熷湪鍏朵腑銆
 
銆   
return YES;銆
}銆
 
- (BOOL)textFieldShouldClear:(UITextField *)textField
{銆
      
//榪斿洖涓涓狟OOL鍊兼寚鏄庢槸鍚﹀厑璁告牴鎹敤鎴瘋姹傛竻闄ゅ唴瀹廣
      
//鍙互璁劇疆鍦ㄧ壒瀹氭潯浠朵笅鎵嶅厑璁告竻闄ゅ唴瀹廣
 
銆   
return YES;銆
}銆
 
-(BOOL)textFieldShouldReturn:(UITextField *)textField
{銆
      
//榪斿洖涓涓狟OOL鍊鹼紝鎸囨槑鏄惁鍏佽鍦ㄦ寜涓嬪洖杞﹂敭鏃剁粨鏉熺紪杈戙
       
//濡傛灉鍏佽瑕佽皟鐢╮esignFirstResponder 鏂規硶錛岃繖鍥炲鑷寸粨鏉熺紪杈戯紝鑰岄敭鐩樹細琚敹璧穂textField resignFirstResponder];
      
//鏌ヤ竴涓媟esign榪欎釜鍗曡瘝鐨勬剰鎬濆氨鏄庣櫧榪欎釜鏂規硶浜嗐
銆   return YES;銆
}銆
 
閫氱煡
UITextField媧劇敓鑷猆IControl錛屾墍浠IControl綾諱腑鐨勯氱煡緋葷粺鍦ㄦ枃鏈瓧孌典腑涔熷彲浠ヤ嬌鐢ㄣ傞櫎浜哢IControl綾葷殑鏍囧噯浜嬩歡錛屼綘榪樺彲浠ヤ嬌鐢ㄤ笅鍒桿ITextField綾葷壒鏈夌殑浜嬩歡
 
UITextFieldTextDidBeginEditingNotification
UITextFieldTextDidChangeNotification
UITextFieldTextDidEndEditingNotification
褰撴枃鏈瓧孌甸鍑虹紪杈戞ā寮忔椂瑙﹀彂銆傞氱煡鐨刼bject灞炴у瓨鍌ㄤ簡鏈緇堟枃鏈?br /> 
鍥犱負鏂囨湰瀛楁瑕佷嬌鐢ㄩ敭鐩樿緭鍏ユ枃瀛楋紝鎵浠ヤ笅闈㈣繖浜涗簨浠跺彂鐢熸椂錛屼篃浼氬彂閫佸姩浣滈氱煡
UIKeyboardWillShowNotification 銆
//閿洏鏄劇ず涔嬪墠鍙戦?/span>
UIKeyboardDidShowNotification  銆//閿洏鏄劇ず涔嬪悗鍙戦?/span>
UIKeyboardWillHideNotification 銆  //閿洏闅愯棌涔嬪墠鍙戦?/span>
UIKeyboardDidHideNotification  銆 //閿洏闅愯棌涔嬪悗鍙戦?/span>
1銆乀ext 錛氳緗枃鏈鐨勯粯璁ゆ枃鏈?/div>
2銆丳laceholder 錛?nbsp;鍙互鍦ㄦ枃鏈涓樉紺虹伆鑹茬殑瀛楋紝鐢ㄤ簬鎻愮ず鐢ㄦ埛搴旇鍦ㄨ繖涓枃鏈杈撳叆浠涔堝唴瀹廣傚綋榪欎釜鏂囨湰妗嗕腑杈撳叆浜嗘暟鎹椂錛岀敤浜庢彁紺虹殑鐏拌壊鐨勫瓧灝嗕細鑷姩娑堝け銆?/div>
3銆丅ackground 錛?/div>
4銆丏isabled 錛?nbsp;鑻ラ変腑姝ら」錛岀敤鎴峰皢涓嶈兘鏇存敼鏂囨湰妗嗗唴瀹廣?/div>
5銆佹帴涓嬫潵鏄笁涓寜閽紝鐢ㄦ潵璁劇疆瀵歸綈鏂瑰紡銆?/div>
6銆丅order Style 錛?nbsp;閫夋嫨杈圭晫椋庢牸銆?/div>
7銆丆lear Button 錛?nbsp;榪欐槸涓涓笅鎷夎彍鍗曪紝浣犲彲浠ラ夋嫨娓呴櫎鎸夐挳浠涔堟椂鍊欏嚭鐜幫紝鎵璋撴竻闄ゆ寜閽氨鏄嚭涓涓幇鍦ㄦ枃鏈鍙寵竟鐨勫皬 X 錛屼綘鍙互鏈変互涓嬮夋嫨錛?/div>
    7.1 Never appears 錛?nbsp;浠庝笉鍑虹幇
    7.2 Appears while editing 錛?nbsp;緙栬緫鏃跺嚭鐜?/div>
    7.3 Appears unless editing 錛?nbsp;
    7.4 Is always visible 錛?nbsp;鎬繪槸鍙
8銆丆lear when editing begins 錛?nbsp;鑻ラ変腑姝ら」錛屽垯褰撳紑濮嬬紪杈戣繖涓枃鏈鏃訛紝鏂囨湰妗嗕腑涔嬪墠鐨勫唴瀹逛細琚竻闄ゆ帀銆傛瘮濡傦紝浣犵幇鍦ㄨ繖涓枃鏈 A 涓緭鍏ヤ簡 "What" 錛屼箣鍚庡幓緙栬緫鏂囨湰妗?nbsp;B錛岃嫢鍐嶅洖鏉ョ紪杈戞枃鏈 A 錛屽垯鍏朵腑鐨?nbsp;"What" 浼氳绔嬪嵆娓呴櫎銆?/div>
9銆乀ext Color 錛?nbsp;璁劇疆鏂囨湰妗嗕腑鏂囨湰鐨勯鑹層?/div>
10銆丗ont 錛?nbsp;璁劇疆鏂囨湰鐨勫瓧浣撲笌瀛楀彿銆?/div>
11銆丮in Font Size 錛?nbsp;璁劇疆鏂囨湰妗嗗彲浠ユ樉紺虹殑鏈灝忓瓧浣擄紙涓嶈繃鎴戞劅瑙夋病浠涔堢敤錛?/div>
12銆丄djust To Fit 錛?nbsp;鎸囧畾褰撴枃鏈灝哄鍑忓皬鏃訛紝鏂囨湰妗嗕腑鐨勬枃鏈槸鍚︿篃瑕佺緝灝忋傞夋嫨瀹冿紝鍙互浣垮緱鍏ㄩ儴鏂囨湰閮藉彲瑙侊紝鍗充嬌鏂囨湰寰堥暱銆備絾鏄繖涓夐」瑕佽窡 Min Font Size 閰嶅悎浣跨敤錛屾枃鏈啀緙╁皬錛屼篃涓嶄細灝忎簬璁懼畾鐨?nbsp;Min Font Size 銆?/div>
鎺ヤ笅鏉ョ殑閮ㄥ垎鐢ㄤ簬璁劇疆閿洏濡備綍鏄劇ず銆?/div>
13銆丆aptitalization 錛?nbsp;璁劇疆澶у啓銆備笅鎷夎彍鍗曚腑鏈夊洓涓夐」錛?/div>
    13.1 None 錛?nbsp;涓嶈緗ぇ鍐?/div>
    13.2 Words 錛?nbsp;姣忎釜鍗曡瘝棣栧瓧姣嶅ぇ鍐欙紝榪欓噷鐨勫崟璇嶆寚鐨勬槸浠ョ┖鏍煎垎寮鐨勫瓧絎︿覆
    13.3 Sentances 錛?nbsp;姣忎釜鍙ュ瓙鐨勭涓涓瓧姣嶅ぇ鍐欙紝榪欓噷鐨勫彞瀛愭槸浠ュ彞鍙峰姞絀烘牸鍒嗗紑鐨勫瓧絎︿覆
    13.4 All Characters 錛?nbsp;鎵浠ュ瓧姣嶅ぇ鍐?/div>
14銆丆orrection 錛?nbsp;媯鏌ユ嫾鍐欙紝榛樿鏄?nbsp;YES 銆?/div>
15銆並eyboard 錛?nbsp;閫夋嫨閿洏綾誨瀷錛屾瘮濡傚叏鏁板瓧銆佸瓧姣嶅拰鏁板瓧絳夈?/div>
16銆丄ppearance錛?/div>
17銆丷eturn Key 錛?nbsp;閫夋嫨榪斿洖閿紝鍙互閫夋嫨 Search 銆?nbsp;Return 銆?nbsp;Done 絳夈?/div>
18銆丄uto-enable Return Key 錛?nbsp;濡傞夋嫨姝ら」錛屽垯鍙湁鑷沖皯鍦ㄦ枃鏈杈撳叆涓涓瓧絎﹀悗閿洏鐨勮繑鍥為敭鎵嶆湁鏁堛?/div>
19銆丼ecure 錛?nbsp;褰撲綘鐨勬枃鏈鐢ㄤ綔瀵嗙爜杈撳叆妗嗘椂錛屽彲浠ラ夋嫨榪欎釜閫夐」錛屾鏃訛紝瀛楃鏄劇ず涓烘槦鍙楓?/div>
 
1.Alignment Horizontal 姘村鉤瀵歸綈鏂瑰紡
2.Alignment Vertical 鍨傜洿瀵歸綈鏂瑰紡
3.鐢ㄤ簬榪斿洖涓涓狟OOL鍊箋杈撳叆妗嗘槸鍚?nbsp;Selected(閫変腑) Enabled(鍙敤) Highlighted(楂樹寒)
 
闄愬埗鍙兘杈撳叆鐗瑰畾鐨勫瓧絎?/div>
(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
    NSCharacterSet 
*cs;
    cs 
= [[NSCharacterSet characterSetWithCharactersInString:NUMBERS]invertedSet];
 
    NSString 
*filtered = [[string componentsSeparatedByCharactersInSet:cs]componentsJoinedByString:@""]; //鎸塩s鍒嗙鍑烘暟緇?鏁扮粍鎸堾""鍒嗙鍑哄瓧絎︿覆
 
    BOOL canChange 
= [string isEqualToString:filtered];
 
    
return canChange;
}
 
涓婇潰閭d釜NUMBERS鏄竴涓畯錛屽彲浠ュ湪鏂囦歡欏墮儴瀹氫箟錛?/div>
#define NUMBERS @”0123456789n” 錛堣繖涓唬琛ㄥ彲浠ヨ緭鍏ユ暟瀛楀拰鎹㈣錛岃娉ㄦ剰榪欎釜n錛屽鏋滀笉鍐欒繖涓紝Done鎸夐敭灝嗕笉浼氳Е鍙戯紝濡傛灉鐢ㄥ湪SearchBar涓紝灝嗕細涓嶈Е鍙慡earch浜嬩歡錛屽洜涓轟綘鑷繁闄愬埗涓嶈杈撳叆n錛屽ソ鎯紝鎴戝湪欏圭洰涓墠鍙戠幇鐨勩傦級
鎵浠ワ紝濡傛灉浣犺闄愬埗杈撳叆鑻辨枃鍜屾暟瀛楃殑璇濓紝灝卞彲浠ユ妸榪欎釜瀹氫箟涓猴細
#define kAlphaNum   @”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789″銆?/div>
褰撶劧錛屼綘榪樺彲浠ュ湪浠ヤ笂鏂規硶return涔嬪墠錛屽仛涓鎻愮ず鐨勶紝姣斿鎻愮ず鐢ㄦ埛鍙兘杈撳叆鏁板瓧涔嬬被鐨勩傚鏋滀綘瑙夊緱鏈夐渶瑕佺殑璇濄?/div>
 
闄愬埗鍙兘杈撳叆涓瀹氶暱搴︾殑瀛楃
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{銆
      
//string灝辨槸姝ゆ椂杈撳叆鐨勯偅涓瓧絎?nbsp;textField灝辨槸姝ゆ椂姝e湪杈撳叆鐨勯偅涓緭鍏ユ 榪斿洖YES灝辨槸鍙互鏀瑰彉杈撳叆妗嗙殑鍊?nbsp;NO鐩稿弽
      
if ([string isEqualToString:@"n"])銆//鎸変細杞﹀彲浠ユ敼鍙?/span>
      { 
           
return YES; 
      } 
      NSString 
* toBeString = [textField.text stringByReplacingCharactersInRange:range withString:string]; //寰楀埌杈撳叆妗嗙殑鍐呭
 
      
if (self.myTextField == textField)銆//鍒ゆ柇鏄惁鏃舵垜浠兂瑕侀檺瀹氱殑閭d釜杈撳叆妗?/span>
      { 
          
if ([toBeString length] > 20
          { 
               
//濡傛灉杈撳叆妗嗗唴瀹瑰ぇ浜?0鍒欏脊鍑鴻鍛?/span>
               textField.text = [toBeString substringToIndex:20]; 
               UIAlertView 
*alert = [[[UIAlertView alloc] initWithTitle:nil message:@"瓚呰繃鏈澶у瓧鏁頒笉鑳借緭鍏ヤ簡" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil] autorelease]; 
               [alert show]; 
               
return NO; 
          } 
      }
 
    
return YES; 
}

鏈枃杞嚜錛?/span>http://www.3lian.com/edu/2012/11-08/43227.html

]]>iOS鏃ユ湡絎旇http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207648.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Tue, 15 Jul 2014 02:43:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207648.htmlhttp://www.shnenglu.com/wanghaiguang/comments/207648.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207648.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/207648.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/207648.html1銆佹牴鎹勾銆佹湀銆佹棩鑾峰彇鏄熸湡鍑?/strong>
- (int)getWeekdayFromDate:(int)nYead andMonth:(int)nMonth andDay:(int)nDay
{
    NSDateComponents *_comps = [[NSDateComponents alloc] init];
    [_comps setDay:nDay];
    [_comps setMonth:nMonth];
    [_comps setYear:nYead];
    NSCalendar *gregorian = [[NSCalendar alloc]
                             initWithCalendarIdentifier:NSGregorianCalendar];
    NSDate *_date = [gregorian dateFromComponents:_comps];
    NSDateComponents *weekdayComponents =
    [gregorian components:NSWeekdayCalendarUnit fromDate:_date];
    int _weekday = [weekdayComponents weekday];
    
    return _weekday;
}
鎴?/span>
- (NSUInteger)getWeekdayFromDate:(NSDate*)date
{
    NSCalendar* calendar = [[[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar] autorelease]; 
    NSDateComponents* components = [[[NSDateComponents alloc] init] autorelease]; 
    NSInteger unitFlags = NSYearCalendarUnit | 
                          NSMonthCalendarUnit | 
                          NSDayCalendarUnit | 
                          NSWeekdayCalendarUnit | 
                          NSHourCalendarUnit | 
                          NSMinuteCalendarUnit | 
                          NSSecondCalendarUnit; 

    components = [calendar components:unitFlags fromDate:date];
    NSUInteger weekday = [components weekday]; 
    return weekday;
}

2銆佹牴鎹湀鍜屾棩鑾峰彇鏄熷駭
-(NSString *)getAstroWithMonth:(int)m day:(int)d
{ 
    NSString *astroString = @"欖旂警姘寸摱鍙岄奔鐧界緤閲戠墰鍙屽瓙宸ㄨ煿鐙瓙澶勫コ澶╃Г澶╄潕灝勬墜欖旂警";
    NSString *astroFormat = @"102123444543";
    NSString *result; 
    if (m < 1 || m > 12 || d < 1 || d > 31)
    {
        return @"閿欒鏃ユ湡鏍煎紡!";
    }  
    if(m == 2 && d > 29)
    {
        return @"閿欒鏃ユ湡鏍煎紡!!";
    }
    else if(m == 4 || m == 6 || m == 9 || m == 11)
    {
        if (d > 30)
        {
            return @"閿欒鏃ユ湡鏍煎紡!!!";
        }
    }
    
    result = [NSString stringWithFormat:@"%@",[astroString substringWithRange:NSMakeRange(m*2 - (d < [[astroFormat substringWithRange:NSMakeRange((m - 1), 1)] intValue] - (-19))*2, 2)]];
    
    return result;
}

3銆佽綆椾袱涓棩鏈熶箣闂寸浉宸嚑澶╁嚑灝忔椂鍑犲垎閽?/strong>
NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
   [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
   NSDate *  senddate=[NSDate date];
   //緇撴潫鏃墮棿
   NSDate *endDate = [dateFormatter dateFromString:@"2014-6-24 00:00:00"];
   //褰撳墠鏃墮棿
   NSDate *senderDate = [dateFormatter dateFromString:[dateFormatter stringFromDate:senddate]];
   //寰楀埌鐩稿樊縐掓暟
   NSTimeInterval time=[endDate timeIntervalSinceDate:senderDate];
    
   int days = ((int)time)/(3600*24);
   int hours = ((int)time)%(3600*24)/3600;
   int minute = ((int)time)%(3600*24)600/60;
   
   if (days <= 0&&hours; <= 0&&minute; <= 0)
       dateContent=@"0澶?灝忔椂0鍒嗛挓";
   else
       dateContent=[[NSString alloc] initWithFormat:@"%i澶?i灝忔椂%i鍒嗛挓",days,hours,minute];

4銆佽幏鍙栧綋鍓嶆椂闂?/strong>
NSDate *now = [NSDate date];
NSLog(@”now date is: %@”, now);

NSCalendar *calendar = [NSCalendar currentCalendar];
NSUInteger unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit;
NSDateComponents *dateComponent = [calendar components:unitFlags fromDate:now];
    
int year = [dateComponent year];
int month = [dateComponent month];
int day = [dateComponent day];
int hour = [dateComponent hour];
int minute = [dateComponent minute];
int second = [dateComponent second];

NSLog(@”year is: %d”, year);
NSLog(@”month is: %d”, month);
NSLog(@”day is: %d”, day);
NSLog(@”hour is: %d”, hour);
NSLog(@”minute is: %d”, minute);
NSLog(@”second is: %d”, second);

娉細鏍規嵁浜掕仈緗戣祫鏂欐暣鐞?/span>


]]>鍏抽棴ios铏氭嫙閿洏鐨勫嚑縐嶆柟娉曪紙杞澆錛?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2014/06/23/207382.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Mon, 23 Jun 2014 05:54:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2014/06/23/207382.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/207382.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2014/06/23/207382.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/207382.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/207382.html</trackback:ping><description><![CDATA[<div class="9l99fft" id="blog_content" class="blog_content" style="line-height: 1.8em;"> <p style="margin: 0px; padding: 0px;">鍦╥OS搴旂敤寮鍙戜腑錛屾湁涓夌被瑙嗗浘瀵硅薄浼氭墦寮铏氭嫙閿洏錛岃繘琛岃緭鍏ユ搷浣滐紝浣嗗浣曞叧闂櫄鎷熼敭鐩橈紝鍗存病鏈夋彁渚涜嚜鍔ㄥ寲鐨勬柟娉曘傝繖涓渶瑕佹垜浠嚜宸卞幓瀹炵幇銆傝繖涓夌被瑙嗗浘瀵硅薄鍒嗗埆鏄疷ITextField,UITextView鍜孶ISearchBar銆?br /> 榪欓噷浠嬬粛涓涓婾ITextField涓叧闂櫄鎷熼敭鐩樼殑鍑犵鏂規硶銆?/p> <p style="margin: 0px; padding: 0px;"> </p> <p style="margin: 0px; padding: 0px;">(鍘熸枃閾炬帴: <a style="color: #006699;">http://mikixiyou.iteye.com/blog/1753330</a> )</p> <p style="margin: 0px; padding: 0px;"><br /><strong> 絎竴縐嶆柟娉曪紝浣跨敤瀹冪殑濮旀墭UITextFieldDelegate涓殑鏂規硶textFieldShouldReturn:鏉ュ叧闂櫄鎷熼敭鐩樸?/strong><br /> 鍦║ITextField瑙嗗浘瀵硅薄濡俠irdNameInput鎵鍦ㄧ殑綾諱腑瀹炵幇榪欎釜鏂規硶銆?br /></p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->- (BOOL)textFieldShouldReturn:(UITextField *)textField {  <br />    <span style="color: #0000FF; ">if</span> ((textField == self.birdNameInput) || (textField == self.locationInput)) {  <br />        [textField resignFirstResponder];  <br />    }  <br />    <span style="color: #0000FF; ">return</span> YES;  <br />} </div><p> <span style="line-height: 1.8em; font-size: 14px;">榪欐牱錛屽湪杈撳叆妗哹irdNameInput涓墦寮铏氭嫙閿洏鍚庯紝杞誨嚮閿洏鐨剅eturn閿氨浼氳嚜鍔ㄥ叧闂帀铏氭嫙閿洏銆?/span></p><p style="margin: 0px; padding: 0px;"><br /><strong> 絎簩縐嶆柟娉曪紝灝哹irdNameInput鐨勫睘鎬т腑Return Key淇敼涓篸one錛屽啀瀹氫箟涓涓柟娉曞拰Done閿殑Did End On Exit榪炴帴銆傞氳繃杞誨嚮done閿Е鍙戣繖涓簨浠舵潵鍏抽棴铏氭嫙閿洏銆?/strong><br /> 瀹氫箟鐨勬柟娉曞涓嬶細<br /></p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->- (IBAction) textFieldDoneEditing:(id)sender  <br />{  <br />        [sender resignFirstResponder];  <br />} <span style="line-height: 1.8em; font-size: 14px;"> </span></div> <p style="margin: 0px; padding: 0px;">榪欎袱涓柟娉曢兘鏄交鍑昏櫄鎷熼敭鐩樹笂涓涓敭鏉ュ叧闂畠銆傝繖灞炰簬綺劇‘鎿嶄綔錛岃屾墜鎸囦笉鍍忛紶鏍囷紝鍋氳繖縐嶆搷浣滀笉瀹規槗銆傚洜姝ゅ氨UI灞傞潰鑰岃█錛岃繖涓や釜鏂規硶閮戒笉鏄渶濂界殑鏂規硶銆?br /> 鍦╥phone鎴杋pad灞忓箷涓婏紝铏氭嫙閿洏鍗犵敤鐨勯潰縐ぇ灝忔槸鏈夐檺鐨勩傞氳繃杞誨嚮铏氭嫙閿洏涔嬪鐨勫尯鍩熻屽叧闂櫄鎷熼敭鐩樸?/p> <p style="margin: 0px; padding: 0px;"> </p> <p style="margin: 0px; padding: 0px;"><strong>絎笁縐嶆柟娉曪紝閫氳繃杞誨嚮閿洏涔嬪鐨勭┖鐧藉尯鍩熷叧闂櫄鎷熼敭鐩樸?/strong><br /> 鍦╞irdNameInput鎵灞炵殑瑙嗗浘鎺у埗鍣ㄧ被鐨剉iewDidLoad鏂規硶涓畾涔変竴涓猆ITapGestureRecognizer鐨勫璞★紝鐒跺悗灝嗗畠璧嬪間負瀹冪殑瑙嗗浘銆?br /></p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]   initWithTarget:self action:@selector(dismissKeyboard)];  <br />[self.view addGestureRecognizer:tap];  <br />[tap release]; </div> <p style="margin: 0px; padding: 0px;"><br />鍐嶅畾涔変竴涓嬮夋嫨鍣ㄨ皟鐢ㄧ殑鏂規硶dismissKeyboard銆?br /></p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->-(<span style="color: #0000FF; ">void</span>)dismissKeyboard {  <br />       [birdNameInput resignFirstResponder];  <br />} </div><p style="margin: 0px; padding: 0px;"> <br />濡傛灉灞忓箷涓婃湁澶氫釜textField鐨勮瘽錛屼竴涓竴涓湴鍒楀嚭鏉ュ氨鏈変簺楹葷儲銆傞偅涔堝皢鏂規硶淇敼涓涓嬶紝濡備笅錛?br /></p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->-(<span style="color: #0000FF; ">void</span>)dismissKeyboard {  <br />    NSArray *subviews = [self.view subviews];  <br />    <span style="color: #0000FF; ">for</span> (id objInput <span style="color: #0000FF; ">in</span> subviews) {  <br />        <span style="color: #0000FF; ">if</span> ([objInput isKindOfClass:[UITextField <span style="color: #0000FF; ">class</span>]]) {  <br />            UITextField *theTextField = objInput;  <br />            <span style="color: #0000FF; ">if</span> ([objInput isFirstResponder]) {  <br />                [theTextField resignFirstResponder];  <br />            }  <br />        }  <br />    }  <br />}</div> <p style="margin: 0px; padding: 0px;">濡傛灉榪欎釜灞忓箷涓婄殑瑙嗗浘瀵硅薄寰堝鏉傜殑璇濓紝鍙﹀綋鍒銆?br /> 榪欎釜鏂規硶鏄紪鐮佹柊寤轟竴涓墜鍔垮璞°備篃鍙互鐩存帴浣跨敤interface builder鍥懼艦鍖栧紑鍙戝伐鍏鳳紝鍦╯toryboard涓媺鍏ヤ竴涓墜鍔垮璞″埌瑙嗗浘鎺у埗鍣ㄧ被涓紝鍐嶅皢姝ゆ墜鍔垮璞″緩绔嬩竴涓狪BACTION錛屽悕縐板彲浠ユ槸dismissKeyboard銆?br /> <br /><strong> 絎洓縐嶆柟娉曪紝閫氳繃杞誨嚮閿洏涔嬪鐨勭┖鐧藉尯鍩熷叧闂櫄鎷熼敭鐩樸?/strong><br /> 灝嗗睆騫曚笂鐨剉iew涔熷氨鏄痶extField鐨勭埗瑙嗗浘鎷栦竴涓猼ouch down浜嬩歡鍑烘潵錛屽拰涓涓兘鍏抽棴铏氭嫙閿洏鐨勬柟娉曡繛鎺ャ傚鏋滆鍥炬病鏈塼ouch down浜嬩歡錛屽彲灝唙iew鐨勭埗綾諱粠UIView淇敼涓篣IButton銆?br /> 棣栧厛瀹氫箟騫跺疄鐜頒竴涓柟娉昩ackgroundTap錛氥?/p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"> <span style="font-size: 13px; line-height: 1.8em;">-</span><span style="font-size: 13px; line-height: 1.8em;"> (IBAction) backgroundTap:(id)sender  </span><br />{  <br />        NSArray *subviews = [self.view subviews];  <br />    <span style="color: #0000FF; ">for</span> (id objInput <span style="color: #0000FF; ">in</span> subviews) {  <br />        <span style="color: #0000FF; ">if</span> ([objInput isKindOfClass:[UITextField <span style="color: #0000FF; ">class</span>]]) {  <br />            UITextField *theTextField = objInput;  <br />            <span style="color: #0000FF; ">if</span> ([objInput isFirstResponder]) {  <br />                [theTextField resignFirstResponder];  <br />            }  <br />        }  <br />    }  <br />}</div> <p style="margin: 0px; padding: 0px;">鐒跺悗閫夋嫨鑳屾櫙瑙嗗浘鐨凾ouch Down浜嬩歡錛岃繛鎺?backgroundTap錛氬嵆鍙傝繖鏍峰彧瑕佽交鍑諱竴涓嬭櫄鎷熼敭鐩樹箣澶栫殑鍖哄煙錛屽氨鑳藉叧闂櫄鎷熼敭鐩樸傝繖浜涙柟娉曢兘鏄嬌鐢╮esignFirstResponder鏂規硶鏉ュ叧闂櫄鎷熼敭鐩橈紝榪樻湁鍏朵粬鐨勬柟娉曘?/p> <p style="margin: 0px; padding: 0px;"> </p> <p style="margin: 0px; padding: 0px;"><strong>絎簲縐嶆柟娉曪紝浣跨敤endEditing錛氭柟娉?/strong><br /> 鍦ㄦ墍鍦ㄧ殑瑙嗗浘鎺у埗鍣ㄧ被涓紝瑕嗙洊榪欎釜鏂規硶銆?br /></p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->- (<span style="color: #0000FF; ">void</span>)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)<span style="color: #0000FF; ">event</span> {  <br />      [[self view] endEditing:YES];  <br />}</div><p> </p> <p style="margin: 0px; padding: 0px;">This method looks at the current view and its subview hierarchy for the text field that is currently the first responder. If it finds one, it asks that text field to resign as first responder. If the force parameter is set to YES, the text field is never even asked; it is forced to resign.<br /> 浣嗘槸錛屽鏋滆繖涓睆騫曞緢澶嶆潅錛岃櫄鎷熼敭鐩樹箣澶栫殑鍖哄煙涓湁寰堝鎸夐挳銆傝交鍑昏繖浜涘尯鍩熸椂鍙兘浼氳交鍑誨埌榪欎簺鎸夐挳錛岃繖鏍瘋櫄鎷熼敭鐩樺氨涓嶈兘鍏抽棴銆?br /> 瑕佹槸鎵懼埌涓涓病鏈夋寜閽殑絀虹櫧鍖哄煙閮戒笉瀹規槗涓旇繕鏈夐殣钘忕殑瑙嗗浘瀵硅薄鏃訛紝閫氳繃杞誨嚮铏氭嫙閿洏涔嬪鐨勫尯鍩熷叧闂櫄鎷熼敭鐩樼殑鏂規硶瀹炵幇璧鋒潵灝遍毦浜嗐?/p> <p style="margin: 0px; padding: 0px;"> </p> <p style="margin: 0px; padding: 0px;"><strong>絎叚縐嶆柟娉曪紝瑕嗙洊hitTest:withEvent:鏂規硶鍏抽棴铏氭嫙閿洏</strong></p> <p style="margin: 0px; padding: 0px;"> </p> <p style="margin: 0px; padding: 0px;">鍦╯tackoverflow.com涓婏紝鏈変漢榪欐牱鎬葷粨銆傝浣跨敤hitTest:withEvent:鏂規硶鏄渶濂界殑錛屼篃鏄渶瀹規槗鐨勮В鍐蟲柟娉曘?/p> <p style="margin: 0px; padding: 0px;"> </p> <p style="margin: 0px; padding: 0px;">I think the easiest (and best) way to do this is to subclass your global view and use hitTest:withEvent method to listen to any touch. <br /> Touches on keyboard aren't registered, so hitTest:withEvent is only called when you touch/scroll/swipe/pinch... somewhere else, then call [self endEditing:YES].<br /> This is better than using touchesBegan because touchesBegan are not called if you click on a button on top of the view. <br /> It is better than UITapGestureRecognizer which can't recognize a scrolling gesture for example. It is also better than using a dim screen because in a complexe and dynamic user interface, you can't put dim screen every where. Moreover, it doesn't block other actions, you don't need to tap twice to select a button outside (like in the case of a UIPopover).<br /> Also, it's better than calling [textField resignFirstResponder], because you may have many text fields on screen, so this works for all of them.</p> <p style="margin: 0px; padding: 0px;"> </p> <p style="margin: 0px; padding: 0px;">鍥犳錛屾垜鍐嶅緩绔嬩竴涓戶鎵縐IView鐨勮鍥劇被銆傚湪榪欎釜瑙嗗浘綾諱腑錛岃鐩杊itTest:withEvent:鏂規硶錛屽鍔燵self endEditing:YES]鏂規硶銆?/p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"> <span style="font-size: 13px; line-height: 1.8em;">-</span><span style="font-size: 13px; line-height: 1.8em;"> (UIView </span><span style="font-size: 13px; line-height: 1.8em;">*</span><span style="font-size: 13px; line-height: 1.8em;">)hitTest:(CGPoint)point withEvent:(UIEvent </span><span style="font-size: 13px; line-height: 1.8em;">*</span><span style="font-size: 13px; line-height: 1.8em;">)</span><span style="font-size: 13px; line-height: 1.8em; color: #0000ff;">event</span><span style="font-size: 13px; line-height: 1.8em;"> {  </span><br />UIView *result = [super hitTest:point withEvent:<span style="color: #0000FF; ">event</span>];  <br />[self endEditing:YES]  <br /><span style="color: #0000FF; ">return</span> result;  <br />} </div><p style="margin: 0px; padding: 0px;"> 鎴戝皢瑙嗗浘鎺у埗鍣ㄧ殑涓昏鍥炬墍灞炵被淇敼涓鴻繖涓柊寤鴻鍥劇被銆傝繖鏍峰湪灞忓箷涓婅交鍑諱換浣曚綅緗兘浼氬叧闂櫄鎷熼敭鐩樸?br /> 榪欎釜鏂規硶鏄渶綆鍗曪紝涔熸槸鏈濂界殑鍏抽棴铏氭嫙閿洏鐨勬柟娉曘?br /> 浣跨敤濂絟itTest:withEvent:榪欎釜鏂規硶錛岃繕鍙互瀹炵幇寰堝寰堝鏉傜殑鍔熻兘銆?br /> The implementation of hitTest:withEvent: in UIResponder does the following:</p> <ul style="margin: 0px 0px 1.5em; padding: 0px;"> <li style="margin: 0px 0px 0.25em 30px; padding: 0px;">    It calls pointInside:withEvent: of self</li> <li style="margin: 0px 0px 0.25em 30px; padding: 0px;">    If the return is NO, hitTest:withEvent: returns nil. the end of the story.</li> <li style="margin: 0px 0px 0.25em 30px; padding: 0px;">    If the return is YES, it sends hitTest:withEvent: messages to its subviews. it starts from the top-level subview, and continues to other views until a subview returns a non-nil object, or all subviews receive the message.</li> <li style="margin: 0px 0px 0.25em 30px; padding: 0px;">    If a subview returns a non-nil object in the first time, the first hitTest:withEvent: returns that object. the end of the story.</li> <li style="margin: 0px 0px 0.25em 30px; padding: 0px;">    If no subview returns a non-nil object, the first hitTest:withEvent: returns self</li> </ul> <p style="margin: 0px; padding: 0px;">This process repeats recursively, so normally the leaf view of the view hierarchy is returned eventually.<br /> However, you might override hitTest:withEvent to do something differently. In many cases, overriding pointInside:withEvent: is simpler and still provides enough options to tweak event handling in your application.</p></div><img src ="http://www.shnenglu.com/wanghaiguang/aggbug/207382.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2014-06-23 13:54 <a href="http://www.shnenglu.com/wanghaiguang/archive/2014/06/23/207382.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>iOS鐣岄潰浼犻掍箣濮旀墭http://www.shnenglu.com/wanghaiguang/archive/2014/06/18/207325.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Wed, 18 Jun 2014 06:50:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2014/06/18/207325.htmlhttp://www.shnenglu.com/wanghaiguang/comments/207325.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2014/06/18/207325.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/207325.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/207325.html闃呰鍏ㄦ枃

]]>
iOS涓璘IImageview絎旇http://www.shnenglu.com/wanghaiguang/archive/2014/05/28/207130.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Wed, 28 May 2014 06:33:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2014/05/28/207130.htmlhttp://www.shnenglu.com/wanghaiguang/comments/207130.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2014/05/28/207130.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/207130.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/207130.html
1     UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(128, 80,64,64)];
2     imgView.image = [UIImage imageNamed:@"portrait.png"];
3     imgView.userInteractionEnabled=YES;
4     UITapGestureRecognizer *singleTap =[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(onClickPortraitImage)];
5     [imgView addGestureRecognizer:singleTap];
6     [self.view addSubview:imgView];

2銆佸搷搴旂偣鍑諱簨浠?/div>
1 -(void)onClickPortraitImage{
2     
3     NSLog(@"鍥劇墖琚偣鍑?");
4 }

寮鍙戝伐鍏稾code5 緋葷粺鐗堟湰錛?font face="Heiti SC Light">OS X 10. 9. 3 ( 13D65 )


]]> 国产精品久久久久天天影视| 精品久久久久中文字| 国产成人精品久久免费动漫| 天天爽天天爽天天片a久久网| 亚洲精品视频久久久| 久久精品国产第一区二区三区| 久久国产成人精品国产成人亚洲| 久久久久亚洲AV无码专区首JN| 亚洲午夜久久久精品影院| 精品久久久久久久国产潘金莲| 日本免费久久久久久久网站| 久久无码专区国产精品发布| 一级做a爱片久久毛片| 久久久精品2019免费观看| 久久久久久亚洲精品无码| 国产精品久久久久久久久| 丁香色欲久久久久久综合网| 亚洲综合久久综合激情久久| 人妻精品久久无码区| 色综合久久夜色精品国产| 国产精品欧美久久久久天天影视 | 国内精品伊人久久久久AV影院| 久久久久综合国产欧美一区二区| 久久久国产精品亚洲一区| 亚洲人成网亚洲欧洲无码久久| 久久伊人中文无码| 久久九色综合九色99伊人| 51久久夜色精品国产| 久久国产免费观看精品| 国产精品免费看久久久| 久久精品亚洲日本波多野结衣| 精品国产乱码久久久久久人妻| 久久综合偷偷噜噜噜色| 亚洲&#228;v永久无码精品天堂久久| 色综合久久久久| 国产精品成人99久久久久91gav| 精品久久久久久无码中文字幕一区| 久久精品国产亚洲AV无码麻豆| 国产精品美女久久久久| 国产一区二区精品久久| 久久伊人精品青青草原高清|