??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲综合最新在线,蜜臀av在线播放,91精品国产手机http://www.aygfsteel.com/mycolby/category/48459.htmlhomezh-cnSat, 08 Dec 2012 15:24:29 GMTSat, 08 Dec 2012 15:24:29 GMT60 IOS使用Reachability实时(g)网l连接状?/title><link>http://www.aygfsteel.com/mycolby/articles/392464.html</link><dc:creator>剑秋</dc:creator><author>剑秋</author><pubDate>Wed, 05 Dec 2012 03:05:00 GMT</pubDate><guid>http://www.aygfsteel.com/mycolby/articles/392464.html</guid><wfw:comment>http://www.aygfsteel.com/mycolby/comments/392464.html</wfw:comment><comments>http://www.aygfsteel.com/mycolby/articles/392464.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mycolby/comments/commentRss/392464.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mycolby/services/trackbacks/392464.html</trackback:ping><description><![CDATA[<p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">//在程序的启动处,开启通知</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">- (<span style="line-height: 23px; color: #b72e9f; ">BOOL</span>)application:(<span style="line-height: 23px; color: #703fa6; ">UIApplication</span> *)application didFinishLaunchingWithOptions:(<span style="line-height: 23px; color: #703fa6; ">NSDictionary</span> *)launchOptions</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">{</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">  //.....</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: 'Heiti SC Light'; font-size: 13px; color: #0b831b; "><span style="font-family: Menlo; color: #000000; "></span><span style="font-family: Menlo; ">//</span>开启网l状늚监听</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #3e207e; "><span style="line-height: 23px; color: #000000; ">[[</span><span style="line-height: 23px; color: #703fa6; ">NSNotificationCenter</span> defaultCenter<span style="line-height: 23px; color: #000000; ">] </span>addObserver<span style="line-height: 23px; color: #000000; ">:</span><span style="line-height: 23px; color: #b72e9f; ">self</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #34595d; "><span style="line-height: 23px; color: #000000; ">         </span><span style="line-height: 23px; color: #3e207e; ">selector</span><span style="line-height: 23px; color: #000000; ">:</span><span style="line-height: 23px; color: #b72e9f; ">@selector</span><span style="line-height: 23px; color: #000000; ">(</span>reachabilityChanged<span style="line-height: 23px; color: #000000; ">:)</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #76482e; "><span style="line-height: 23px; color: #000000; ">     </span><span style="line-height: 23px; color: #3e207e; ">name</span><span style="line-height: 23px; color: #000000; ">: </span>kReachabilityChangedNotification</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">   <span style="line-height: 23px; color: #3e207e; ">object</span>: <span style="line-height: 23px; color: #b72e9f; ">nil</span>];</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #34595d; "><span style="line-height: 23px; color: #000000; "></span><span style="line-height: 23px; color: #528186; ">hostReach</span><span style="line-height: 23px; color: #000000; "> = [[</span><span style="line-height: 23px; color: #528186; ">Reachability</span> reachabilityWithHostName<span style="line-height: 23px; color: #000000; ">:</span><span style="line-height: 23px; color: #cc2d24; ">@"www.google.com"</span><span style="line-height: 23px; color: #000000; ">] </span><span style="line-height: 23px; color: #3e207e; ">retain</span><span style="line-height: 23px; color: #000000; ">];//可以以多UŞ式初始化</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #34595d; "><span style="line-height: 23px; color: #000000; ">[</span><span style="line-height: 23px; color: #528186; ">hostReach</span> startNotifier<span style="line-height: 23px; color: #000000; ">];  //开始监??x)启动一个run loop</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #34595d; "><span style="line-height: 23px; color: #000000; ">        [</span><span style="line-height: 23px; color: #b72e9f; ">self</span> updateInterfaceWithReachability<span style="line-height: 23px; color: #000000; ">: </span><span style="line-height: 23px; color: #528186; ">hostReach</span><span style="line-height: 20px; color: #000000; ">];</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">  //.....</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">}</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "><br style="line-height: 23px; " /></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">// q接改变</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">- (<span style="line-height: 23px; color: #b72e9f; ">void</span>) reachabilityChanged: (<span style="line-height: 23px; color: #703fa6; ">NSNotification</span>* )note</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">{</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "><span style="line-height: 23px; color: #528186; ">Reachability</span>* curReach = [note <span style="line-height: 23px; color: #3e207e; ">object</span>];</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "><span style="line-height: 23px; color: #76482e; ">NSParameterAssert</span>([curReach <span style="line-height: 23px; color: #3e207e; ">isKindOfClass</span>: [<span style="line-height: 23px; color: #528186; ">Reachability</span> <span style="line-height: 23px; color: #3e207e; ">class</span>]]);</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #34595d; "><span style="line-height: 23px; color: #000000; ">[</span><span style="line-height: 23px; color: #b72e9f; ">self</span> updateInterfaceWithReachability<span style="line-height: 23px; color: #000000; ">: curReach];</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">}</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "><br style="line-height: 23px; " /></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">//处理q接改变后的情况</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">- (<span style="line-height: 23px; color: #b72e9f; ">void</span>) updateInterfaceWithReachability: (<span style="line-height: 23px; color: #528186; ">Reachability</span>*) curReach</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">{</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">    //对连接改变做出响应的处理动作?/p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #34595d; "><span style="line-height: 23px; color: #528186; ">        NetworkStatus</span><span style="line-height: 23px; color: #000000; "> status = [curReach </span>currentReachabilityStatus<span style="line-height: 23px; color: #000000; ">];</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; min-height: 15px; ">    </p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; "><span style="line-height: 23px; color: #b72e9f; ">if</span> (status == <span style="line-height: 23px; color: #34595d; ">NotReachable</span>) {  //没有q接到网l就弹出提实?/p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; font-family: Menlo; font-size: 13px; color: #703fa6; "><span style="line-height: 23px; color: #000000; "></span>UIAlertView<span style="line-height: 23px; color: #000000; "> *alert = [[</span>UIAlertView <span style="line-height: 23px; color: #3e207e; ">alloc</span><span style="line-height: 23px; color: #000000; ">] </span><span style="line-height: 23px; color: #3e207e; ">initWithTitle</span><span style="line-height: 23px; color: #000000; ">:</span><span style="line-height: 23px; color: #cc2d24; ">@"My App Name"</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">                              <span style="line-height: 23px; color: #3e207e; ">message</span>:<span style="line-height: 23px; color: #cc2d24; ">@"NotReachable"</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">                              <span style="line-height: 23px; color: #3e207e; ">delegate</span>:<span style="line-height: 23px; color: #b72e9f; ">nil</span></p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">                              <span style="line-height: 23px; color: #3e207e; ">cancelButtonTitle</span>:<span style="line-height: 23px; color: #cc2d24; ">@"YES"</span> <span style="line-height: 23px; color: #3e207e; ">otherButtonTitles</span>:<span style="line-height: 23px; color: #b72e9f; ">nil</span>];</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">                              [alert <span style="line-height: 23px; color: #3e207e; ">show</span>];</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">                              [alert <span style="line-height: 23px; color: #3e207e; ">release</span>];</p><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">}</p><div style="text-align: left; background-color: #ffffff; line-height: 25px; color: #336699; font-family: Arial, Helvetica, simsun, u5b8bu4f53; "></div><p style="margin: 0px; padding: 0px; line-height: 26px; text-align: left; background-color: #ffffff; color: #336699; font-family: Menlo; font-size: 13px; ">}</p><img src ="http://www.aygfsteel.com/mycolby/aggbug/392464.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mycolby/" target="_blank">剑秋</a> 2012-12-05 11:05 <a href="http://www.aygfsteel.com/mycolby/articles/392464.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>W三方苹果开发库之ASIHTTPRequest(转蝲)http://www.aygfsteel.com/mycolby/articles/387353.html剑秋剑秋Sun, 09 Sep 2012 14:32:00 GMThttp://www.aygfsteel.com/mycolby/articles/387353.htmlhttp://www.aygfsteel.com/mycolby/comments/387353.htmlhttp://www.aygfsteel.com/mycolby/articles/387353.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/387353.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/387353.html阅读全文

