2012年7月23日
摘要: - (CCAnimation*) animationWithFile:(NSString*)name frameCount:(int)frameCount delay:(float)delay { //动画帧文件集 NSMutableArray* frames = [NSMutableArray arrayWithCapacity:frameCount]; // ... 阅读全文
posted @ 2012-07-23 09:52 <懒洋洋> 阅读(147) 评论(0) 推荐(0) 编辑
摘要: // 获取Resources目录下的文件夹路径, 例如: Resources/FolderName NSString *bundlePath = [[[NSBundle mainBundle] pathForResource:@"FolderName" ofType:nil] retain]; // 读取文件 NSString *FilePath = [bundlePath string... 阅读全文
posted @ 2012-07-23 09:24 <懒洋洋> 阅读(984) 评论(0) 推荐(0) 编辑