浏览代码

Dropbox: fix incorrect toolbar style when view is displayed repeatedly

Felix Paul Kühne 12 年之前
父节点
当前提交
b358eb1efc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AspenProject/VLCDropboxTableViewController.m

+ 1 - 1
AspenProject/VLCDropboxTableViewController.m

@@ -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.toolbar.barStyle = UIBarStyleBlack;
     [self _showProgressInToolbar:NO];
 
     _activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
@@ -86,6 +85,7 @@
 - (void)viewWillAppear:(BOOL)animated
 {
     self.navigationController.toolbarHidden = NO;
+    self.navigationController.toolbar.barStyle = UIBarStyleBlack;
     [self updateViewAfterSessionChange];
     [super viewWillAppear:animated];
 }