剑秋 2012-09-09 22:32 发表评论
]]>
IOS的框?转蝲)http://www.aygfsteel.com/mycolby/articles/383190.html剑秋剑秋Mon, 16 Jul 2012 02:13:00 GMThttp://www.aygfsteel.com/mycolby/articles/383190.htmlhttp://www.aygfsteel.com/mycolby/comments/383190.htmlhttp://www.aygfsteel.com/mycolby/articles/383190.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/383190.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/383190.html本附录介liOSpȝ包含的框Ӟ它们为编写iOSq_的Y件提供必要的接口。下面的表格可能地列出框架中的cR方法、函数、类型以?qing)常量用的关键前缀Q请避免在?zhn)的符号名UC使用q些前缀?/p>
讑֤中的框架

表B-1描述iOS讑֤提供的框Ӟ它们位于<Xcode>
/Platforms/iPhoneOS.platform/Developer/SDKs/
<iOS_SDK>
/System/Library/Frameworks
目录。\径中?lt;Xcode>表示Xcode的安装目录, <iOS_SDK>则表C目标SDK版本。表中标题ؓ(f)“最先引?#8221;的那一列表C首ơ引入相x架的的iOSpȝ版本?/p>
?B-1  讑֤中的框架

名称

最先引?/p>

前缀

描述


Accelerate.framework

4.0


cblas
,
vDSP

包含加速数学和DSP函数?h?nbsp;加速框架参?/a> ?/p>


AddressBook.framework

2.0


AB

包含直接讉K用户联系人数据库的函数。请查看地址框架参?/a>?/p>


AddressBookUI.framework

2.0


AB

包含昄pȝ定义的联pMh挑选界面和~辑界面的类。请查看iOS地址UI框架参?/a> ?a target="_top" style="color: #3366cc; text-decoration: none; ">


AssetsLibrary.framework

4.0


AL

包含昄用户照片和视频的c,h?a target="_top" style="color: #3366cc; text-decoration: none; ">资源库框架参?/a> ?/p>


AudioToolbox.framework

2.0


AU
,
Audio

包含处理音频数据以?qing)播放或录制音频的接口。请查看音频工具框架参?/a>?/p>


AudioUnit.framework

2.0


AU
,
Audio

包含加蝲q用音频单元的接口。请查看音频单元框架参?/a>.


AVFoundation.framework

2.2


AV

包含播放或录刉频的Objective-C接口。请查看AV Foundation框架参?/a>.?/p>


CFNetwork.framework

2.0


CF

包含通过WiFi或者蜂H无U访问网l的接口。请查看CFNetwork框架参?/a>?/p>


CoreAudio.framework

2.0


Audio

包含Core Audio框架使用的各U数据类型。请查看Core Audio 框架参?/a> ?/p>


CoreData.framework

3.0


NS

包含理应用E序数据模型的接口。请查看Core Data 框架参?/a> ?/p>


CoreFoundation.framework

2.0


CF

提供一些基本Y件服务,包括常见数据cd抽象、字W串实用工具、群体类型实用工兗资源管理以?qing)偏好设|。请查看rovCore Foundation框架参?/a>?/p>


CoreGraphics.framework

2.0


CG

包含Quartz 2D接口。请查看Core Graphics 框架参?/a> ?/p>


CoreLocation.framework

2.0


CL

包含定用户方位信息的接口。请查看Core Location 框架参?/a>?/p>


CoreMedia.framework

4.0


CM

包含操作音频和视频的底层例程。请查看Core Media 框架参?/a>?/p>


CoreMotion.framework

4.0


CM

包含讉K加速度计以?qing)陀ZA的数据的接口。请查看Core Motion 框架参?/a>?/p>


CoreTelephony.framework

4.0


CT

包含讉K?sh)话相关的信息的例程。请查看Core Telephony 框架参?/a>?/p>


CoreText.framework

3.2


CT

包含一个文本的布局渲染引擎。请查看Core Text参考集.?/p>


CoreVideo.framework

4.0


CV

包含操作音频和视频的底层例程。请不要直接使用该框架?/p>


EventKit.framework

4.0


EK

包含讉K用户日历事g数据的接口。请查看Event Kit 框架参?/a>?/p>


EventKitUI.framework

4.0


EK

包含昄标准pȝ日历界面的类。请查看Event Kit UI 框架参?/a>?/p>


ExternalAccessory.framework

3.0


EA

包含与外设进行通讯的接口。请查看External Accessory 框架参?/a>?/p>


Foundation.framework

2.0


NS

包含Cocoa Foundation层的cdҎ(gu)。请查看Foundation 框架参?/a>?/p>


GameKit.framework

3.0


GK

包含点对点连接管理接口。请查看Game Kit 框架参?/a>?/p>


iAd.framework

4.0


AD

包含在应用程序中昄q告的类。请查看iAd 框架参?/a>?/p>


ImageIO.framework

4.0


CG

包含d或写入图像数据的cR请查看Image I/O 参考集?/p>


IOKit.framework

2.0

N/A

包含讑֤所使用的接口。请不要直接使用此框架?/p>


MapKit.framework

3.0


MK

包含地囄面嵌入到应用E序的类Q也可以用于查找地理~码反向坐标。请查看Map Kit框架参?/a>?/p>


MediaPlayer.framework

2.0


MP

包含昄全屏视频的接口。请查看Media Player 框架参?/a>?/p>


MessageUI.framework

3.0


MF

包含撰写和排队发送电(sh)子邮件信息的界面。请查看Message UI 框架参?/a>?/p>


MobileCoreServices.framework

3.0


UT

定义pȝ支持的统一cd标识W(UTIsQ?/p>


OpenAL.framework

2.0


AL

包含OpenAL接口。OpenAL是一个跨q_的方位音频库。如需q一步了(jin)解,误?a target="_blank" rel="external" style="color: #3366cc; text-decoration: none; ">http://www.openal.org?/p>


OpenGLES.framework

2.0


EAGL
,
GL

包含OpenGL ES接口。OpenGL ES框架是OpenGL跨^?D?D渲染库的跨^台版本。请查看OpenGL ES 框架参?/a>?/p>


QuartzCore.framework

2.0


CA

包含Core Animation接口。请查看Quartz Core 框架参?/a>?/p>


QuickLook.framework

4.0


QL

包含预览文g接口。请查看Quick Look 框架参?/a>?/p>


Security.framework

2.0


CSSM
,
Sec

包含理证书、公钥私钥以?qing)信ȝ略的接口。请查看Security框架参?/a>?/p>


