UIWebView 中的 3D 变换未使用“renderInContext”正确捕获;
我刚刚开始使用 iOS 版的 Objective-C。我创建了一个简单的应用程序,它位于 UIWebView
中,根据用户输入生成图像,并且需要允许用户在在线图库中捕获和共享他们的创作。我创建了一个捕获 UIWebView
图像的方法。我现在面前没有代码,但它与 如何以编程方式截取屏幕截图以及其他在线资源,如有需要,我稍后会上传。
我遇到的问题是,我的整个应用程序依赖 UIWebView
中的 CSS3 3D 转换来创建图像,并且当生成屏幕截图时,转换似乎全部被展平。我的理解是,renderInContext:
应该完全按照向用户显示的方式显示 UIWebView
,但事实并非如此。有谁知道为什么会这么冷,或者如何解决它?
我真的尝试过对这个问题进行研究,我能找到的最接近的是这个未回答的问题: UIWebView 屏幕截图上的灰色框。
I am just starting out with Objective-C for iOS. I've created a simple app that lives in a UIWebView
, generates imagery based on user input, and needs to allow users to capture and share their creations in an online gallery. I have made a method that captures an image of the UIWebView
. I don't have my code in front of me right now, but it's similar to the code in How to take a screenshot programmatically and other sources online, and I'll upload it later if necessary.
The trouble I'm having is that my entire app relies on CSS3 3D transforms within the UIWebView
to create the imagery, and when the screenshot is generated, the transforms appear to all be flattened. My understanding was that renderInContext:
was supposed to show the UIWebView
exactly as it appears to the user, but that is not what's happening. Anyone know why this cold be, or how to get around it?
I've really tried to do my research on this one, and the closest thing I could find was this unanswered question: Gray box on UIWebView Screenshot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论