Capturing screenshot on iPhone needs the QuartzCore framework.
1. Right click the Framework folder in your Xcode project.
2. Add -< Add Existing Frameworks
3. Choose the QuartzCore.framework Continue reading iPhone – Capture Screenshot Programmatically