diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-04-15 11:27:37 -0400 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-04-15 11:27:37 -0400 |
commit | 70bb318e7503ca136608d5632431793405bbab64 (patch) | |
tree | 7915d53915ec57172c268fd1390234447bb982ff /ios | |
parent | 79d34115d05a6bffadd3568044187f8bc8ed7519 (diff) | |
download | qtlocation-mapboxgl-70bb318e7503ca136608d5632431793405bbab64.tar.gz |
update activity indicator on ios
Diffstat (limited to 'ios')
-rw-r--r-- | ios/MBXViewController.mm | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm index 2a0f64849a..a951632f37 100644 --- a/ios/MBXViewController.mm +++ b/ios/MBXViewController.mm @@ -71,7 +71,6 @@ MBXViewController *view = nullptr; map->loadSettings(); [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateRender:) name:MBXNeedsRenderNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateNetworkActivity:) name:MBXUpdateActivityNotification object:nil]; } @@ -159,14 +158,6 @@ MBXViewController *view = nullptr; self.paused = NO; } -- (void)updateNetworkActivity:(NSNotification *)notification -{ - [[NSURLSession sharedSession] getTasksWithCompletionHandler:^(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks) - { - [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:([downloadTasks count] > 0)]; - }]; -} - #pragma mark - Rendering delegates - (void)viewWillLayoutSubviews |