Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-16-2011, 02:07 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 3
amsprt is on a distinguished road
Default Touch to save image to Photo Roll?

Hey Guys,

I am brand new to this coding thing. Forty-Five years old and trying to learn.

I'm trying to build a scrolling photo album app. This part I have pretty much conquered. I'm able to get the app on my phone and scroll though the images with no warnings.

The next thing I want to add is the ability for the user to save an image for use as their Wallpaper or to email the image.

Again, very new to this so please if you can help, be as detailed as possible.

Thanks!
amsprt is offline   Reply With Quote
Old 02-16-2011, 02:20 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

You can use UIImageWriteToSavedPhotosAlbum to save the photo, but you can email it without saving using MFMailComposeViewController.
baja_yu is offline   Reply With Quote
Old 02-16-2011, 07:28 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 3
amsprt is on a distinguished road
Default

Thanks! While I'm sure that will work, I have no idea as to how to implement. Could you help with a code sample and where it should be placed? Again, still trying to learn the basics. Just got Xcode 3 days ago.

Thanks again!
amsprt is offline   Reply With Quote
Old 02-16-2011, 07:47 PM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

There's sample code in the documentation that will show you how to use MFMailComposeViewController.

A quick search on the forum will give you samples for UIImageWriteToSavedPhotosAlbum too. In simplest terms you can just pass it a UIImage object UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil);
As for where to call it, I can't say, depends on your app, but you call it at the point where you want to save the image.
baja_yu is offline   Reply With Quote
Reply

Bookmarks

Tags
camera, image, photo, save

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 371
10 members and 361 guests
cpsclicker, Error404, gmarro, jeroenkeij, Kirkout, Music Man, PavelMik, teebee74, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,666
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cpsclicker
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:06 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0