-(UIImage*)captureScreenForView:(UIView*)currentView {
? ? ??UIGraphicsBeginImageContext(currentView.frame.size);
? ? ?? ? ? ? ? ?? [currentView.layer renderInContext:UIGraphicsGetCurrentContext()];
? ? ?????????? ?? UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
? ? ?? ? ? ?????? UIGraphicsEndImageContext();
? ? ??returnviewImage;
}