在一个应用里,点击一个按钮,跳转到另外一个应用
2015-10-10 16:41
330 查看
- (void)jumpToAnotherApp {
UIApplication *app = [UIApplication sharedApplication];
NSURL *AnotherAppBaseURL = [NSURL URLWithString:@"Xxxx://"];
if (![app canOpenURL:AnotherAppBaseURL]) {
return;
}
[app openURL:[NSURL URLWithString:@"Xxxx://xxxxxxxx"]];
}
关于URL Schemes在这里找
UIApplication *app = [UIApplication sharedApplication];
NSURL *AnotherAppBaseURL = [NSURL URLWithString:@"Xxxx://"];
if (![app canOpenURL:AnotherAppBaseURL]) {
return;
}
[app openURL:[NSURL URLWithString:@"Xxxx://xxxxxxxx"]];
}
关于URL Schemes在这里找
相关文章推荐
- 这是个重要日子
- easyui datagrid中使用combobox方法
- C#学习日记19----引用类型 之 委托(Delegate) 类型
- jni 基础知识
- UILaunchImages
- JDK 安装学习
- JAVA反射获取属性注解,类方法
- ni null 的区别
- IT团队管理
- Generate PDF in Sourcing through concurrent request
- #ifdef _cplusplus
- mac 使用安装 chardet
- linux下gdb单步调试
- PHP大小写:函数名和类名不区分,变量名区分
- PHP学习笔记(06)—— 数组
- SSH所需的JAR包
- GLSL学习笔记
- Django学习——开发你的第一个Django应用1
- codeforces 584A
- 软件测试面试题 - 怎么测电梯?(测杯子/椅子/雨伞/电话)