加载中
Reading List

0. the C programming language (done) 1. the practice of programming (done) 2. Algorithms in C (part 1 - 5) (chapter 3) 3. Algorithm Design Manual 4.C interfaces and implementati...

2013/07/19 16:33
155
博客搬家

已经将博客搬到http://anyuan.me 上,欢迎大家订阅。

2014/09/14 19:09
411
Linux Web.py网站迁移Mac OS X

1. 数据库导出 mysqldump --opt -u name -p dbname > backupfile.sql 2. 在Mac OS X上安装web.py环境 0)install web.py sudo pip install web.py 1) 安装mod_wsgi 下载mod_wsgi http://cod...

2014/08/23 15:04
381
iOS layoutSubviews 什么时候会被调用

init 方法不会调用layoutSubviews addSubview 会触发target view(被添加view的view)和其subview的layoutSubviews方法 setFrame 只有当设置的frame的参数的size与原来的size不同,才会触发其...

2014/08/17 15:34
3.4K
iOS GCD常用函数总结

GCD提供两种Dispatch Queue, 分别为Concurrent Dispatch Queue 和 Serial Dispatch Queue. Serial Dispatch Queue 使用一个thread。 Concurrent Dispatch Queue 使用多个thread。 获取Dispa...

2014/04/19 15:58
5.6K
iOS Block实现探究

使用clang的rewrite-objc filename 可以将有block的c代码转换成cpp代码。从中可以看到block的实现。 #include <stdio.h> int main() { void (^blk)(void) = ^{ printf("Block\n"); ...

2014/04/06 16:20
2.6K
UIApplicationDelegate 启动选项介绍

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {     // Override point for customization after appli...

2014/03/05 11:12
1.7K
iOS 设置所有UIButton的ExclusiveTouch属性为YES

-(void)setExclusiveTouchForButtons:(UIView *)myView {     for (UIView * v in [myView subviews]) {         if([v isKindOfClass:[UIButton class]])      ...

2014/02/20 10:56
5.2K
iOS7 nested push animation can result in corrupted

iOS7 nested push animation can result in corrupted 问题解决

iOS 获取本地设备IP地址

#import <ifaddrs.h> #import <arpa/inet.h> // Get IP Address - (NSString *)getIPAddress {         NSString *address = @"error";     struct ifaddrs *inte...

2014/02/10 17:19
1.4W
NSAutoreleasePool 实现原理

概述 autorelease 是NSObject的一个类方法,它是通过调用[NSAutoreleasePool addObject:self] 来把一个对象添加到自动释放池中的,因为这是一个类方法,所以有必要知道是对哪个对象进行autor...

2013/12/10 12:12
1.4K
有关UITableView性能优化的几篇文章

优化UITableView滚动速度 利用预渲染加速iOS设备的图像显示 Improving Image Drawing Performance on iOS Table View Programming Guide for iOS...

2013/12/09 20:47
148
iOS 消息传递过程解析

在iOS中调用一个方法,其实是调用一个方法实现的函数指针并传给他对象实例指针,一个Selector,还有函数用到的参数。在Objective-C 中,每一个方法调用其实都是转换成了调用objc_msgSend方法...

2013/12/08 20:14
1.6K
iOS KVO实现方式

KVO 也许是iOS中“最神奇”的部分了,因为你不需要在被观察对象中添加任何代码,就可以实现对被观察对象属性改变的通知。KVO究竟是怎么实现的? KVO是通过Objective-C的runtime来实现的。当...

2013/11/27 17:29
1.5K
iOS GCD 与 NSOperationQueue对比

NSOperationQueue 是在GCD基础上实现的,只不过是GCD更高一层的抽象。 GCD 只支持FIFO 的队列, 而NSOperationQueue可以调整队列的执行顺序。(通过调整权重) NSOperationQueue可以在Opera...

iOS key-value coding collection operators

通过key-value coding的collection operators 可以大大简化我们对于集合对象的某些操作,比如求集合中某属性最小值,最大值,平均数,去重,合并等操作。 具体请参考以下链接 http://nshipst...

2013/11/12 11:30
146
iOS Crash类别总结

EXC_BAD_ACCESS An EXC_BAD_ACCESS occurs whenever you try to access or send a message to a deallocated object. The most common cause of EXC_BAD_ACCESS is when you initialize a va...

2013/11/05 17:06
455
iOS LLDB console debug总结

Xcode's debugging console window is a full-featured LLDB debugging console. When your app is paused(at a breakpoint), the debugging console shows the LLDB command prompt. You ca...

2013/11/05 16:11
1.6K

没有更多内容

加载失败,请刷新页面

返回顶部
顶部