如何截取当我打开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
这在iOS上是不可能的,您只能在代码中创建自己的窗口/应用程序,否则用户必须使用手机上的按钮进行操作。
您可以使用replaykit2记录屏幕,如wwdc session https://developer.apple.com/videos/play/wwdc2017/606/
你可以试试这个需要