/*spa
* @parma :view須要轉換的視圖圖片
* @parma:return:圖片imageget
*/im
- (UIImage *)getImageFromView:(UIView *)view{view
UIGraphicsBeginImageContext(view.bounds.size);vi
[view.layer renderInContext:UIGraphicsGetCurrentContext()];return
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();render
UIGraphicsEndImageContext();
return image;
}