08 2012 档案

摘要://对于错误信息 NSError *error; // 创建文件管理器 NSFileManager *fileMgr = [NSFileManager defaultManager]; //指向文件目录 NSString *documentsDirectory= [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]; //创建一个目录 [[NSFileManager defaultManager] createDirectoryAt... 阅读全文
posted @ 2012-08-31 14:31 FoxBabe 阅读(353) 评论(1) 推荐(0) 编辑
摘要:http://www.devdiv.com/home.php?mod=space&uid=21666&do=blog&id=8845 阅读全文
posted @ 2012-08-30 07:58 FoxBabe 阅读(1079) 评论(0) 推荐(0) 编辑
摘要:参考官方文档:http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueCoding/Articles/KeyValueCoding.html#//apple_ref/doc/uid/10000107-SW1 阅读全文
posted @ 2012-08-08 19:05 FoxBabe 阅读(271) 评论(0) 推荐(0) 编辑
摘要:参考官方文档:http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html#//apple_ref/doc/uid/10000177-BCICJDHA看这个概念老久了,迟迟没能真正的用到,今天总算是使用上了,回头来把方法补上。大批大批的概念我就不赘述了,看官方最有效。三分步1、保证要添加观察的类符合kvc2、为属性添加观察者 //为table的image添加观察者 [[self imageView] add... 阅读全文
posted @ 2012-08-08 19:02 FoxBabe 阅读(447) 评论(2) 推荐(0) 编辑
摘要:一、线程的创建和启动NSThread创建主要有两种直接方式:[NSThread detachNewThreadSelector:@selector(myThreadMainMethod:) toTarget:self withObject:nil];和NSThread* myThread = [[NSThread alloc] initWithTarget:self selector:@selector(myThreadMainMethod:) ... 阅读全文
posted @ 2012-08-08 13:41 FoxBabe 阅读(316) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示