UIImage overlay with rotation
===

I have an UIImage from a QRCode Generator and want to add our logo to it.
The logo is an PNG file I'm adding into the project.

Now I'm trying to rotate the logo (as UIImage) by 90 degrees counterclockwise and add it at a specific point into the QRCode.

I nearly tried everything I found on the web. But nothing worked. I tried to rotate the UIImage, I tried rotating the UIImages layer and also tried to rotate the CGContextReg itself.

    CGAffineTransform transform1 = CGAffineTransformMakeRotation(M_PI_2);
    CGContextConcatCTM(UIGraphicsGetCurrentContext(), transform1);

    UIImage *logoImage = [UIImage imageNamed:@"logo.png"];
    [logoImage drawInRect:CGRectMake(imagePartSize05, (imageFullSize / 2) - (imagePartSize90 / 2), imagePartSize90, imagePartSize90)];

Can anyone present a good and really working solution for this problem?! I don't get it… Seems as I can't see the wood for the trees anymore :(