StoreKit.framework

3.0


SK

包含用于处理与应用程序内购买相关的胦(ch)务交易。请查看 Store Kit 框架参?/a>?/p>


SystemConfiguration.framework

2.0


SC

包含用于处理讑֤|络配置的接口。请查看System Configuration框架参?/a>?/p>


UIKit.framework

2.0


UI

包含iOS应用E序用户界面层用的cdҎ(gu)。请查看UIKit 框架参?/a>?/p>



模拟器的框架

虽然~写代码应该面向讑֤框架Q但是在试的过E中Q?zhn)也需要针Ҏ(gu)拟器~译代码。设备和模拟器的框架E有区别。模拟器几个Mac OS X框架作ؓ(f)其自w实现的一部分。另外,׃pȝ的限Ӟ讑֤框架的确切接口有可能和模拟器框架E有不同。如果?zhn)需要这些框架的列表以及(qing)讑֤和模拟器框架之间的差异信息,h?a target="_top" style="color: #3366cc; text-decoration: none; ">iOS 开发指?/a>?/p>
pȝ?/span>

h意,iOSpȝ可能没有Core OS和Core Services层某些特D的库打包成框架Q而是其作ؓ(f)动态库攑֜pȝ?br />/usr/lib
 目录。动态共享库通过
.dylib
扩展名标识,其相应的头文件位?br />/usr/include
目录?/p>

所有版本的iPhone SDK都包含一份安装在pȝ的动态共享库本地副本。这些副本被安装在?zhn)的开发系l,(zhn)可以从XCode工程q行链接。如果?zhn)需要查看某个版本的动态库列表Q请查看<Xcode>
/Platforms/iPhoneOS.platform/Developer/SDKs/
<iOS_SDK>
/usr/lib
。在q个路径中,<Xcode>表示Xcode的安装目录,<iOS_SDK>表示(zhn)当时正在用某个版本的SDK。D个例子,iOS 3.0 SDK的动态库位于
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib
目录Q相应的头文件则位于
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include
目录?/p>

iOS使用W号链接来指向程序库的最q版本。在链接某个动态共享库的时候,请用符号链接而不要用动态库特定版本链接。因为在来的iOS版本中,库的版本可能?x)发生改变。如果?zhn)的Y件连接到某个特定的版本,而那个版本可能已l不存在于用L(fng)pȝ当中Q那׃(x)出问题?/p>

剑秋 2012-07-16 10:13 发表评论
]]>
改变控gframe的动L?/title><link>http://www.aygfsteel.com/mycolby/articles/368156.html</link><dc:creator>剑秋</dc:creator><author>剑秋</author><pubDate>Mon, 09 Jan 2012 09:03:00 GMT</pubDate><guid>http://www.aygfsteel.com/mycolby/articles/368156.html</guid><wfw:comment>http://www.aygfsteel.com/mycolby/comments/368156.html</wfw:comment><comments>http://www.aygfsteel.com/mycolby/articles/368156.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mycolby/comments/commentRss/368156.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mycolby/services/trackbacks/368156.html</trackback:ping><description><![CDATA[<br /> <div class="wmqeeuq" id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd"></div>    [UIView beginAnimations:nil context:self];<br />    [UIView setAnimationDelegate:self];<br />    [UIView setAnimationDuration:0.4f];<br />    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];<br />    _tableView.frame = CGRectMake(10, 19, 300, 367);<br />    [UIView commitAnimations];    <img src ="http://www.aygfsteel.com/mycolby/aggbug/368156.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mycolby/" target="_blank">剑秋</a> 2012-01-09 17:03 <a href="http://www.aygfsteel.com/mycolby/articles/368156.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>修改UISearchBar的键盘ؓ(f)中文样式http://www.aygfsteel.com/mycolby/articles/365744.html剑秋剑秋Wed, 07 Dec 2011 05:29:00 GMThttp://www.aygfsteel.com/mycolby/articles/365744.htmlhttp://www.aygfsteel.com/mycolby/comments/365744.htmlhttp://www.aygfsteel.com/mycolby/articles/365744.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/365744.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/365744.html        if ([searchBarSubview conformsToProtocol:@protocol(UITextInputTraits)]) {   
            @try {
                // set style of keyboard
                [(UITextField *)searchBarSubview setKeyboardAppearance:UIKeyboardAppearanceAlert];
               
                // always force return key to be enabled
                [(UITextField *)searchBarSubview setEnablesReturnKeyAutomatically:NO];
            }
            @catch (NSException * e) {       
                // ignore exception
            }
        }
    }

剑秋 2011-12-07 13:29 发表评论
]]>
iphone开发的一些小技??http://www.aygfsteel.com/mycolby/articles/362013.html剑秋剑秋Tue, 25 Oct 2011 07:35:00 GMThttp://www.aygfsteel.com/mycolby/articles/362013.htmlhttp://www.aygfsteel.com/mycolby/comments/362013.htmlhttp://www.aygfsteel.com/mycolby/articles/362013.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/362013.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/362013.html去除nsstring中的I格
NSCharacterSet *whitespace = [NSCharacterSet whitespaceAndNewlineCharacterSet];
NSString *username = [mUsernameField stringValue];
username = [username stringByTrimmingCharactersInSet:whitespace];
让覆盖在下面层的视图接受触摸事g
searchImage.exclusiveTouch = YES;//W一?/span>
searchImage.userInteractionEnabled = NO;
myMapView.exclusiveTouch = NO;//W二?/span>
myMapView.userInteractionEnabled = YES;

防止屏幕暗掉锁屏
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
状态栏的网l活动风火轮是否旋{
[UIApplication sharedApplication].networkActivityIndicatorVisibleQ默认值是NO?/span>
键盘透明
textField.keyboardAppearance = UIKeyboardAppearanceAlert;
截取屏幕囄
//创徏一个基于位囄囑Ş上下文ƈ指定大小为CGSizeMake(200,400)
UIGraphicsBeginImageContext(CGSizeMake(200,400));
//renderInContext 呈现接受者及(qing)其子范围到指定的上下?/span>
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
 //q回一个基于当前图形上下文的图?/span>
 UIImage *aImage = UIGraphicsGetImageFromCurrentImageContext();
 //U除栈顶的基于当前位囄囑Ş上下?/span>
UIGraphicsEndImageContext();
//以png格式q回指定囄的数?/span>
imageData = UIImagePNGRepresentation(aImage);
更改cell选中的背?/span>
UIView *myview = [[UIView alloc] init];
myview.frame = CGRectMake(0, 0, 320, 47);
myview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"0006.png"]];
cell.selectedBackgroundView = myview;
从本地加载图?/span>
NSString *boundle = [[NSBundle mainBundle] resourcePath];
[web1 loadHTMLString:[NSString stringWithFormat:@"<img src='http://fei263.blog.163.com/blog/0001.png'/>"] baseURL:[NSURL fileURLWithPath:boundle]];
View自己调用自己的方?
[self performSelector:@selector(loginToNext) withObject:nil afterDelay:2];//黄色Dؓ(f)Ҏ(gu)?和gq几U执?
动画:一个接一个地昄一pd的图?/span>
NSArray *myImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"myImage1.png"], [UIImage imageNamed:@"myImage2.png"], [UIImage imageNamed:@"myImage3.png"], [UIImage imageNamed:@"myImage4.gif"], nil];
UIImageView *myAnimatedView = [UIImageView alloc];
[myAnimatedView initWithFrame:[self bounds]];
myAnimatedView.animationImages = myImages; //animationImages属性返回一个存攑֊d片的数组
myAnimatedView.animationDuration = 0.25; //览整个囄一ơ所用的旉
myAnimatedView.animationRepeatCount = 0; // 0 = loops forever 动画重复ơ数
[myAnimatedView startAnimating];
[self addSubview:myAnimatedView];
[myAnimatedView release];

