Discussion Forums  >  Images, Documents, File Locations

Replies: 10    Views: 259

Fox562
Lost but trying
Profile
Posts: 5
Reg: Feb 09, 2013
San Pedro, CA
5,650
02/14/13 05:03 PM (12 years ago)

UIFilesharingEnabled

How do I add this to the plist file to make my PDF's, and word docs changeable in itunes
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/14/13 05:21 PM (12 years ago)
I'm not sure if I understand the question entirely... But most BT Plugins have the 'dataURL' json element. If you don't use a local file, and place your document or image (or PDF or whatever) on a server somewhere (http://www.myserver.com/path/to/resource.xxx), you can use the dataURL to 'point' to the document rather than include them in your binary. Once your binary is compiled, nothing is going to change with respect to 'embedded' documents. That ship has sailed ;) However after it's compiled, and you have a document using a 'dataURL', the app will download the document and 'cache' (store) the file in your 'app space' on the platform (iOS/Android). So, if you want to maintain fresh content after your app has been released (in either store) that capability is already built into buzztouch; we don't really have to do anything but choose which content to display, and we do that by altering the dataURL to reflect new updated content. When you make this change in the BT control panel (and publish) the user will be prompted to refresh the app data, and your new data will be downloaded and cached on the user device. Does this make sense? Hope I understood what you were asking... Cheers! -- Smug
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/14/13 05:26 PM (12 years ago)
Hi Fox562, Maybe what your asking is the ability for file sharing from your downloaded App and share documents via iTunes. Correct? I have not used this feature yet but looks as simple as placing this in your info.plist file <key>UIFileSharingEnabled</key><true/>
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/14/13 05:38 PM (12 years ago)
Oh, ok. I didn't understand what he was asking, lol! That sounds cool, though! I'll definitely need to snoop into that for possibilities :) Cheers! -- Smug
 
Fox562
Lost but trying
Profile
Posts: 5
Reg: Feb 09, 2013
San Pedro, CA
5,650
like
02/14/13 05:40 PM (12 years ago)
-- Smug I am looking for the user to have the ability to change the PDF or Doc locally Ian what is the best way to add <key>UIFileSharingEnabled</key><true/> to the info.plist
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/14/13 05:42 PM (12 years ago)
In your Xcode Project in your Config folder you will see the info.plist file Click the + sign in the ROOT of the folder to add to it.see attached image https://dl.dropbox.com/u/39276137/UIFIleEnabled.png
 
Fox562
Lost but trying
Profile
Posts: 5
Reg: Feb 09, 2013
San Pedro, CA
5,650
like
02/14/13 06:55 PM (12 years ago)
thanks for the help
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/15/13 01:50 AM (12 years ago)
And that's it? Cool! :) Thanks Ian! Cheers! -- Smug
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
02/15/13 05:56 AM (12 years ago)
Can you guys give an example of how you would use this?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/15/13 06:46 AM (12 years ago)
There's a decent explanation here... http://www.fvalente.org/blog/2012/03/15/documents-folder-and-uifilesharing/ Cheers! -- Smug
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
02/15/13 08:20 AM (12 years ago)
Oh this is great thanks!!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.