Like a private files app. Can we store images into a directory on the iPhone created by the app?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Can we store images input from photo library into App's documents directory?
I'm not 100% sure what you mean by "private files app", but you can. Heres some sample code to store/reload one image. Saving/Loading multiple images get kind of tricky.
This will open the library:
1 2 3 4 5 6 | local function newphoto ( event ) if (event.phase == "release") then media.show( media.PhotoLibrary, sessionComplete ) return true end end |
Beautiful! Thank you!
What about music and video? Do you think it's possible to do the same like so? media.MusicLibrary or media.VideoLibrary?
No problem. Anyway I have no idea if it will work with music or video, since I've never needed it. I wasn't even aware that Corona started supporting access to music or video libraries.
views:1266 update:2011/10/25 9:10:48
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
Adobe Recognizes Corona SDK as Mobile Gaming Technology
Making a book app?
audio loop change during playback?
Drawing part of a texture
newTextBox not wrapping?
Help understanding Memory Allocations / Low Memory events
In-app purchase - getting nowhere please help!
Follow-up question to Lua editors
Multi-threading and Corona
Helping with rotation
Making a book app?
audio loop change during playback?
Drawing part of a texture
newTextBox not wrapping?
Help understanding Memory Allocations / Low Memory events
In-app purchase - getting nowhere please help!
Follow-up question to Lua editors
Multi-threading and Corona
Helping with rotation
corona forums © 2003-2011