Take screenshot on iOS devices with nice interface. Can take status bar. No private API.
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
OTScreenshotHelper
OTScreenshotHelperDemo.xcodeproj
OTScreenshotHelperDemo
Screenshots readme added Aug 13, 2013
.gitignore
README.md

README.md

OTScreenshotHelper

Take screenshot on iOS devices with nice interface. Can snapshot status bar. No private API.

screenshot

Features

  • Take screen shot with or without status bar.
  • You can specific a screenshot rect or orientaition.
  • Great performance: single graphic context per each screenshot.
  • Supports iOS 4.3 - iOS 7.0, supports SDK6 - SDK7. Using ARC.
  • Simple interface:
//Get the screenshot of a view.
+ (UIImage *)screenshotOfView:(UIView *)view;

//Get the screenshot, image rotate to status bar's current interface orientation. With status bar.
+ (UIImage *)screenshot;

//Get the screenshot, image rotate to status bar's current interface orientation.
+ (UIImage *)screenshotWithStatusBar:(BOOL)withStatusBar;

//Get the screenshot with rect, image rotate to status bar's current interface orientation.
+ (UIImage *)screenshotWithStatusBar:(BOOL)withStatusBar rect:(CGRect)rect;

//Get the screenshot with rect, you can specific a interface orientation.
+ (UIImage *)screenshotWithStatusBar:(BOOL)withStatusBar rect:(CGRect)rect orientation:(UIInterfaceOrientation)o;

Lisence

MIT.