//截屏
CGSize size = CGSizeMake(VIEW_WIDTH, 320);
UIGraphicsBeginImageContextWithOptions(size, YES, 0.0f);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
//放入相册
UIImageWriteToSavedPhotosAlbum(img, self, nil, nil);