Commit 54a41909 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Dropbox: fix activity indicator location on iPad

parent d5c2167a
......@@ -79,12 +79,6 @@
_activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
_activityIndicator.hidesWhenStopped = YES;
CGRect aiFrame = _activityIndicator.frame;
CGSize tvSize = self.tableView.frame.size;
aiFrame.origin.x = (tvSize.width - aiFrame.size.width) / 2.;
aiFrame.origin.y = (tvSize.height - aiFrame.size.height) / 2.;
_activityIndicator.frame = aiFrame;
[self.view addSubview:_activityIndicator];
}
......@@ -94,6 +88,12 @@
self.navigationController.toolbar.barStyle = UIBarStyleBlack;
[self updateViewAfterSessionChange];
[super viewWillAppear:animated];
CGRect aiFrame = _activityIndicator.frame;
CGSize tvSize = self.tableView.frame.size;
aiFrame.origin.x = (tvSize.width - aiFrame.size.width) / 2.;
aiFrame.origin.y = (tvSize.height - aiFrame.size.height) / 2.;
_activityIndicator.frame = aiFrame;
}
- (void)viewWillDisappear:(BOOL)animated
......
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