摘要: 官方下载地址:http://code.google.com/p/ziparchive/ZipArchive *unzip = [[ZipArchivealloc] init]; if ([unzip UnzipOpenFile:fileName]) { //解压 BOOL result = [unzip UnzipFileTo:filepath overWrite:YES]; if (result) { NSLog(@"解压成功!"); } [unzip UnzipCloseFile]; }[unzip release];-(BOOL) Create... 阅读全文
posted @ 2012-08-29 15:53 TQ.CH 阅读(606) 评论(0) 推荐(0) 编辑
摘要: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [[event allTouches] anyObject]; CGPoint touchPoint = [touch locationInView:self.view];......} 阅读全文
posted @ 2012-08-29 15:47 TQ.CH 阅读(386) 评论(0) 推荐(0) 编辑
摘要: @interface GlobalSingleton : NSObject{}+(GlobalSingleton*)sharedGlobalSingleton;@implementation GlobalSingleton-(id)init{ self = [super init]; if(self){ //全局属性初始化 } return self;}+(GlobalSingleton*)sharedGlobalSingleton{ static GlobalSingleton *sharedGlobalSingleton; @synchro... 阅读全文
posted @ 2012-08-29 15:09 TQ.CH 阅读(425) 评论(0) 推荐(0) 编辑
摘要: ARC项目中使用了一些外部实用类,这些类没有使用ARC,必须做一下调整项目才能编译 。Targets属性 》》Build Phases标签 》》 Compile Sources设置不使用ARC的类的 Compile Flags 为 “-fno-objc-arc” 。 阅读全文
posted @ 2012-08-29 14:05 TQ.CH 阅读(128) 评论(0) 推荐(0) 编辑