简体   繁体   中英

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).

From the documentation found here http://handleopenurl.com/scheme/twitter this should be feasible, but this code doesn't work :/ :

[[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. 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)

very strange, after removing the application, downloading it again from the appstore, it appears it works ? :O Maybe I wasn't exactly on the very last one ?! At first I thought it was because I had multiple accounts set up, but no, even with that it works now. Strange, but cool.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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