简体   繁体   English

在iPhone上使用twitter:// tweetie://定制方案将Twitter应用程序打开到特定的用户配置文件

[英]Using twitter:// tweetie:// custom scheme on iPhone to open twitter application to a specific user profile

I thought I was familiar with the applications custom schemes used with iOS to trigger applications from my app but I'm unable to use the ones that seems to be provided by the official twitter app (aka tweetie). 我以为自己熟悉与iOS一起使用的应用程序自定义方案,以从我的应用程序触发应用程序,但是我无法使用似乎由官方twitter应用程序(又名tweetie)提供的应用程序自定义方案。

I'm trying to open the twitter application directly to a predefined user profile. 我正在尝试直接将Twitter应用程序打开到预定义的用户配置文件。

From the documentation found here http://handleopenurl.com/scheme/twitter this should be feasible, but this code doesn't work :/ : http://handleopenurl.com/scheme/twitter上找到的文档中,这应该是可行的,但是此代码不起作用:/:

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

I also tried with tweetie:// but the same happens : the application launches, but does not "jump" to the given user profile. 我也尝试使用tweetie://但发生了同样的事情:应用程序启动,但没有“跳转”到给定的用户配置文件。 Actually, if I try any of the other examples, I don't get anything working :( 实际上,如果我尝试其他任何示例,那么我什么都没有用:(

twitter://messages
twitter://mentions
none of them are working :( 他们都没有工作:(

Any idea why none of those invocations are working ? 知道为什么这些调用都不起作用吗? Thanks. 谢谢。

NB:I'm using the last version of the twitter application under iOS 3.1.3 (iphone 3G) 注意:我正在使用iOS 3.1.3(iPhone 3G)下的Twitter应用程序的最新版本

very strange, after removing the application, downloading it again from the appstore, it appears it works ? 非常奇怪,删除应用程序后,再次从appstore下载它,看来可以正常工作吗? :O Maybe I wasn't exactly on the very last one ?! :O也许我不完全是最后一个? At first I thought it was because I had multiple accounts set up, but no, even with that it works now. 起初我以为是因为我设置了多个帐户,但即使现在可以使用,也没有。 Strange, but cool. 奇怪,但是很酷。

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

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