摘要:
参考网址:http://blog.csdn.net/lovenjoe/article/details/7484217天牛 感谢作者的硕果在Iphone上有两种读取图片数据的简单方法:UIImageJPEGRepresentation和UIImagePNGRepresentation.UIImageJPEGRepresentation函数需要两个参数:图片的引用和压缩系数.而UIImagePNGRepresentation只需要图片引用作为参数.通过在实际使用过程中,比较发现: UIImagePNGRepresentation(UIImage* image) 要比UIImageJPEGRepre 阅读全文
posted @ 2013-09-04 16:00
天牛
阅读(709)
评论(0)
推荐(0)
摘要:
本文转载至:http://www.cnblogs.com/pengyingh/articles/2350345.html天牛 感谢原创作者的硕果//file文件操作NSFileManager常见的NSFileManager文件的方法:-(BOOL)contentsAtPath:path 从文件中读取数据-(BOOL)createFileAtPath:path contents:(BOOL)data attributes:attr 向一个文件写入数据-(BOOL)removeFileAtPath: path handler: handler 删除一个文件-(BOOL)move... 阅读全文
posted @ 2013-09-04 15:54
天牛
阅读(306)
评论(0)
推荐(0)
摘要:
本文转载至:http://blog.csdn.net/longzs/article/details/8373586从 iphone 的 照片库中选取的图片,由于 系统不能返回其文件的具体路径,所以这时要用到 ALAssetsLibrary代码如下: ALAssetsLibrary* alLibrary = [[ALAssetsLibrary alloc] init]; __block float fileMB = 0.0; [alLibrary assetForURL:[info objectForKey:UIImagePickerControllerReferenceURL] resultB 阅读全文
posted @ 2013-09-04 15:50
天牛
阅读(624)
评论(0)
推荐(0)

浙公网安备 33010602011771号