摘要: 假设有这么个触发下载方法叫- (IBAction)startDownLoad:(id)sender本地viewController有这么个instance variable : ASINetWorkQueue *netWorkQueue可以从该实例的头文件中看到该queue属于一个NSOperationQueue在触发方法实现如下代码// lazy init 你的实例netWorkQueueif (!networkQueue) { networkQueue = [[ASINetworkQueue alloc]init]; }// 使得每一次下载都是重新来过的 [net... 阅读全文
posted @ 2012-08-26 20:33 sayALittle 阅读(3446) 评论(1) 推荐(0) 编辑
摘要: 隐藏与显示系统文件>>defaults write com.apple.finder AppleShowAllFiles -bool (true or false)>>killall Finder改变系统默认截图文件属性>>defaults write com.apple.screencapture type (jpg, jpeg, png)双击打不开文件夹>>去系统设置中将鼠标连击速度改为中等即可使用sips批量缩放图片大小>>sips -s format jpeg -Z 250 someImage.PNG --out myImag 阅读全文
posted @ 2012-08-26 01:08 sayALittle 阅读(4067) 评论(0) 推荐(0) 编辑
摘要: 在发表前,容许我发两句牢骚,太折腾了。但结合网路上各种大侠的答案相助,最终我终于可以在ARC项目使用该库了。1.需要下载asi-http-request这个包。https://github.com/pokeb/asi-http-request/tree2.打开xcode,新建工程。把网路下载的包解压,在工程中添加各种类,由于本人刚开始研究,所以加了所有类。把External里的Reachability 以及class文件全部拖到工程里去,当然选择copy。记得别把fmdb.m放进该文件。3.关键的步骤来了,你需要打开项目Targets的build phases,在里面把asi库的文件全标记为- 阅读全文
posted @ 2012-08-26 01:04 sayALittle 阅读(2335) 评论(0) 推荐(0) 编辑
点击这里给我发消息