Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The UIApplication class sports a method named _dumpScreenContents that can be used to make a screenshot on the iPhone. The method causes a file named /tmp/foo_0.png to be written to disk.
To dump the screen contents from within your application, make sure to call the _dumpScreenContents method from your UIApplication class: