I'm trying to create a UIView where I add 2 UIImageView inside and create an UIImage from this. Here is the method I use, but I get a blank UIImage.
Here is the code I use :
-(UIImage*)getFinalImage{
    CGRect rect = CadreImage.frame;
    UIView *dynaView = [[UIView alloc] initWithFrame:rect];
    UIImageView *frontCadre = [[UIImageView alloc] initWithImage:TheImage];
    [dynaView addSubview:frontCadre];
    UIGraphicsBeginImageContextWithOptions(dynaView.bounds.size, dynaView.opaque, 0.0);
    [dynaView.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return img;
}
Any help would be appreciated.
Thanks.
 
    