摘要: 1 保存部分: addAssetsGroupAlbumWithName:resultBlock:failureBlock:Adds a new assets group to the library.- (void)addAssetsGroupAlbumWithName:(NSString*)nameresultBlock:(ALAssetsLibraryGroupResultBlock)resultBlockfailureBlock:(ALAssetsLibraryAccessFailureBlock)failureBlockParametersnameThe name for the ne 阅读全文
posted @ 2012-12-07 18:50 xuvw 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 1AVQueuePlayer 从ios4.1开始支持多视频无缝连续播放,类似优酷、爱奇艺等客户端应该用到这样的技术--待深入研究2 设置专辑封面 1.MPMediaItem里有一个property叫MPMediaItemPropertyArtwork,具体用法如下: MPMediaItemArtwork *artwork = [[MPMusicPlayerController iPodMusicPlayer].nowPlayingItem valueForProperty: MPMediaItemPropertyArtwork]; UIImage *artworkImage = [art... 阅读全文
posted @ 2012-12-07 16:40 xuvw 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1 xcode4.5.2 中.h或.m文件无法引用其他文件解决办法: 今天在项目中已有文件无法引用其他文件,同时自动提示无效,搜索无果。 *删除掉出问题的文件将内容复制过来即可,原因不知。 阅读全文
posted @ 2012-12-06 13:58 xuvw 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 几种视力保护色 银河白 #FFFFFF rgb(255, 255, 255) 杏仁黄 #FAF9DE rgb(250, 249, 222) 秋叶褐 #FFF2E2 rgb(255, 242, 226) 胭脂红 #FDE6E0 rgb(253, 230, 224) 青草绿 #E3EDCD rgb(227, 237, 205) 海天蓝 #DCE2F1 rgb(220, 226, 241) 葛巾紫 #E9EBFE rgb(233, 235, 254) 极光灰 #EAEAEF rgb(234, 234, 2... 阅读全文
posted @ 2012-12-03 14:47 xuvw 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1http://www.sourcemac.com/?page=fstream源码网 阅读全文
posted @ 2012-12-02 23:48 xuvw 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1。如何读取UTF-8编码的文本文件?2。如何读取GB2312(中文)的文本文件?3。如何读取其它编码文件?首先解决第一个问题,1。如何读取UTF-8编码的文本文件? NSString *filePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:fileName]; [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil] //当然也可以采用如下方法 //NSD... 阅读全文
posted @ 2012-11-29 09:57 xuvw 阅读(11222) 评论(2) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2012-11-27 10:39 xuvw 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2012-11-26 00:29 xuvw 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 touch事件传递: a.若子视图区域超出父视图区域则只有与父视图重合的部分可接受touch事件,超出部分不接受任何事件。2 xcode 依赖库管理工具 :https://github.com/CocoaPods/CocoaPods3https://github.com/gavinkwoeioser4http://blog.csdn.net/cloudhsu/article/category/713550/3 台湾ioser 阅读全文
posted @ 2012-11-22 19:32 xuvw 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 touch事件传递: a.若子视图区域超出父视图区域则只有与父视图重合的部分可接受touch事件,超出部分不接受任何事件。 阅读全文
posted @ 2012-10-30 14:47 xuvw 阅读(122) 评论(0) 推荐(0) 编辑