剑秋 2011-10-25 15:35 发表评论
]]>
UITableViewCell最x变背景色的方?/title><link>http://www.aygfsteel.com/mycolby/articles/361872.html</link><dc:creator>剑秋</dc:creator><author>剑秋</author><pubDate>Mon, 24 Oct 2011 03:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/mycolby/articles/361872.html</guid><wfw:comment>http://www.aygfsteel.com/mycolby/comments/361872.html</wfw:comment><comments>http://www.aygfsteel.com/mycolby/articles/361872.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mycolby/comments/commentRss/361872.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mycolby/services/trackbacks/361872.html</trackback:ping><description><![CDATA[最好的方式应该是通过cell.backgroundView来改变cell的背景。按照文档说明,backgroundView始终处于 cell的最下层Q所以,cell里的其它subview背景设ؓ(f)[UIColor clearColor],以cell.backgroundView作ؓ(f)l一的背景,应该是最好的方式? <div id="wmqeeuq" class="wp_syntax"><div id="wmqeeuq" class="code"><pre class="c" style="font-family: monospace;"><span style="color: #339933;">-</span> <span style="color: #009900;">(</span>UITableViewCell <span style="color: #339933;">*</span><span style="color: #009900;">)</span>tableView<span style="color: #339933;">:</span><span style="color: #009900;">(</span>UITableView <span style="color: #339933;">*</span><span style="color: #009900;">)</span>tableView cellForRowAtIndexPath<span style="color: #339933;">:</span><span style="color: #009900;">(</span>NSIndexPath <span style="color: #339933;">*</span><span style="color: #009900;">)</span>indexPath <span style="color: #009900;">{</span><br /> <br /> <span style="color: #993333;">static</span> NSString <span style="color: #339933;">*</span>cellIdentifier <span style="color: #339933;">=</span> @<span style="color: #ff0000;">"CellIdentifier"</span><span style="color: #339933;">;</span><br /> <br /> UITableViewCell <span style="color: #339933;">*</span>cell <span style="color: #339933;">=</span> <span style="color: #009900;">[</span>tableView dequeueReusableCellWithIdentifier<span style="color: #339933;">:</span>cellIdentifier<span style="color: #009900;">]</span><span style="color: #339933;">;</span><br /> <span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #339933;">!</span>cell<span style="color: #009900;">)</span><br /> <span style="color: #009900;">{</span><br /> cell <span style="color: #339933;">=</span> <span style="color: #009900;">[</span><span style="color: #009900;">[</span><span style="color: #009900;">[</span>UITableViewCell alloc<span style="color: #009900;">]</span> initWithStyle<span style="color: #339933;">:</span>UITableViewCellStyleSubtitle reuseIdentifier<span style="color: #339933;">:</span>cellIdentifier<span style="color: #009900;">]</span> autorelease<span style="color: #009900;">]</span><span style="color: #339933;">;</span><br /> <span style="color: #009900;">}</span><br /> <br /> cell.<span style="color: #202020;">textLabel</span>.<span style="color: #202020;">text</span> <span style="color: #339933;">=</span> <span style="color: #009900;">[</span>NSString stringWithFormat<span style="color: #339933;">:</span>@<span style="color: #ff0000;">"Line: %d"</span><span style="color: #339933;">,</span> indexPath.<span style="color: #202020;">row</span><span style="color: #009900;">]</span><span style="color: #339933;">;</span><br /> cell.<span style="color: #202020;">textLabel</span>.<span style="color: #202020;">backgroundColor</span> <span style="color: #339933;">=</span> <span style="color: #009900;">[</span>UIColor clearColor<span style="color: #009900;">]</span><span style="color: #339933;">;</span><br /> <br /> UIView <span style="color: #339933;">*</span>backgrdView <span style="color: #339933;">=</span> <span style="color: #009900;">[</span><span style="color: #009900;">[</span>UIView alloc<span style="color: #009900;">]</span> initWithFrame<span style="color: #339933;">:</span>cell.<span style="color: #202020;">frame</span><span style="color: #009900;">]</span><span style="color: #339933;">;</span><br /> backgrdView.<span style="color: #202020;">backgroundColor</span> <span style="color: #339933;">=</span> <span style="color: #009900;">[</span>UIColor blueColor<span style="color: #009900;">]</span><span style="color: #339933;">;</span><br /> cell.<span style="color: #202020;">backgroundView</span> <span style="color: #339933;">=</span> backgrdView<span style="color: #339933;">;</span><br /> <span style="color: #009900;">[</span>backgrdView release<span style="color: #009900;">]</span><span style="color: #339933;">;</span><br /> <br /> <span style="color: #b1b100;">return</span> cell<span style="color: #339933;">;</span><br /><span style="color: #009900;">}</span></pre></div></div><img src ="http://www.aygfsteel.com/mycolby/aggbug/361872.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mycolby/" target="_blank">剑秋</a> 2011-10-24 11:28 <a href="http://www.aygfsteel.com/mycolby/articles/361872.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>UIWebView的一些技?/title><link>http://www.aygfsteel.com/mycolby/articles/360256.html</link><dc:creator>剑秋</dc:creator><author>剑秋</author><pubDate>Sun, 09 Oct 2011 03:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/mycolby/articles/360256.html</guid><wfw:comment>http://www.aygfsteel.com/mycolby/comments/360256.html</wfw:comment><comments>http://www.aygfsteel.com/mycolby/articles/360256.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mycolby/comments/commentRss/360256.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mycolby/services/trackbacks/360256.html</trackback:ping><description><![CDATA[<div id="wmqeeuq" class="multicntwrap"> <div id="wmqeeuq" class="multicnt"> <div> <h3 class="title pre fs1"><span style="font-size: 10pt;" class="tcnt">UIWebView加蝲的html里,加蝲工程文g的图?/span>  <br /></h3></div> </div> </div> <div> </div> <div id="wmqeeuq" class="bct fc05 fc11 nbw-blog ztag js-fs2"><p>W一U方法:(x)</p> <p>       在info.plist里面定义个URL schema比如?youappQ那么\径就写成youapp://test.png </p> <p>可以参照<a rel="nofollow" >http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html</a>?/p> <p>W二U方法:(x)</p> <p>       NSString *htmlString = @"<html><head><body><img src=\"logo.png\"><body></head></html>";<br />       NSString *path = [[NSBundle mainBundle] bundlePath];<br />       NSURL *baseURL = [NSURL fileURLWithPath:path];<br />       [self.myWebView loadHTMLString:htmlString baseURL:baseURL]; </p><p>q个html是你自己写的一个本地html文gQ用来布|UIWebView界面。里面用到的囄可以是工E文仉面的Q也可以是网l上的。给出Url?wbr></p><h3 class="title pre fs1"><span style="font-size: 10pt;" class="tcnt">解决在UIWebView中加载图片时出现延迟现象的做?/span></h3>文字和图片同时显C:(x)<br /><pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f7f7f7; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 24px; margin-left: 0px; padding-top: 1.5em; padding-right: 1.5em; padding-bottom: 1.5em; padding-left: 1.5em; vertical-align: baseline; font-family: 'Courier 10 Pitch', Courier, monospace; color: #222222; line-height: 21px; font-size: 15px; background-position: initial initial; background-repeat: initial initial;">NSString* showHtml = @"<html><head></head><body><strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; font-weight: bold; background-position: initial initial; background-repeat: initial initial;"><img src='data:image/jpg;base64,%@'/></strong><p>here is show a picture.</p></body></html>"; <strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; font-weight: bold; background-position: initial initial; background-repeat: initial initial;">NSData* imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"www.abc.com/img/img1.jpg"]]; NSString* imageString = [imageData base64Encoding];</strong> UIWebView* webView = [UIWebView alloc]; [webView loadHTMLString:<strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; font-weight: bold; background-position: initial initial; background-repeat: initial initial;">[NSString stringWithFormat:showHtml, imageString]</strong> baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]]Q?//以下把该UIWebView昄出来的代码略</pre><p style="background-color: transparent; border-width: 0px; margin-top: 0px; margin-bottom: 24px; vertical-align: baseline;">_体的地方就是通过base64来实现的地方Q我们这里显C的是jpg格式的图片,因此在img标签的src属性里面写的是“src=’data:image/<strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; font-weight: bold; background-position: initial initial; background-repeat: initial initial;">jpg</strong>;base64,%@’”Q而如果是其他格式的图片的话记得把对应的地方给改一?/p><h1 class="postTitle"><a id="ctl02_TitleUrl" class="postTitle2" ><span style="font-size: 10pt;">用Javascript判断囄是否存在Q不存在则显C默认图?/span></a></h1><img src="<a onerror="javascript:this.src='http://www.cnlei.org/BLOG/styles/style2007/images/logo.gif'" /><br /></div><img src ="http://www.aygfsteel.com/mycolby/aggbug/360256.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mycolby/" target="_blank">剑秋</a> 2011-10-09 11:33 <a href="http://www.aygfsteel.com/mycolby/articles/360256.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iphone开发的一些小技??(正则表达式判断url)http://www.aygfsteel.com/mycolby/articles/356849.html剑秋剑秋Fri, 19 Aug 2011 04:59:00 GMThttp://www.aygfsteel.com/mycolby/articles/356849.htmlhttp://www.aygfsteel.com/mycolby/comments/356849.htmlhttp://www.aygfsteel.com/mycolby/articles/356849.html#Feedback1http://www.aygfsteel.com/mycolby/comments/commentRss/356849.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/356849.html    NSString *a = @"http+:[^\\s]*";
    NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", a];
    BOOL checked = [emailTest evaluateWithObject:urlString];
    下面是判断url合法q抽取合法的urlQ?br />    //NSRegularExpressionc里面调用表辄Ҏ(gu)需要传递一个NSError的参数。下面定义一?br />    NSError *error;
    //http+:[^\\s]* q个表达式是(g)一个网址的?br />    NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"http+:[^\\s]*" options:0 error:&error];
    if (regex != nil) {
        NSTextCheckingResult *firstMatch=[regex firstMatchInString:urlString options:0 range:NSMakeRange(0, [urlString length])];
        NSTextCheckingResult *firstMacth = [regex ]
        if (firstMatch) {
            NSRange resultRange = [firstMatch rangeAtIndex:0];
            //从urlString当中截取数据
            NSString *result=[urlString substringWithRange:resultRange];
            //输出l果
            NSLog(@"%@",result);
        }else {
            NSLog(@"no result");
        }   
    }

