【发布时间】:2012-06-25 03:38:16
【问题描述】:
我正在使用此代码在 iOS 5.0 应用上的应用中截屏:
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
这是为将提交到 App Store 的应用程序截屏的可接受方式吗?我听说其他应用程序因截屏而被拒绝,所以我想确保这是正确的。
【问题讨论】:
-
只是截图并不会让他们拒绝该应用程序。它是您放置它的框架。 [这里][1] 有一篇精彩的文章。 [1]:iostipsntricks.wordpress.com/2011/05/12/…
-
我过去用这段代码截图,苹果没有拒绝该应用。
标签: ios screenshot