Commit cbbf7d10 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Dropbox: fix disappearing toolbar on repeated displays

parent d2f6aefd
......@@ -68,7 +68,6 @@
_downloadingBarLabel = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DOWNLOADING",@"") style:UIBarButtonItemStylePlain target:nil action:nil];
[_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
self.navigationController.toolbarHidden = NO;
self.navigationController.toolbar.barStyle = UIBarStyleBlack;
[self _showProgressInToolbar:NO];
......@@ -84,6 +83,18 @@
[self.view addSubview:_activityIndicator];
}
- (void)viewWillAppear:(BOOL)animated
{
self.navigationController.toolbarHidden = NO;
[super viewWillAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated
{
self.navigationController.toolbarHidden = YES;
[super viewWillDisappear:animated];
}
- (void)_showProgressInToolbar:(BOOL)value
{
if (!value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment