Tekkaman

导航

 

2013年2月21日

摘要: 【Finding Leaks Using Instruments】 The Instruments application can be used to find leaks in both OS X and iPhone applications. 译:Instrument可以检测OSX和iOS程序的内存泄露。 To find leaks, create a new document template in the application and add the Leaks instrument to it. The Leaks instrument provides leak-det... 阅读全文
posted @ 2013-02-21 18:53 Tekkaman 阅读(235) 评论(0) 推荐(0)
 
摘要: 【C中的各种LOC】 C语言跟内存申请相关的函数主要有 alloca,calloc,malloc,free,realloc,sbrk等.其中alloca是向栈申请内存,因此无需释放. malloc分配的内存是位于堆中的,并且没有 初始化内存的内容,因此基本上malloc之后,调用函数memset来初 阅读全文
posted @ 2013-02-21 14:23 Tekkaman 阅读(227) 评论(0) 推荐(0)
 
摘要: 【iOS登陆的实现】 ASSUMPTION: iOS端加载Web页,然后用户输入用户名密码登陆,WebServer会把用户登陆信息记载在Cookie。那么iOS客户端如何取到Cookie中的登陆信息。 1、客户端监听NSHTTPCookieManagerCookiesChangedNotific... 阅读全文
posted @ 2013-02-21 11:04 Tekkaman 阅读(8618) 评论(0) 推荐(0)