在第三个 imageview 上添加了 2 个 imageview 现在想要将第三个 imageviews 图像转换为实际图像
我有 3 个图像视图,通过一键触摸,我已将这些图像添加到第三个图像视图中,完成了类似的操作
-(void) loadView
{
[super loadView];
[self.view addSubview:wormimage];
[self.view addSubview:appleimage];
[self.view addSubview:finalimage];
[self.view addSubview:saveButton];
[self.view addSubview:btn];
[appleimage addSubview:wormimage];
}
,这是按钮触摸方法
-(void) addImage
{
[finalimage addSubview:appleimage];
}
现在我想知道的是,第三个图像视图包含 2 个图像视图(appleimage 和 worm)图像) 我不知道的是如何将其转换为整个图像本身,必须使用什么才能做到这一点,按钮触摸的最终输出必须是图像,图像的扩展名并不重要。
如何将整个视图转换为图像并将其保存到 iPhone 的图库中?
I am having 3 image views and on one button touch I have added those images to the 3rd image view done something like this
-(void) loadView
{
[super loadView];
[self.view addSubview:wormimage];
[self.view addSubview:appleimage];
[self.view addSubview:finalimage];
[self.view addSubview:saveButton];
[self.view addSubview:btn];
[appleimage addSubview:wormimage];
}
and this is the button touch method
-(void) addImage
{
[finalimage addSubview:appleimage];
}
Now what I want know is that the 3rd imageview contains 2 image view (appleimage and worm image)
what I don't know is how this can be converted into an entire image itself, what has to be used in order to do that, the final output on the button touch must be an image, extension of the image doesn't matter.
How can I convert the entire view into an image and save them into the gallery of the iPhone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个:
Try this: