Take screenshot of the window

后端 未结 2 1119
遇见更好的自我
遇见更好的自我 2021-01-16 05:32

I\'m using this method to take a screenshot of my app:

+ (NSData*)TakeScreenshot 
{
    // Create a graphics context with the target size
    // On iOS 4 and         


        
2条回答
  •  天命终不由人
    2021-01-16 06:31

    There is no public method which allows you to take a screenshot of the entire screen (i.e. with the status bar). There is a private method though UIGetScreenImage which allows you to use achieve this functionality. But, since it's a private method you will get your app rejected if you submit it to the App Store.

提交回复
热议问题