我正在开发iphone应用程序,我必须合并三个图像并使它们成为单个图像.我的意思是说我有一个背景图像,一个标题图像和较低的图像,我需要将所有这些组合成一个单一的图像,所以我可以使用它发布到Facebook.谢谢.
*编辑* 我知道两个图像的代码,但我如何使用它为三个图像:
UIGraphicsBeginImageContext(saveView.bounds.size);
[saveView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *finalImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Run Code Online (Sandbox Code Playgroud)