Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button for adding new file or folder? #8

Open
wtpisaac opened this issue Mar 19, 2016 · 3 comments
Open

Button for adding new file or folder? #8

wtpisaac opened this issue Mar 19, 2016 · 3 comments

Comments

@wtpisaac
Copy link

Hello.

Is there a way to add a new file or folder? Even better, is there a way to tether a custom action to a button in the FileBrowser's top bar?

Thanks!

@marmelroy
Copy link
Owner

Hey @cyanisaac, this is something I would eventually like to add.

The question is how to do it in a way that is generalised and customisable enough? Still haven't figured it out...

@wtpisaac
Copy link
Author

I'm fairly new to iOS, so this might be a terrible idea, but what I would imagine would be good is just to have it so that when you call the File Browser, you can pass in a view controller. If possible, this could be any view controller, meaning the developer of the app could customize it as much as they want.

Then, it would present the view controller from the file browser using self.presentViewController(passedInViewController) (note this could be anything from an UIViewController to an UIAlertViewController)

Then, the presenting view controller would have properties like the directory from which the "add item" button was pressed, so it could react accordingly.

Just my thoughts.

EDIT: Although if you wanted to keep it consistent, you could always make it show an action sheet with "Add Folder" and then list other options that the app passes in.

@nami13
Copy link

nami13 commented May 23, 2016

Hi, Marmeloy
I am very impressed in your FileBrowser.
I have a question.
Would you like to improve this to allow users to choose Photo/Video/Txts/... from Phone gallery?
How can I start FileBrowser from root directory?
Hope your reply.
Thank you.
Nami

** How can we go to OneUp Higher level directory? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants