Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
restoring default action button on popupvc (iPad) when all popups hav…
Browse files Browse the repository at this point in the history
…e been loaded, otherwise it would not be possible to start editing
  • Loading branch information
dg0yal committed Mar 8, 2014
1 parent 79a0039 commit 34691df
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PopupSample/PopupSample/PopupSampleViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,16 @@ - (void)webMap:(AGSWebMap *)webMap

}
}

- (void) webMap:(AGSWebMap *)webMap didFinishFetchingPopupsForExtent:(AGSEnvelope *)extent{
if(self.popupVC){
if ([[AGSDevice currentDevice] isIPad])
if ([[AGSDevice currentDevice] isIPad]){
[self.activityIndicator stopAnimating];
else
self.popupVC.actionButton = self.popupVC.defaultActionButton;
}
else {
self.mapView.callout.detail = @"";
}

}else{
[self.activityIndicator stopAnimating];
Expand Down

0 comments on commit 34691df

Please sign in to comment.