Create a ActionSheet like you have added in image.
And for all the applications in the list like GoogleMaps,Maps,Waze
do the following on click..
BOOL canHandle = [[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"comgooglemaps:"]];
if (canHandle) {
UIApplication.shared.openURL(URL(string:
"comgooglemaps://?center=(self.location.coordinate.latitude),(self.location.coordinate.longitude)&zoom=14&views=traffic&q=(self.location.coordinate.latitude),(self.location.coordinate.longitude)")!
} else {
//show alert to install googlemaps
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…