剑秋 2011-08-19 12:59 发表评论
]]>
为UIToolBar工具条添加各U各L(fng)UIBbarButtonItem(转蝲)http://www.aygfsteel.com/mycolby/articles/356608.html剑秋剑秋Tue, 16 Aug 2011 02:09:00 GMThttp://www.aygfsteel.com/mycolby/articles/356608.htmlhttp://www.aygfsteel.com/mycolby/comments/356608.htmlhttp://www.aygfsteel.com/mycolby/articles/356608.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/356608.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/356608.html(转蝲请保留此文字Q本文来?[iphone开发私房菜_2_] 为UIToolBar工具条添加各U各L(fng)UIBbarButtonItem http://blog.csdn.net/ipromiseu/archive/2010/12/16/6080689.aspx] write by Gray.Luo guohui.great@gmail.com)

 

1.首先Q我们看一下UIBbarButtonItem有哪些初始化Ҏ(gu)Q这也可以看出,它可以被定义Z么东东,然后加到UIToolBar上面厅R?/p>

Ҏ(gu)SDK的文档,我们可以发现UIBbarButtonItem有如下几U初始化的方法:(x)

-initWithTitle

-initWithImage

-initWithBarButtonSystemItem

-initWithCustomView

 

W?U方法就是我们添加各U作料的接口Q所以今天的主角其它也是它?/p>

 

2.在UIToolBar上面dTitle

 

 

  1. UIToolbar *myToolBar = [[UIToolbar alloc] initWithFrame:  
  2.                                                     CGRectMake(0.0f, 0.0f, 320.0f, 44.0f)];  
  3.                                                       
  4. NSMutableArray *myToolBarItems = [NSMutableArray array];  
  5. [myToolBarItems addObject:[[[UIBarButtonItem alloc]  
  6.                                                         initWithTitle:@"myTile"   
  7.                                                         style:UIBarButtonItemStylePlain   
  8.                                                         target:self   
  9.                                                         action:@selector(action)] autorelease]];  
  10. [myToolBar setItems:myToolBarItems animated:YES];  
  11. [myToolBar release];  
  12. [myToolBarItems];                                                         
 

 

setItems传入值或者说items是一个对象数l?/p>

 

