如何向 iPhone 应用程序添加订阅 YouTube 频道的按钮?
我尝试使用:
-(void)subscribe:(id)sender
{
NSString* str = [NSString stringWithFormat:@"%@%@",@"http://www.youtube.com/subscription_center?add_user=",YouTubeUserName];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}
但这显示了一个 Youtube 屏幕,其中我有一个登录/登录按钮。按下登录时会导致 404 页面未找到错误。
有什么建议么?
谢谢