I try this code and it save a photo but it is only 1K with nothing on it:
[code]display.setStatusBar( display.HiddenStatusBar )
local baseDir = system.DocumentsDirectory
function sessionComplete ( event )
t = event.target
local photot = display.newGroup()
photot:insert(t)
display.save(photot, os.date( “%c” )…".jpg", baseDir)
end
function newphoto ( event )
media.show( media.PhotoLibrary, sessionComplete )
return true
end
newphoto()[/code]
When I run it on my iPhone4 I can select a photo from the camrearoll but it doesn´t show right on the screen, only a small part of it in the left upper corner.
My idea is that I want to select a photo in the camera roll , get it up on the screen and save it in the system.DocumentsDirectory.
[import]uid: 5717 topic_id: 16692 reply_id: 316692[/import]