标签:
http://blog.csdn.net/ba_jie/article/details/6884818
原文地址:http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
定义结束,就可以使用下面的模式来发送一个URL:
myapp://
myapp://some/path/here
myapp://?foo=1&bar=2
myapp://some/path/here?foo=1&bar=2
然后直接
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"myapp://item.taobao.com/item.htm?id=%@", itemId]];
[[UIApplication sharedApplication] openURL:url
获取在浏览器中输入:
myapp://text
标签:
原文地址:http://www.cnblogs.com/handsomeBoys/p/5499080.html