質問

I have a code that makes screenshot from my view

UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

Currently I am looking around for an approach how to add to the bottom of this ready image logo and text. Some help is much appreciated and thank you in advance.

役に立ちましたか?

解決

You should check out this answer, it's adding some text to a drawing context: https://stackoverflow.com/a/6993766/662605

Essentially you can use drawInRect: of UIImage with code similar to the code in the link to draw another image into your drawing context.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top