3.在UIToolBar上面dimage

 

  1. [myToolBarItems addObject:[[[UIBarButtonItem alloc]  
  2.                                         initWithImage:[UIImage imageNamed:@"myImage.png"]   
  3.                                         style:UIBarButtonItemStylePlain   
  4.                                         target:self   
  5.                                         action:@selector(action)]];  
 

 

4.在UIToolBar上面dSystemItem

  1. [myToolBarItems addObject:[[[UIBarButtonItem alloc]  
  2.                                         initWithBarButtonSystemItem:UIBarButtonSystemItemPlay   
  3.                                         target:self   
  4.                                         action:@selector(action)] autorelease]];  
 

 

Note:

initWithBarButtonSystemItem初始化:(x)

- (id)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem target:(id)target action:(SEL)action

Defines system defaults for commonly used items.

  1. typedef enum {  
  2.     UIBarButtonSystemItemDone,  
  3.     UIBarButtonSystemItemCancel,  
  4.     UIBarButtonSystemItemEdit,  
  5.     UIBarButtonSystemItemSave,  
  6.     UIBarButtonSystemItemAdd,  
  7.     UIBarButtonSystemItemFlexibleSpace,  
  8.     UIBarButtonSystemItemFixedSpace,  
  9.     UIBarButtonSystemItemCompose,  
  10.     UIBarButtonSystemItemReply,  
  11.     UIBarButtonSystemItemAction,  
  12.     UIBarButtonSystemItemOrganize,  
  13.     UIBarButtonSystemItemBookmarks,  
  14.     UIBarButtonSystemItemSearch,  
  15.     UIBarButtonSystemItemRefresh,  
  16.     UIBarButtonSystemItemStop,  
  17.     UIBarButtonSystemItemCamera,  
  18.     UIBarButtonSystemItemTrash,  
  19.     UIBarButtonSystemItemPlay,  
  20.     UIBarButtonSystemItemPause,  
  21.     UIBarButtonSystemItemRewind,  
  22.     UIBarButtonSystemItemFastForward,  
  23.     UIBarButtonSystemItemUndo,        // iPhoneOS 3.0  
  24.     UIBarButtonSystemItemRedo,        // iPhoneOS 3.0  
  25. } UIBarButtonSystemItem;  
 

 

 

5.在UIToolBar上面d其它各种控g,最自由意义Q最有意思的Q我把它攑֜最后来讌Ӏ我们用initWithCustomView来完成,

q里需要看一下initWithCustomView的定义:(x)

- (id)initWithCustomView:(UIView *)customView

可以看出Q它的参数是一个VIEWQ所以我们给它的配料要正哦才行哦,否则Q你q着旉DIDADIDA的流失吧.

A>加一个开关switchQ?/p>

  1. [myToolBarItems addObject:[[[UIBarButtonItem alloc]   
  2.                                     initWithCustomView:[[[UISwitch alloc] init] autorelease]]  
  3.                                     autorelease]];  
 

 

B>加一个按钮UIBarButtonItem

  1. UIBarButtonItem *myButton = [[[UIBarButtonItem alloc]  
  2.                                  initWithTitle:@"myButton"  
  3.                                  style:UIBarButtonItemStyleBordered  
  4.                                  target:self   
  5.                                  action:@selector(action)]autorelease];  
  6. get1Button.width = 50;  
  7. [myToolBarItems addObject:myButton];      
 

C>加一个文本Label

  1. UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(40.0f, 20.0f, 45.0f, 10.0f)];  
  2. myLabel.font=[UIFont systemFontOfSize:10];  
  3. //myLabel.backgroundColor = [UIColor clearColor];  
  4. //myLabel.textAlignment=UITextAlignmentCenter;  
  5. UIBarButtonItem *myButtonItem = [[UIBarButtonItem alloc]initWithCustomView:myLabel];  
  6. [myToolBarItems addObject: myButtonItem];     
  7. [mylabel release];  
  8. [myButtonItem release];  
 

 

 

D>加一个进度条UIProgressView

 

  1. UIProgressView *myProgress = [[UIProgressView alloc] initWithFrame:CGRectMake(65.0f, 20.0f, 90.0f, 10.0f)];  
  2. UIBarButtonItem *myButtonItem = [[UIBarButtonItem alloc]initWithCustomView:myProgress];  
  3. [myToolBarItems addObject: myButtonItem];  
  4. [myProgress release];                                             
  5. [myButtonItem release];  
 

可以加用initWithCustomView制作各种buttonQ这里就不在q里一个一个在加了(jin)。我想你应该也已l掌握了(jin)如何d各种buttonItem的方法了(jin)?/p>

剑秋 2011-08-16 10:09 发表评论
]]>
iphone开发的一些小技??(关键字:(x)document的\径及(qing)路径下所有的资源,切割囄)http://www.aygfsteel.com/mycolby/articles/356575.html剑秋剑秋Mon, 15 Aug 2011 08:38:00 GMThttp://www.aygfsteel.com/mycolby/articles/356575.htmlhttp://www.aygfsteel.com/mycolby/comments/356575.htmlhttp://www.aygfsteel.com/mycolby/articles/356575.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/356575.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/356575.html

    iPhone和symbian 3rd一P?x)?f)每一个应用程序生成一个私有目录,q个目录位于/Users/sundfsun2009/Library/Application Support/iPhone         Simulator/User/Applications下,q即生成一个数字字母串作ؓ(f)目录名,在每一ơ应用程序启动时Q这个字母数字串都是不同于上一ơ?/p>

    通常使用Documents目录q行数据持久化的保存Q而这个Documents目录可以通过 NSSearchPathForDirectoriesInDomainsQNSDocumentDirectoryQNSUserdomainMaskQYESQ? 得到Q代码如下:(x)

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];

   // NSString *path = [documentsDirectory stringByAppendingPathComponent:@"aa.plist"];

    NSLog(@"path:   %@",path);

    打印l果如下Q?/p>

    path:   /Users/apple/Library/Application Support/iPhone Simulator/4.3/Applications/550AF26D-174B-42E6-881B-B7499FAA32B7/Documents

    而这个目录还可以通过 NSHomeDirectory()来得刎ͼ代码如下Q?/p>

    NSString *destPath = NSHomeDirectory();
    NSLog(@"path:   %@",destPath);
    //destPath = [destPath stringByAppendingPathComponent: @"Documents"];
    //NSString *xmlpath = [destPath stringByAppendingPathComponent: @"menu/menu.xml"];

    打印l果如下Q?br />

    path:   /Users/apple/Library/Application Support/iPhone Simulator/4.2/Applications/6F4BC466-C5D6-440C-BAAC-BE20FA468C61

    看看两者打印出来的l果Q我们可以看?gu)两种?gu)的不同?/p>

2. 览document下所有图片资?/p>

    #define DOCUMENTS_FOLDER [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]
    NSArray *fileList = [[[NSFileManager defaultManager] directoryContentsAtPath:DOCUMENTS_FOLDER]
                pathsMatchingExtensions:[NSArray arrayWithObject:@"png"]] ;

3. 得到囄中的某一部分Q?br />

    UIImage *image = [UIImage imageNamed:filename];

    CGImageRef imageRef = image.CGImage;

    CGRect rect = CGRectMake(origin.x, origin.y ,size.width, size.height);

    CGImageRef imageRefRect = CGImageCreateWithImageInRect(imageRef, rect);

    UIImage *imageRect = [[UIImage allocinitWithCGImage:imageRefRect];



剑秋 2011-08-15 16:38 发表评论
]]>
iphone开发的一些小技?一)(关键字:(x)除去UITableView的边框和划动删除Q同步请求及(qing)异步h)http://www.aygfsteel.com/mycolby/articles/356299.html剑秋剑秋Thu, 11 Aug 2011 05:48:00 GMThttp://www.aygfsteel.com/mycolby/articles/356299.htmlhttp://www.aygfsteel.com/mycolby/comments/356299.htmlhttp://www.aygfsteel.com/mycolby/articles/356299.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/356299.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/356299.html1. 如何除去UITableViewStyleGroupcd的UITableView的边框:(x)

    UITableViewStylePlaincd的UITableView去除Ҏ(gu)U有直接的属性方法:(x)

    separatorStyle = UITableViewCellSeparatorStyleNone;

    但在UITableViewStyleGroupedcd的UITableView中,该方法无?br />

    如何去除Ҏ(gu)U呢Q答案很单:(x)

    separatorColor=[UIColor clearColor];


2. UITableView划动删除的实?/strong>

    需要实C面两个方?/p>

        - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { 

           return YES;

            }

        - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:                    (NSIndexPath *)indexPath { 

              if (editingStyle == UITableViewCellEditingStyleDelete) { 

                  [dataArray removeObjectAtIndex:indexPath.row]; 

                    // Delete the row from the data source.                          [testTableView deleteRowsAtIndexPaths:    [NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; 

              }else if (editingStyle == UITableViewCellEditingStyleInsert) {                                            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view.

              }  

         }

