NimbleKit - fast iOS app development

Is there an actual "Documents" folder?

Ask questions and share your skills here

Is there an actual "Documents" folder?

Postby Eviserator » Sun May 29, 2011 11:01 pm

The NKImage.saveToDocuments(filename) does it create a directory named Documents?
Skip Potter, Live a mobile life...
web: http://www.pottertech.com
NK Registered: U797426801
User avatar
Eviserator
NimbleKit Guru
 
Posts: 294
Joined: Sun Jan 24, 2010 7:59 am
Location: Woodbridge, Virginia

Re: Is there an actual "Documents" folder?

Postby paolo26670 » Sun May 29, 2011 11:13 pm

No, the Documents folder is your app's private area into iPhone, and It is used by the app to store files. (ie. saveToDocuments function)

That is the space where the sqlite files are copied during the first access so it can be used inside your app.

everything you save is stored there.. so you can access it by name. You can't build subfolder into Documents..

My english is not so good, I hope everything is clear for you, you can find many other posts in the forum..

P
paolo26670
 
Posts: 66
Joined: Fri Aug 13, 2010 12:38 pm

Re: Is there an actual "Documents" folder?

Postby Big-O » Tue May 31, 2011 5:03 pm

If you're wanting to access it you can usually get to it with relative path names. It sits one level above where your main.html file is so if you have a file called myImage.png that you've downloaded to your documents you can do this:

Code: Select all
<img src="../myImage.png" />
-- Big-O
-- Nimblekit Guru, Web Developer, Hopeless Geek

I do freelance!
http://realisticweb.com
User avatar
Big-O
NimbleKit Guru
 
Posts: 1231
Joined: Thu Sep 24, 2009 4:02 am


Return to How To...

Who is online

Users browsing this forum: Google [Bot] and 2 guests