繁体   English   中英

使用IBAction从我的应用程序中打开本机Twitter应用程序

[英]Open native Twitter App from my Application using IBAction

我想将natvie Twitter应用程序实现到我的iOS应用程序中。 我已经通过使用URL Schemes在Facebook上完成了这项工作。 但我无法为Twitter找到这样的东西。

对于Facebook,我用过:

-(IBAction)facebook:(id)sender {
       [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://"]];
}

但是当我尝试使用时

@"Twitter" or @"twitter" or @"tw"

什么都没发生。 如果你们能帮助我,那会很棒。 我没有在Interweb中找到任何东西:/如果有类似的东西请:)

提前致谢 :)

你试过了吗:

twitter://

例如:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"twitter://user?screen_name=username"]];

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM