gpt4 book ai didi

iOS 6 : Need to add an image and text to screenshot's footer

转载 作者:行者123 更新时间:2023-11-29 13:12:13 25 4
gpt4 key购买 nike

我有一个代码可以从我的 View 中截屏

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

目前,我正在四处寻找一种方法,如何将其添加到此现成图像 Logo 和文本的底部。非常感谢您的帮助,在此先感谢您。

最佳答案

你应该看看这个答案,它正在向绘图上下文添加一些文本:https://stackoverflow.com/a/6993766/662605

本质上,您可以使用 UIImagedrawInRect: 以及与链接中的代码类似的代码,将另一个图像绘制到您的绘图上下文中。

关于iOS 6 : Need to add an image and text to screenshot's footer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16967722/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com