【发布时间】:2016-02-18 15:40:37
【问题描述】:
我正在使用 Xcode 6.1.1 和应用程序,并希望有一个链接可以将您带到 https://www.instagram.com/naturee/
我添加了这个:
NSURL *instagramURL = [NSURL URLWithString:@"instagram://user?username=naturee"];
if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) {
[[UIApplication sharedApplication] openURL:instagramURL];
}
表格
https://www.instagram.com/developer/mobile-sharing/iphone-hooks/
但它会将我带到 Instagram 应用程序而不是用户名!
有人知道怎么做吗?
【问题讨论】:
-
可能是 Instagram 的错误,在这里无法回答...
-
你有替代代码吗?
-
不。这看起来是对的,但可能是 Instagram 处理了错误的 URL。
-
我不..明白:)
-
所以很可能是 Instagram 的 bug,你会怎么做?
标签: ios iphone xcode instagram