Can We Use UIGraphicsBeginImageContex?

We are writing to ask you if we can use UIGraphicsBeginImageContext in our game. Sometimes our users encounter the ads problems. But they can’t report it with the right screenshot. It is very hard to locate the problem. To solve the ads issue in our game, we figure out a new way to help users to report the problem. We plan to use UIGraphicsBeginImageContext in our game. When a user encounters the problem in game next time, they just tap a “FAQ” button in our game, and we will receive the message, which will help us to locate and solve the problem. But we’ve no idea if it is allowed in game? Please visit this link to view how it works: https://1drv.ms/v/s!AufijGV1kcrvgQMnky1IzCsUuqMR

In general we wouldn't recommend UIGraphicsBeginImageContext as we introduced the UIGraphicsRendererContext APIs to replace it, but I don't think thats your actual question – I think your actually asking how to take a screenshot correct? If so probably the most reasonable thing to do is call UIView's drawViewHierachyInRect method to draw the content in your window into a graphics context which you can then save as an image.

Hi Rincewind, thanks very much for your help. Our problem is we've no idea if we can draw the screenshot. Does this follow Apple Review rules?

Can We Use UIGraphicsBeginImageContex?
 
 
Q