3. NSURLConnection同步Q异步与SSL  
    同步h
NSURL *url=[[NSURL alloc]initWithString:urlString];
NSMutableURLRequest *request=[[NSMutableURLRequest alloc]init];
NSError *err=nil;
NSData *data=[NSURLConnection sendSynchronousRequest:request
returningResponse:nil
error:&err];
if(data==nil)
{
//if([err code])

NSLog(@"Code:%d,domain:%@,localizedDesc:%@",[err code],
[err domain],[err localizedDescription]);
}
else
{
}
    q种情况Q通过一个静(rn)态方法,hrequest,q种情况下,?x)一直阻塞,{到q回l果Q简单易?br />        异步h
NSURL *url=[[NSURL alloc]initWithString:urlString];
NSMutableURLRequest *request=[[NSMutableURLRequest alloc]init];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
[url release];
[request release];
if(connection)
{
receivedData = [[NSMutableData data] retain];
NSLog(@"intial done!");
}
else
{
NSLog(@"sorry");
}
        通过一个delegate来做数据的下载以?qing)Request的接受等{消息,此处delegate:selfQ所以需要本cdC些方法,q且定义receivedData做数据的接受
        基本上要实现下面节歌Ҏ(gu)
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
{
NSLog(@"get the whole response");
[receivedData setLength:0];
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
NSLog(@"get some data");
[receivedData appendData:data];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
[connection release];
}
-(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
{
[connection release];
NSLog(@"Connection failed! Error - %@ %@",
[error localizedDescription],
[[error userInfo] objectForKey:NSErrorFailingURLStringKey]);
}
    基本上这样就搞定?jin)!Q!
    但是异步模式下带来了(jin)一个新的问题,很多情况下,|络h不在ȝE,或者界面等待网l结果,不在ȝE的时候,调用U程如果生命周期o(w)verQ下面这些可能都没有调用刎ͼD得不到想要得效果Q所以需要在NSURLConnectionh后面加点东西来阻?br />    while(!finished) {
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
}

    好了(jin)Q现在我们看看SSL的问题,在NSURLConnnection本来有方法可以蟩qssl(g)查,可惜被apple无情的私有了(jin)Q所以同步的数据h肯定不行?jin),看看文档Q只能通过异步delegate的方式了(jin)
    - (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace
    {
return [protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust];
    }
    - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
    {
if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust])
if ([trustedHosts containsObject:challenge.protectionSpace.host])
[challenge.sender useCredential:[NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust] forAuthenticationChallenge:challenge];
[challenge.sender continueWithoutCredentialForAuthenticationChallenge:challenge];
    }
    W一个方法会(x)Ҏ(gu)你的URL来判断是否需要做认证
    W二个方法是认证的过E,if ([trustedHosts containsObject:challenge.protectionSpace.host])Q这行代码注释掉Q就可以自动所有SSL通过Q否则,你可以加一些Trust的hostsQ其他的不通过p?jin)!Q!




剑秋 2011-08-11 13:48 发表评论
]]>
关于NSRang的一些用?/title><link>http://www.aygfsteel.com/mycolby/articles/356027.html</link><dc:creator>剑秋</dc:creator><author>剑秋</author><pubDate>Mon, 08 Aug 2011 08:13:00 GMT</pubDate><guid>http://www.aygfsteel.com/mycolby/articles/356027.html</guid><wfw:comment>http://www.aygfsteel.com/mycolby/comments/356027.html</wfw:comment><comments>http://www.aygfsteel.com/mycolby/articles/356027.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mycolby/comments/commentRss/356027.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mycolby/services/trackbacks/356027.html</trackback:ping><description><![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #eb404c"><span style="color: #00b2fc; font-size: 12pt; ">NSRang是一个结构体Q有两个属性:(x)</span><span style="color: #000000; font-size: 12pt; ">location和length</span><span style="color: #00b2fc"> </span> </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #eb404c"><span style="font-size: 12pt; ">location:是一个烦(ch)引,该烦(ch)引标识的是在Q字W串中捡索到Q字W串的烦(ch)引;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #eb404c"><span style="font-size: 12pt; ">length:?/span><span style="font-size: 12pt; ">捡烦(ch)的字W串的长度,卻I字符串的长度Q?/span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #eb404c"><span style="font-size: 12pt; ">下面是随手写的一个简单的例子Q?/span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #eb404c"><span style="color: #000000; ">          NSString</span><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"> </span><span style="color: #000000; ">*ns</span><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"> </span><span style="color: #000000; ">=</span><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"> </span><span style="color: #000000; ">@"aabbcc?eeff"</span><span style="color: #000000; ">;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #aee450"><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"><span id="wmqeeuq" class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #000000; ">NSRange</span><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"> </span><span style="color: #000000; ">rng</span><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"> </span><span style="color: #000000; ">=</span><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"> </span><span style="color: #000000; ">[ns</span><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"> </span><span style="color: #000000; ">rangeOfString</span><span style="color: #000000; ">:</span><span style="color: #000000; ">@"?"</span><span style="color: #000000; ">];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #f9f9f3"><span style="font: 14.0px 'Apple Braille'"><span id="wmqeeuq" class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #000000; ">NSInteger</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">lo</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">=</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">rng.</span><span style="color: #000000; ">location</span><span style="color: #000000; ">;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #f9f9f3"><span style="font: 14.0px 'Apple Braille'"><span id="wmqeeuq" class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #000000; ">NSString</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">*ts</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">=</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">[ns</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">substringToIndex</span><span style="color: #000000; ">:lo];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #eb404c"><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"><span id="wmqeeuq" class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #000000; ">NSLog</span><span style="color: #000000; ">(</span><span style="color: #000000; ">@"substringToIndex:</span><span style="font: 14.0px 'Apple Braille'">   </span><span style="color: #000000; ">%@"</span><span style="color: #000000; ">,ts);</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #f9f9f3"><span style="font: 14.0px 'Apple Braille'"><span id="wmqeeuq" class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #000000; ">NSString</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">*fs</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">=</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">[ns</span><span style="font: 14.0px 'Apple Braille'"> </span><span style="color: #000000; ">substringFromIndex</span><span style="color: #000000; ">:(lo+</span><span style="color: #000000; ">1</span><span style="color: #000000; ">)];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #eb404c"><span style="font: 14.0px 'Apple Braille'; color: #f9f9f3"><span id="wmqeeuq" class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #000000; ">NSLog</span><span style="color: #000000; ">(</span><span style="color: #000000; ">@"substringFromIndex:</span><span style="font: 14.0px 'Apple Braille'">   </span><span style="color: #000000; ">%@"</span><span style="color: #000000; ">,fs);</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #eb404c"><span style="color: #000000; font-size: 12pt; ">打印的结果:(x)</span><span style="color: #000000; font-family: Menlo; font-size: 12pt; "><strong>2011-08-08 15:48:36.068 wCityFW[2375:207] substringToIndex:   aabbcc</strong></span></p> <p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><strong style="font-size: 12pt; ">          2011-08-08 15:48:36.069 wCityFW[2375:207] substringFromIndex:   eeff</strong></p> <p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><strong style="font-size: 12pt; ">由此我们可以看出</strong><strong style="font-size: 12pt; ">substringToIndexQ是从将要检索的字符Ԍ</strong><span style="font-family: 'Lucida Grande'; font-size: 14px; color: #eb404c; ">卻I字符串的首字W到(g)索到Q字W串的烦(ch)引的一D子字符Ԍ</span></p> <p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><span style="font-family: 'Lucida Grande'; font-size: 14px; color: #eb404c; ">                               </span><strong style="font-size: 12pt; ">substringFromIndexQ是从检索到Q字W串的烦(ch)引到被检索的字符串末字符的一D字W串?/strong></p><img src ="http://www.aygfsteel.com/mycolby/aggbug/356027.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mycolby/" target="_blank">剑秋</a> 2011-08-08 16:13 <a href="http://www.aygfsteel.com/mycolby/articles/356027.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iphone 代码片断http://www.aygfsteel.com/mycolby/articles/354859.html剑秋剑秋Fri, 22 Jul 2011 08:27:00 GMThttp://www.aygfsteel.com/mycolby/articles/354859.htmlhttp://www.aygfsteel.com/mycolby/comments/354859.htmlhttp://www.aygfsteel.com/mycolby/articles/354859.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/354859.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/354859.html- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectZero];
        label.tag = 1;
        label.lineBreakMode = UILineBreakModeWordWrap;
        label.highlightedTextColor = [UIColor whiteColor];
        label.numberOfLines = 0;
        label.opaque = NO; // 选中Opaque表示视图后面的Q何内定w不应该绘?br 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; font-family: 'Lucida Grande', Geneva, Arial, Verdana, sans-serif; " />         label.backgroundColor = [UIColor clearColor];
        [cell.contentView addSubview:label];
        [label release];
    }
    UILabel *label = (UILabel *)[cell viewWithTag:1];
    NSString *text;
    text = [textArray objectAtIndex:indexPath.row];
    CGRect cellFrame = [cell frame];
    cellFrame.origin = CGPointMake(0, 0);
    label.text = text;
    CGRect rect = CGRectInset(cellFrame, 2, 2);
    label.frame = rect;
    [label sizeToFit];
    if (label.frame.size.height > 46) {
        cellFrame.size.height = 50 + label.frame.size.height - 46;
    }
    else {
        cellFrame.size.height = 50;
    }
    [cell setFrame:cellFrame];
    return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [self tableView:tableView cellForRowAtIndexPath:indexPath];
    return cell.frame.size.height;
}


