我有一个应用程序,我希望能够使用自定义URL方案。我希望用户能够使用自定义URL协议打开Tweetie,但是我需要使用currentItem.link填充动态网站链接的推文。如何使用iPhone自定义URL方案
我发现这个代码,启动特威特并填充静态信息的消息:
NSString *shortened_url = @"http://your.url.com";
NSString *stringURL = [NSString stringWithFormat:@"tweetie://%@", shortened_url];
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
因此,使用上面的代码,我怎么会填充currentItem.link信息的消息?
谢谢。
其实根据一个站点,你可以在tweetie协议之后有http://。但我一直在努力让currentItem.link进入Tweetie Custom URL。 – Graeme 2010-01-06 09:25:11