As MSU_Budog already mentioned, u just add a label at an imageView. Then you pass the imageView to this method:
- (UIImage *)getScreenShotFromView:(UIView*)view
{
UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0.0);
[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
and save the image or replace the image in the imageView with the image or do whatever you want with the new image.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…