xiaoduan / ios_file_browser Goto Github PK
View Code? Open in Web Editor NEWThis project forked from pixelrevision/ios_file_browser
A file browser for an application's documents directory in ios
This project forked from pixelrevision/ios_file_browser
A file browser for an application's documents directory in ios
------------------------------------------------------------------------------ __ __ __ __ .-----.|__|.--.--..-----.| |.----..-----..--.--.|__|.-----.|__|.-----..-----. | _ || ||_ _|| -__|| || _|| -__|| | || ||__ --|| || _ || | | __||__||__.__||_____||__||__| |_____| \___/ |__||_____||__||_____||__|__| |__| ------------------------------------------------------------------------------ ****************************************************************************** IOS File Browser ****************************************************************************** What is it? A file browser for IOS to make saving and loading documents a little more like the desktop. Setup: 1. Drag the contents of the "source" folder into your project and check "copy items into destination group's folder". 2. Import "PXRFileBrowser.h" Usage: The methods to use it are are: - (void)saveFile:(NSData*)file withType:(NSString*)fileType andDefaultFileName:(NSString*)defaultName; - (void)browseForFileWithType:(NSString*)fileType; - (void)browseForFileWithTypes:(NSArray*)ft; The delegate callbacks are: - (void)fileBrowserFinishedPickingFile:(NSData*)file withName:(NSString*)fileName; - (void)fileBrowserCanceledPickingFile; - (void)fileBrowserFinishedSavingFileNamed:(NSString*)fileName; - (void)fileBrowserCanceledSavingFile:(NSData*)file; For saving files call save file with an NSData object, it's file extention and a default name to appear in the file name field. For loading files pass either an NSArray or string of the file types you want to be able to load. Set the delegate. This will notify your class when file saving/loading has been completed. Present the file browser as a modal view controller. Release the file browser. There are examples for iphone and ipad in the "examples" folder. Static Library Note: If you're using the static library libios_file_browser.a in your project, you'll need to add the linker flag "-all_load" to the "other linker flags" option in your application's build settings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.