Tutorial details

Screenshots | App Code for Sale | Preview

Screenshots | iOS Tutorial

How to take and save screenshots within your app

Overview PAGE TOP

Reference: http://www.geekylemon.com/xcode-screenshots

In this tutorial i will be showing you how to take and save screenshots within your app


  • 1 Button

Saving screenshots enables the user to take a picture of the screens current state and show to friends or even upload to social site to show the progress or a feature within your app

ViewController.h PAGE TOP

#import <UIKit/UIKit.h>
#import "QuartzCore/QuartzCore.h"

@interface ViewController : UIViewController {



ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)Screenshot {
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenshotimage = UIGraphicsGetImageFromCurrentImageContext();
UIImageWriteToSavedPhotosAlbum(screenshotimage, nil, nil, nil);

Reference PAGE TOP


0 Comments Leave a comment

Please login in order to leave a comment.

Newest first

to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.