会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hshd123
博客园
首页
新随笔
联系
管理
订阅
2016年2月24日
FFMPeg iOS 编译
摘要: 一 、 准备 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
阅读(150)
评论(0)
推荐(0)
2016年2月14日
Runtime 学习
摘要: /// 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
阅读(319)
评论(0)
推荐(0)
2015年12月3日
iOS 正则表达式 配合 RegexKitLite 使用
摘要: 1 简介: 2 3 正则表达式,又称正规表示法、常规表示法(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式使用单个字符串来描述、匹配一系列符合某个句法规则的字符串。在很多文本编辑器里,正则表达式通常被用来检索、替换那些符合某个模式的文本。 4 5 6 . :匹配任何单个字符。例如...
阅读全文
posted @ 2015-12-03 15:52 hshd123
阅读(251)
评论(0)
推荐(0)
2015年11月18日
git 提交oschina
摘要: 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
阅读(204)
评论(0)
推荐(0)
2015年5月3日
ios 沙盒机制
摘要: 1、IOS沙盒机制 在ios系统中,系统都为每一个app创建一个资源目录,这个目录称之为沙盒 。里面存放着图片,属性文件plist,bundle,nib文件等。其特点如下: 1、每个应用都有属于自己的存储空间 -- 沙盒。 2、每个...
阅读全文
posted @ 2015-05-03 23:37 hshd123
阅读(239)
评论(0)
推荐(0)
2015年4月13日
quartz2d 的简单使用
摘要: void test2(){ //绘制矩形 CGContextRef context = UIGraphicsGetCurrentContext(); //获得上下文 CGContextAddRect(context, CGRectMake(50, 100, 100,...
阅读全文
posted @ 2015-04-13 19:06 hshd123
阅读(176)
评论(0)
推荐(0)
Block得简单使用
摘要: #import // 定义一个叫做MyBlock的类型// 利用MyBlock类型可以定义block变量// 利用MyBlock类型定义出来的变量, 存储的代码必须返回int, 必须接受2个int类型的参数typedef int (^myBlock)(int ,int);void test(){ ...
阅读全文
posted @ 2015-04-13 17:00 hshd123
阅读(230)
评论(0)
推荐(0)
2014年12月2日
iOS 中常用的技巧
摘要: 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
阅读(168)
评论(0)
推荐(0)
2014年11月29日
UIPickerView 简单小结
摘要: 一.UIPickerView1.UIPickerView的常见属性// 数据源(用来告诉UIPickerView有多少列多少行)@property(nonatomic,assign) id dataSource;// 代理(用来告诉UIPickerView每1列的每1行显示什么内容,监听UIPic...
阅读全文
posted @ 2014-11-29 20:05 hshd123
阅读(188)
评论(0)
推荐(0)
2014年10月28日
iOS过滤非法字符串
摘要: 碰到在搜索框中过滤非法字符的问题,传统的用while循环来操作就显得太繁琐,ios 的 NSString 里有相关的方法可以解决此问题。如下: NSCharacterSet*doNotWant=[NSCharacterSetcharacterSetWithCharactersInString:@"...
阅读全文
posted @ 2014-10-28 18:03 hshd123
阅读(1254)
评论(0)
推荐(0)
下一页
公告