#define FILE_FOLDER(fileNmae) [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/"]stringByAppendingPathComponent:fileNmae]
UIView *UImageTotal = [[UIView alloc] initWithFrame:UTableViewShow.frame];
UImageTotal = UcollectionView.viewForBaselineLayout;
UIGraphicsBeginImageContextWithOptions(UImageTotal.bounds.size,NO, UImageTotal.layer.contentsScale);
[UImageTotal.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSData* imageData = UIImagePNGRepresentation(image);
[imageData writeToFile:FILE_FOLDER(@"ssf.png") atomically:YES];