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:1270 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
相关文章
Fright Factory for Android Released! Huzzah!
Anyone here published an IPad game without a test on a device?
Ploons for iOS - Now Waiting for Review!
Mix and match Objective-C / Apple SDK and Corona / Lua, or ???
Example application will not install on my ASUS tablet
Help with coding approach
Change Radius of ball on the fly
Cannot find the Road Map
Lua online course?
Dungeon Tap - Waiting For Review - Screenshots & Info
Anyone here published an IPad game without a test on a device?
Ploons for iOS - Now Waiting for Review!
Mix and match Objective-C / Apple SDK and Corona / Lua, or ???
Example application will not install on my ASUS tablet
Help with coding approach
Change Radius of ball on the fly
Cannot find the Road Map
Lua online course?
Dungeon Tap - Waiting For Review - Screenshots & Info
corona forums © 2003-2011