如何截取当我打开Skype,FB,Twitter时的截图,但我们的应用程序正在使用swift运行背景

问题描述 投票:0回答:2

如何截取当我打开Skype,FB或Twitter时的截图,但我们的应用程序使用swift运行后台。

Step 1: Open our app 

Step 2: Move to back ground state ,(press home button)

Step 3: Open third party app like FB,Skype,WhatsApp,Twitter and so on

        (click Skype and open it)

Step 4: Take screen shot of active window like Skype
swift uiimage screenshot uiaccessibility
2个回答
0
投票

这在iOS上是不可能的,您只能在代码中创建自己的窗口/应用程序,否则用户必须使用手机上的按钮进行操作。


0
投票

您可以使用replaykit2记录屏幕,如wwdc session https://developer.apple.com/videos/play/wwdc2017/606/

你可以试试这个需要

© www.soinside.com 2019 - 2024. All rights reserved.