Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 14, 2009, 05:50 AM   #1
sandhya.rai
macrumors newbie
 
Join Date: Jan 2009
How to save an image in application sandbox

Hii,

I want to know how to edit and save the particular image from photo gallery to application sandbox and how to read the images too.
I got stuck at this point

thanks in advance
sandhya.rai is offline   0 Reply With Quote
Old Apr 14, 2009, 04:24 PM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
Look at UIImageJPEGRepresentation() and UIImagePNGRepresentation()

and then once you have the NSData, you can writeToFile:atomically:

To get the path to where you can save it, use NSSearchPathForDirectoriesInDomains()
kainjow is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
good application I can save Word Documents ehud42tlv iPhone and iPod touch Apps 3 May 8, 2014 09:14 PM
New ios just couldn't save image in camera roll novetan iOS 7 4 Oct 26, 2013 12:19 AM
sandbox an app on a disk image? brijazz OS X 4 Jul 7, 2013 08:09 AM
Resolved: add timestamp on top of image and save as new image straber iPhone/iPad Programming 4 Mar 18, 2013 02:07 PM
automator: how to save workflow as application G0meZ Mac OS X 10.7 Lion 0 Nov 4, 2012 12:18 PM

Forum Jump

All times are GMT -5. The time now is 05:48 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC