Skip to content

Commit

Permalink
automatically show 100 annotations after app start
Browse files Browse the repository at this point in the history
  • Loading branch information
calimarkus committed Mar 25, 2014
1 parent d044356 commit 1162ef7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions OClusterMapView+Sample/OClusterMapView_SampleViewController.m
Expand Up @@ -36,6 +36,16 @@ - (void)viewDidLoad
}
}

- (void)viewDidAppear:(BOOL)animated;
{
[super viewDidAppear:animated];

// add first 100 annotations
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self addButtonTouchUpInside:nil];
});
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
Expand Down

0 comments on commit 1162ef7

Please sign in to comment.