简体   繁体   English

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

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

I'd like to implement the natvie Twitter App into my iOS Application. 我想将natvie Twitter应用程序实现到我的iOS应用程序中。 I've already done that with Facebook by using the URL Schemes. 我已经通过使用URL Schemes在Facebook上完成了这项工作。 But I weren't able to find such thing for Twitter. 但我无法为Twitter找到这样的东西。

For Facebook I used: 对于Facebook,我用过:

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

But when I try to use 但是当我尝试使用时

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

nothing happens. 什么都没发生。 Would be great if you guys could help me out. 如果你们能帮助我,那会很棒。 I haven't found anything in the Interweb :/ If there is something just like it please :) 我没有在Interweb中找到任何东西:/如果有类似的东西请:)

Thanks in advance :) 提前致谢 :)

Did you try: 你试过了吗:

twitter://

ex: 例如:

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

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

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