剑秋 2011-07-22 16:27 发表评论
]]>
Sizes of iPhone UI Elements[转蝲]http://www.aygfsteel.com/mycolby/articles/350579.html剑秋剑秋Thu, 19 May 2011 03:16:00 GMThttp://www.aygfsteel.com/mycolby/articles/350579.htmlhttp://www.aygfsteel.com/mycolby/comments/350579.htmlhttp://www.aygfsteel.com/mycolby/articles/350579.html#Feedback0http://www.aygfsteel.com/mycolby/comments/commentRss/350579.htmlhttp://www.aygfsteel.com/mycolby/services/trackbacks/350579.html

剑秋 2011-05-19 11:16 发表评论
]]>
iPhone sdk的学?fn)笔?/title><link>http://www.aygfsteel.com/mycolby/articles/349516.html</link><dc:creator>剑秋</dc:creator><author>剑秋</author><pubDate>Wed, 04 May 2011 09:23:00 GMT</pubDate><guid>http://www.aygfsteel.com/mycolby/articles/349516.html</guid><wfw:comment>http://www.aygfsteel.com/mycolby/comments/349516.html</wfw:comment><comments>http://www.aygfsteel.com/mycolby/articles/349516.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mycolby/comments/commentRss/349516.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mycolby/services/trackbacks/349516.html</trackback:ping><description><![CDATA[1.NSMutableString *receiver = [[NSMutableString alloc] init];<br />    [receiver appendFormat:@"%@",[self.receiverArray objectAtIndex:i]];<br /> <br /> 2.[self.textfield becomeFirstResponder] ->焦点移到NSTextField上,q时虚拟键盘会(x)出现<br />    [self.textfield resignFirstResponder]  ->焦点移出NSTextFieldQ这时虚拟键盘将?x)关?br />   becomeFirstResponder ->焦点移动控件上<br />   resignFirstResponder  ->焦点移出控?br /> <br /> 3.viewWillAppear: <br />   Called when the view is about to made visible. Default does nothing<br />   视图卛_可见时调用。默认情况下不执行Q何操?br />   viewDidAppear: <br />   Called when the view has been fully transitioned onto the screen. Default does nothing<br />   视图已完全过渡到屏幕上时调用<br />   viewWillDisappear:<br />   Called when the view is dismissed, covered or otherwise hidden. Default does nothing<br />  视图被驳回时调用Q覆盖或以其他方式隐藏。默认情况下不执行Q何操?br />   viewDidDisappear:<br />   Called after the view was dismissed, covered or otherwise hidden. Default does nothing<br />   视图被驳回后调用Q覆盖或以其他方式隐藏。默认情况下不执行Q何操?br /> <br />   loadView; <br />   This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called         directly.<br />   q是当他们没有正在用nib视图面Q子cd?x)创q自定义视囑ֱ。绝不能直接调用?br />   viewDidLoad;<br />   Called after the view has been loaded. For view controllers created in code, this is after -loadView. For view controllers   unarchived from a nib, this is after the view is set.<br />   在视囑֊载后被调用,如果是在代码中创建的视图加蝲器,他将?x)在loadViewҎ(gu)后被调用Q如果是从nib视图面输出Q他会(x)在视图设|好 后被调用?br /> <br /> <img src ="http://www.aygfsteel.com/mycolby/aggbug/349516.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mycolby/" target="_blank">剑秋</a> 2011-05-04 17:23 <a href="http://www.aygfsteel.com/mycolby/articles/349516.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iPhone sdk与jdk的对应类Q学?fn)?..陆箋更新Q?/title><link>http://www.aygfsteel.com/mycolby/articles/349502.html</link><dc:creator>剑秋</dc:creator><author>剑秋</author><pubDate>Wed, 04 May 2011 08:05:00 GMT</pubDate><guid>http://www.aygfsteel.com/mycolby/articles/349502.html</guid><wfw:comment>http://www.aygfsteel.com/mycolby/comments/349502.html</wfw:comment><comments>http://www.aygfsteel.com/mycolby/articles/349502.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mycolby/comments/commentRss/349502.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mycolby/services/trackbacks/349502.html</trackback:ping><description><![CDATA[NSDictionary (NSMutableDictionary)-> Map<br /> NSArray(NSMutableArray) -> ArrayList<br /> NSString -> String<br /> NSMutableString -> StringBuffer<br /> NSData(NSMutableData) -> byte[]<br /> <img src ="http://www.aygfsteel.com/mycolby/aggbug/349502.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mycolby/" target="_blank">剑秋</a> 2011-05-04 16:05 <a href="http://www.aygfsteel.com/mycolby/articles/349502.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̩</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˫</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ҷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">¡</a>| <a href="http://" target="_blank">лͨ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ζ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɳ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɫ</a>| <a href="http://" target="_blank">Ǩ</a>| <a href="http://" target="_blank">ﴨ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>