.h文件
#import <QuartzCore/QuartzCore.h>
UIImageView *imageView;
@property (nonatomic, retain) IBOutlet UIImageView *imageView;
.m文件
UIGraphicsBeginImageCont
[imageView.layer renderInContext:UIGraphicsGetCurrentCont
UIImage *temp = UIGraphicsGetImageFromCu
UIGraphicsEndImageContex
UIImageWriteToSavedPhoto
2.保存到对应的沙盒目录中,具体代码如下:
NSArray *paths = NSSearchPathForDirectori
NSString *filePath = [[paths objectAtIndex:0] stringByAppendingPathCom
BOOL result = [UIImagePNGRepresentation
529



被折叠的 条评论
为什么被折叠?



