08 2015 档案

摘要:PublicUtils.m+(UIImage *) imageWithVideoUrl:(NSURL *)videoURL time:(CMTime) time{ AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:video... 阅读全文
posted @ 2015-08-24 16:25 沙影无痕 阅读(269) 评论(0) 推荐(0)
摘要:这里以打包rfc3951静态库为例创建一个静态库工程 命名为librfc3951将文件夹librfc3951下生成的librfc3951.h、 librfc3951.m文件删除,加入 rfc3951 C++ 代码文件 修改 Product->Scheme-> Edit Scheme... 阅读全文
posted @ 2015-08-19 14:40 沙影无痕 阅读(357) 评论(0) 推荐(0)
摘要:转载自:http://www.cnblogs.com/MarsGG/articles/1949239.html 一般来说这种情况还是蛮多的,比如你从文件中读入了一个array1,然后想把程序中的一个array2中符合array1中内容的元素过滤出来。正 常傻瓜一点就是两个for循环,... 阅读全文
posted @ 2015-08-19 09:20 沙影无痕 阅读(150) 评论(0) 推荐(0)
摘要:UICollectionView的使用介绍 使用的时候,需要包含 UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout这三个;1、UICollectionVie... 阅读全文
posted @ 2015-08-18 08:57 沙影无痕 阅读(128) 评论(0) 推荐(0)
摘要:iOS SDK提供了number也可以类似date进行格式化处理,如:NSNumberFormatter *formatter = [[[NSNumberFormatter alloc] init] autorelease];formatter.numberStyle = NSNum... 阅读全文
posted @ 2015-08-14 14:55 沙影无痕 阅读(187) 评论(0) 推荐(0)
摘要:新的方法采用的是 attributes,attributes参数需要的是一个数组 我们常用的有几个: NSMutableParagraphStyle* paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] muta... 阅读全文
posted @ 2015-08-14 14:40 沙影无痕 阅读(372) 评论(0) 推荐(0)
摘要:1、layoutSubviews 被调用的触发条件 (1)采用 initWithFrame:方法初始化,并且frame不为 CGRectZero是会触发 (2)当 addSubView的时候会触发 (3)选择屏幕的时候,会导致父视图的layoutSubviews调用 (4)UIScr... 阅读全文
posted @ 2015-08-13 10:28 沙影无痕 阅读(357) 评论(0) 推荐(0)
摘要:contains 的使用contains[c] [c]不区分大小写 [d]不区分发音符号即没有重音符号 [cd]既不区分大小写,也不区分发音符号 阅读全文
posted @ 2015-08-12 11:11 沙影无痕 阅读(307) 评论(0) 推荐(0)
摘要:需要引入 QuartzCore+(void)animationWithView:(UIView *)view duration:(CFTimeInterval)duration{ CAKeyframeAnimation * animation; animation = [... 阅读全文
posted @ 2015-08-05 16:54 沙影无痕 阅读(297) 评论(0) 推荐(0)