- 博客(6)
- 收藏
- 关注
原创 CGContext画线
1 前言 得到图形环境,然后用 CGContextMoveToPoint 和 CGContextAddLineToPoint 函数来画线。 2 代码实例 ZYViewControllerView.m [plain] - (void)drawRect:(CGRect)rect{ [self drawRooftopAtTopPointof:CGPointMa
2014-03-26 20:12:34
933
原创 Face++ 第三方类库的使用文档
Face++主要实现人脸的扫描,定位五官位置。判断微笑程度,年龄等。 实现人脸识别等。 下载地址:http://www.faceplusplus.com.cn 以下是对此类库的使用笔记 // // RootViewController.m // FacePlusPlusDemo_and_SDK // // Created by lihao
2014-03-26 20:10:07
6770
原创 OC中的SQLite3使用
获取Bandle数据库至沙盒中 // // DB.h // LocalStorage // // Created by LiHao on 14-1-10. // Copyright (c) 2014年 LiHao. All rights reserved. // #import #import //库文件只能import @interface DB : NSObject +(
2014-01-11 11:08:46
3017
原创 UIImage NSData转换
-(void)writeButtonAction:(id)sender{ NSString * path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString * newPath = [NSString stringW
2014-01-10 15:07:32
785
原创 Objective-C NSString、NSArray、NSDictionary、NSData 存取至Document
//-(void)writeButtonAction:(id)sender{// //获得沙盒路径// NSArray * paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);// //NSDocumentDirectory documents文件夹// // NSUserD
2014-01-10 14:09:07
1001
原创 添加一个能够自适应字数的UILabel对象到ScrollView
NSString * value = _currentBook.content; UILabel * aLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];//设置初始大小 aLabel.text = value; [aLabel setNumberOfLines:0];
2014-01-08 22:51:22
1112
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人