11 2012 档案
摘要:1。如何读取UTF-8编码的文本文件?2。如何读取GB2312(中文)的文本文件?3。如何读取其它编码文件?首先解决第一个问题,1。如何读取UTF-8编码的文本文件? NSString *filePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:fileName]; [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil] //当然也可以采用如下方法 //NSD...
阅读全文
摘要:static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth, float ovalHeight){float fw, fh;if (ovalWidth == 0 || ovalHeight == 0) {CGContextAddRect(context, rect);return;}CGContextSaveGState(context);CGContextTranslateCTM(context, CGRectGetMinX(rect), CGRectGetMinY(rect));CG
阅读全文
摘要:http://code4app.com/ios/Key-frame-Animation/5044674d6803fa247b000000关键帧动画http://code4app.com/ios/AHEasing/4fefe5166803fad13a000000关键帧动画控制物体运动节奏http://code4app.com/ios/Core-Animation-Demos/4f72e0da6803fa1c44000000http://code4app.com/ios/Fold-Transition/4fc8458e6803fa0875000000***截屏记录实现程序内截屏功能,支持 iPho
阅读全文
摘要:1 touch事件传递: a.若子视图区域超出父视图区域则只有与父视图重合的部分可接受touch事件,超出部分不接受任何事件。2 xcode 依赖库管理工具 :https://github.com/CocoaPods/CocoaPods3https://github.com/gavinkwoeioser4http://blog.csdn.net/cloudhsu/article/category/713550/3 台湾ioser
阅读全文

浙公网安备 33010602011771号