我正在上的Xcode 6.1.1和應用程序,並希望有一個鏈接,您可以到https://www.instagram.com/naturee/我如何分享instagram用戶名?
我加了這一點:
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的錯誤,不是可以在這裏找到答案引述...... –
你有一個替代的代碼? – Siramghos
不,這看起來不錯,但它可能是Instagram處理URL錯誤。 –