- 博客(7)
- 收藏
- 关注
转载 Objective-C Runtime 运行时之一:类与对象
转载自:http://southpeak.github.io/blog/2014/10/25/objective-c-runtime-yun-xing-shi-zhi-lei-yu-dui-xiang/ Objective-C语言是一门动态语言,它将很多静态语言在编译和链接时期做的事放到了运行时来处理。这种动态语言的优势在于:我们写代码时更具灵活性,如我们可以把消息转发给我们想要
2016-01-10 00:18:48
372
原创 UITextField和UITextView限制字数(包括中文)
一直以来UITextField和UITextView的字数显示就困扰着我,特别当输入为中文输入法时 今天再搜索这个问题时看到了2位同学的博客,通过整合完成了对UITextField和UITextView的中文输入法字数限制 先感谢这两位同学http://blog.sina.com.cn/s/blog_60f977e70101g4gj.html && http://www.tuicool.com
2016-01-09 23:22:59
691
原创 自定义的右侧弹出筛选框
工作中用到一个右侧弹出的筛选框,自己写了一个,有2个代理方法回调确认和取消,记录一下,如果后面要用就直接拿来用 .h 文件 #import @protocol categorizeSiftDelegate; @interface categorizeSiftView : UIView @property(nonatomic ,weak)idcategorizeSif
2015-05-14 16:33:12
2759
原创 基于高德地图SDK进行搜索
高德地图SDK使用地址http://lbs.amap.com/ 地图设置 #define GDMAPKEY @"key" #import "ViewController.h" #import #import #import "ZVAnnotation.h" #import "ZVLeftCalloutView.h" @interface ViewCo
2015-05-14 11:57:56
1211
原创 学习context后自定义虚线圆角按钮,举一反三,其他控件也可修改
.h文件 #import @interface dashRoundCornerBtn : UIButton @property(nonatomic ,retain)UIColor *lineColor;///线的颜色 缺省:蓝色 @property(nonatomic ,assign)float lineWidth;///线宽 缺省:1 @prope
2015-05-14 10:54:22
564
转载 CGContext研究
CGContextRef context = UIGraphicsGetCurrentContext(); //设置上下文 //画一条线 CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor);//线条颜色 CGContextSetLineWidth(context,
2015-05-14 09:00:57
426
转载 CGContext的基本认识
CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文 CGContextMoveToPoint 开始画线 CGContextAddLineToPoint 画直线 CGContextAddEllipseInRect 画一椭圆 CGContextSetLineCap 设置线条终点形状 CG
2015-05-14 08:43:12
339
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