Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
d6ff5422
Commit
d6ff5422
authored
May 24, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dropbox: add button to go up in the folder hierachy to the parent folder
parent
03267b6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
AspenProject/VLCDropboxTableViewController.m
AspenProject/VLCDropboxTableViewController.m
+10
-0
No files found.
AspenProject/VLCDropboxTableViewController.m
View file @
d6ff5422
...
...
@@ -44,6 +44,10 @@
UIBarButtonItem
*
addButton
=
[[
UIBarButtonItem
alloc
]
initWithTitle
:
NSLocalizedString
(
@"BUTTON_DONE"
,
@""
)
style
:
UIBarButtonItemStyleDone
target
:
self
action
:
@selector
(
dismiss
:
)];
self
.
navigationItem
.
rightBarButtonItem
=
addButton
;
UIBarButtonItem
*
backButton
=
[[
UIBarButtonItem
alloc
]
initWithTitle
:
@".."
style
:
UIBarButtonItemStyleBordered
target
:
self
action
:
@selector
(
folderUp
:
)];
self
.
navigationItem
.
leftBarButtonItem
=
backButton
;
self
.
navigationItem
.
titleView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"dropbox-white"
]];
self
.
tableView
.
rowHeight
=
[
VLCDropboxTableViewCell
heightOfCell
];
...
...
@@ -60,6 +64,12 @@
[
self
.
navigationController
dismissModalViewControllerAnimated
:
YES
];
}
-
(
IBAction
)
folderUp
:(
id
)
sender
{
_currentPath
=
[
_currentPath
stringByDeletingLastPathComponent
];
[
_dropboxController
requestDirectoryListingAtPath
:
_currentPath
];
}
#pragma mark - Table view data source
-
(
NSInteger
)
numberOfSectionsInTableView
:(
UITableView
*
)
tableView
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment