iphone-common-codes-ccteam源代码 CCPhoto.m
来源:互联网 发布:安装ntfs for mac 编辑:程序博客网 时间:2024/06/16 23:44
//// CCPhoto.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import "CCPhoto.h"#import <QuartzCore/QuartzCore.h>@implementation CCPhoto// 调用系统照片库+ (UIImagePickerController *)showImagePickerView:(id)delegate imgType:(UIImagePickerControllerSourceType)imgType animated:(BOOL)animated{ UIImagePickerController *imgPickerView = [UIImagePickerController new]; if(!imgPickerView) { return nil; } imgPickerView.delegate = delegate; imgPickerView.sourceType = imgType; [delegate presentModalViewController:imgPickerView animated:animated]; [imgPickerView release]; return imgPickerView;}// 将view视图保存到照片库中+ (void)saveViewToPhotosAlbum:(UIView *)view{ UIGraphicsBeginImageContext(view.layer.bounds.size); [view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImg = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(viewImg, nil, nil, nil);}@end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCPhoto.m
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCPhoto.m
- iphone-common-codes-ccteam源代码 CCPhoto.m
- iphone-common-codes-ccteam源代码 CCPhoto.h
- iphone-common-codes-ccteam源代码 CCAddressBook.m
- iphone-common-codes-ccteam源代码 CCAutoDisappearView.m
- iphone-common-codes-ccteam源代码 CCBaseTipView.m
- iphone-common-codes-ccteam源代码 CCCALayer.m
- iphone-common-codes-ccteam源代码 CCCamera.m
- iphone-common-codes-ccteam源代码 CCCommon.m
- iphone-common-codes-ccteam源代码 CCCompile.m
- iphone-common-codes-ccteam源代码 CCConfig.m
- iphone-common-codes-ccteam源代码 CCContact.m
- iphone-common-codes-ccteam源代码 CCDelete.m
- iphone-common-codes-ccteam源代码 CCDepend.m
- iphone-common-codes-ccteam源代码 CCDylib.m
- iphone-common-codes-ccteam源代码 CCEmoji.m
- iphone-common-codes-ccteam源代码 CCEncoding.m
- iphone-common-codes-ccteam源代码 CCFile.m
- iphone-common-codes-ccteam源代码 CCFileName.m
- 2012年移动应用交互设计趋势
- ZTE AC582上网卡Linux下拨号之 所感--文档
- iphone-common-codes-ccteam源代码 CCPhoto.h
- VB6相关资源
- How to Delete an Address from the Outlook Auto-Complete List
- iphone-common-codes-ccteam源代码 CCPhoto.m
- 实现一个android的音乐播放器
- PowerDesigner使用
- Android 常用 mimeType 表
- MSVCRT strcpy以及strcat
- iphone-common-codes-ccteam源代码 CCPlayer.h
- 黑马程序员 一步一步往上爬 学习毕老师java视频第09天
- jQuery的 Load 方法
- 对收费系统的架构优化