我试图从我自己的应用程序中打开Instagram,尝试获取标记为“brazil”的照片列表。但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];
}
提前致谢!