ios - 如何以编程方式在 iPhone 应用程序中打开 LinkedIn 公司网址?

标签 ios linkedin

我想通过编程方式从我的 iPhone 应用程序向 LinkedIn 应用程序打开 LinkedIn 公司网址。我正在使用以下代码但无法正常工作请帮助我....

string = [NSString stringWithFormat:@"linkedin://company/COMPANY_ID"];

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:string]]; 

最佳答案

截至发布之日,以下内容适用于当前的 linkedIn 应用程序。

NSString *string = [NSString stringWithFormat:@"linkedin://company/%@", companyID];
NSURL *url = [NSURL URLWithString:string];
[[UIApplication sharedApplication] openURL:url];

这将打开 linkedIn 应用,提示登录(如果尚未登录)并显示给定公司 ID 的公司页面。

关于ios - 如何以编程方式在 iPhone 应用程序中打开 LinkedIn 公司网址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17466385/

相关文章:

LinkedIn 群组 API 通过 PHP 自动发帖

sharepoint - 通过linkedIn API 读取公司提要

ios - 模块化滑出容器 ViewController

ios - ITMS 90101 错误上传应用程序

ios - FIRAuthUI FriendlyPix 项目错误

html - 在我的 Linkedin 页面上衡量 SEO 的最佳方法是什么?

javascript - 为什么 linkedin 社交登录无法显示 'Please enter the following verifier on the app '

button - LinkedIn 按钮间歇性出现

ios - 通过 TeamCity 自动修改 Xcode 构建信息

ios - SWIFT 3 - CGImage 副本始终为零