- 博客(4)
- 收藏
- 关注
原创 数据存储笔记
获取沙盒目录(document)NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomainMask, YES) lastObject];获取缓存路径(cache)NSString *path = [NSSearchPathForDirectoriesInDomains(NSC
2015-12-08 17:26:03
248
原创 文章标题
之前已经有HomeViewController中放置一个tableView。要在tableViewCell中添加collectionView。 1,tableViewCell.xib中拖拽一个CollectionView。 2,UICollectionDataSource,UICollectionDelegate交给tableViewCell 3,collectionView拖线给tableVi
2015-11-04 09:45:15
194
转载 获取图片中某点或区域颜色
- (UIColor *) getPixelColorAtLocation:(CGPoint)point { UIColor* color = nil; // NSLog(@"width======%f,height======%f",demoImage.size.width,demoImage.size.height); CGImageRef inImage = demoIm
2015-10-20 14:52:00
2223
原创 IOS相机使用学习笔记
记录IOS相机使用 UIImagePickerController使用 一、.h中加入delegate<UIImagePickerControllerDelegate>二、实现事件,这里一button点击事件为例//判断是否支持相机(有不支持相机的设备,或者模拟器) //创建图片选择器 UIImagePickerController *imagePicker = [[UIImagePic
2015-10-20 13:35:16
264
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人