加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

objective-c – 使用IBAction从我的应用程序中打开本机Twitter应

发布时间:2020-12-14 18:57:36 所属栏目:百科 来源:网络整理
导读:我想将natvie Twitter应用程序实现到我的iOS应用程序中. 我已经通过使用URL Schemes在Facebook上完成了这项工作.但我无法为Twitter找到这样的东西. 对于Facebook,我用过: -(IBAction)facebook:(id)sender { [[UIApplication sharedApplication] openURL:[NS
我想将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"]];

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读