Save UIImage as file

        UIImage * img = [CVNamedIcon iconNamed:@”Forums”];

        // Create path.

        NSData* imageData = UIImageJPEGRepresentation(img, 1.0);

        [imageData writeToFile:@”/Users/developer/Desktop/customImageFilename2.jpg” atomically:NO];

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s