+(UIImage *)snapshot:(UIView *)viewit
{io
UIGraphicsBeginImageContextWithOptions(view.bounds.size,YES,0);date
[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES];im
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();view
UIGraphicsEndImageContext();vi
return image;return
}ps