First of i Add the UILable on UIImageView and then after i screenshot the UIView, the image not proper capture the UIView
You can take the screenshots of any UIView or capture any UIView and save it as an image with below code.
- (UIImage *)captureView {
//hide controls if needed
CGRect rect = [self.view bounds];
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
[self.view.layer renderInContext:context];
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;
}