小编Fab*_*amo的帖子

iOS-启动具有URLScheme指示的YandexMaps

是否有用于启动Yandex Maps应用程序及说明的URL方案?

我只需用几行代码即可启动Yandex Maps应用程序(如果已安装),但没有找到有关该应用程序处理的URLSchemes的文档:

NSURL *url = [NSURL URLWithString:@"yandexmaps://maps.yandex.ru/"];

if([[UIApplication sharedApplication] canOpenURL:url]){
    [[UIApplication sharedApplication] openURL:url];
}
Run Code Online (Sandbox Code Playgroud)

maps url-scheme ios directions yandex

5
推荐指数
2
解决办法
3580
查看次数

标签 统计

directions ×1

ios ×1

maps ×1

url-scheme ×1

yandex ×1