我试图从我自己的应用程序中打开 Instagram,试图获取带有“巴西”标签的照片列表。但是 Instagram 没有打开。请在此处查看代码片段。
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
//Load URL
NSURL *instagramURL = [NSURL URLWithString:@"instagram://tag?name=brazil"];
if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) {
[[UIApplication sharedApplication] openURL:instagramURL];
}
NSURLRequest *instagramRequest = [NSURLRequest requestWithURL:instagramURL];
[instagramWebView loadRequest:instagramRequest];
}
提前致谢!