摘要: 一 、 准备 1、FFMpeg 编译所需的 https://github.com/kewlbear/FFmpeg-iOS-build-script https://github.com/libav/gas-preprocessor yams 1.2.0 2、下载FFmpeg-iOS-build-sc 阅读全文
posted @ 2016-02-24 16:50 hshd123 阅读(136) 评论(0) 推荐(0) 编辑
摘要: /// An opaque type that represents a method in a class definition. //一个类的方法 typedef struct objc_method *Method; /// An opaque type that represents an 阅读全文
posted @ 2016-02-14 17:21 hshd123 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1 简介: 2 3 正则表达式,又称正规表示法、常规表示法(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式使用单个字符串来描述、匹配一系列符合某个句法规则的字符串。在很多文本编辑器里,正则表达式通常被用来检索、替换那些符合某个模式的文本。 4 5 6 . :匹配任何单个字符。例如... 阅读全文
posted @ 2015-12-03 15:52 hshd123 阅读(209) 评论(0) 推荐(0) 编辑
摘要: git git clone git@git.oschina.net:openswc/gobang.git //ssh 链接git remote add origin git@git.oschina.net:openswc/gobang.gitgit add .git commit -am "goba... 阅读全文
posted @ 2015-11-18 00:13 hshd123 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1、IOS沙盒机制 在ios系统中,系统都为每一个app创建一个资源目录,这个目录称之为沙盒 。里面存放着图片,属性文件plist,bundle,nib文件等。其特点如下: 1、每个应用都有属于自己的存储空间 -- 沙盒。 2、每个... 阅读全文
posted @ 2015-05-03 23:37 hshd123 阅读(223) 评论(0) 推荐(0) 编辑
摘要: void test2(){ //绘制矩形 CGContextRef context = UIGraphicsGetCurrentContext(); //获得上下文 CGContextAddRect(context, CGRectMake(50, 100, 100,... 阅读全文
posted @ 2015-04-13 19:06 hshd123 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #import // 定义一个叫做MyBlock的类型// 利用MyBlock类型可以定义block变量// 利用MyBlock类型定义出来的变量, 存储的代码必须返回int, 必须接受2个int类型的参数typedef int (^myBlock)(int ,int);void test(){ ... 阅读全文
posted @ 2015-04-13 17:00 hshd123 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1 A.clang warning 2 #pragma clang diagnostic push 3 #pragma clang diagnostic ignored "-Wgnu" 4 //code 5 #pragma clang diagnostic pop 6 7 表示在这个区... 阅读全文
posted @ 2014-12-02 10:41 hshd123 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 一.UIPickerView1.UIPickerView的常见属性// 数据源(用来告诉UIPickerView有多少列多少行)@property(nonatomic,assign) id dataSource;// 代理(用来告诉UIPickerView每1列的每1行显示什么内容,监听UIPic... 阅读全文
posted @ 2014-11-29 20:05 hshd123 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 碰到在搜索框中过滤非法字符的问题,传统的用while循环来操作就显得太繁琐,ios 的 NSString 里有相关的方法可以解决此问题。如下: NSCharacterSet*doNotWant=[NSCharacterSetcharacterSetWithCharactersInString:@"... 阅读全文
posted @ 2014-10-28 18:03 hshd123 阅读(1244) 评论(0) 推荐(0) 编辑