2011年1月25日
摘要: In my recent post onHow To Choose the Best XML Parser for Your iPhone Project, Saliom from the comments section suggested writing a post on how to use an XML library to read and write XML documents, create your own objects based on the documents, and perform XPath queries.This tutorial will show you 阅读全文
posted @ 2011-01-25 10:54 wwwkhd 阅读(1221) 评论(0) 推荐(0) 编辑
  2011年1月24日
摘要: 对这几个也算不上有很深的理解,只是平时用到些许timer,thread。想起有次去baidu笔试遇到runloop和timer等的区别,当时就不会。两三月过去了,如今终于稍微整理了下。有不对的地方盼指正。(版权所有哦)·NSThread:常见的线程每个进程里都有多个线程,我们一般如下实用thread:[NSThread detachNewThreadSelector:@selector(myThreadMainMethod:) toTarget:self withObject:nil];如果函数需要输入参数,那么可以从object传进去。你也可以这样实现NSThread* myThread = 阅读全文
posted @ 2011-01-24 10:16 wwwkhd 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: CFRunLoop 对象监控任务(task)的输入源,并在它们为处理做好准备的时候调度控制。输入源样例可能包括用户输入设备、网络链接、定期或时间延迟事件,还有异步回调。 有3类对象可以被run loop监控:sources、timers、observers。 当这些对象需要处理的时候,为了接收回调,首先必须通过 CFRunLoopAddSource,CFRunLoopAddTimer, o... 阅读全文
posted @ 2011-01-24 10:15 wwwkhd 阅读(2755) 评论(0) 推荐(0) 编辑
  2011年1月14日
摘要: http://aminby.net/2010/06/the-mothed-of-base64-coding-for-objc/http://qzc770707.blog.163.com/blog/static/34082753201022442356502/http://www.daniweb.com/forums/thread283020.htmlhttp://www.crazycoder.cn/mypdf/1429.pdf 阅读全文
posted @ 2011-01-14 22:26 wwwkhd 阅读(211) 评论(0) 推荐(0) 编辑
  2011年1月13日
摘要: 1 HTTP协议的概念和历史1.1 什么是HTTP协议HTTP协议是超文本传送协议(HyperText Transfer Protocol)的缩写,它是万维网(World Wide Web,www,也简称为Web)的基础。HTTP协议设计之初就是为了实现Web的想法。HTTP协议位于TCP/IP协议栈的应用层。我们在浏览器的地址栏里输入的网站地址叫做URL(UniformResourceLocator,统一资源定位符)。就像每家每户都有一个门牌地址一样,每个网页也都有一个Internet地址。当你在浏览器的地址框中输入一个URL或是单击一个超级链接时,URL就确定了要浏览的地址。浏览器通过超文 阅读全文
posted @ 2011-01-13 21:45 wwwkhd 阅读(305) 评论(0) 推荐(0) 编辑
  2011年1月12日
摘要: CodeMeaningRThe property is read-only (readonly).CThe property is a copy of the value last assigned (copy).&The property is a reference to the value last assigned (retain).NThe property is non-atomic (nonatomic).GnameThe property defines a custom getter selector name. The name follows the G (for e 阅读全文
posted @ 2011-01-12 13:30 wwwkhd 阅读(536) 评论(0) 推荐(0) 编辑