从WebView跳到普通View
做网络ios应用难免要用到UIWebViewController,直接嵌入一个html页面。这种native+web的方式再很多app中都有应 用,app store就是一个,另外如淘宝iPhone客户端的支付,口碑网iPhone客户端的团购内容,等等。这种实现方式,某种程度上牺牲了一些体验,但大大 提高了开发效率,而且降低了升级成本。这种方式非常适合实现一个仍处在发展初期的功能。
但使用native+web的方式有一个最大的问题,就是从WebView向NativeView的跳转。由于进入WebView后,页面中的链接都是 web控制,所有点击都将在web框架内进行,无法返回到NativeView,给WebView的使用造成很大局限。这里介绍一下如何实现从 WebView向NativeView的跳转。
实现原理很简单,在内嵌的页面里写一个规定格式的超链接,在WebViewController里抓载入状态,判断URL是否为约定的,按照约定跳转到相应的NativeView。
具体实现,先看WebViewDelegate里的几个方法:
这四个方法分别在不同时机被调用。第一个方法在页面请求发出之前被调用,第二个和第三个方法分别再页面内容开始载入和载入完成时被调用,最后一个是载入失败时被调用。
要抓请求状态需要在第一个方法中。因为页面中所写的URL是应用开发者约定的格式,而不是HTTP请求,因此这个请求无法成功发送,那么也就不会调用到第 二和第三个方法,第四个方法用于异常处理,所以只能在第一个方法中抓请求状态。通过第一个方法的request参数,拿到request.URL,这个 URL就是我们写在WebView上的,那么WebViewController就可以根据约定,判断出要跳转的NativeView,通过 NavigationController跳转,或是实现其他逻辑。
在约定URL的时候还要注意,这个URL一定不要定义成一个HTTP请求。WebViewController就会自动处理HTTP请求,把请求发出去, 页面也会发生重新载入,而这个请求是指向NativeView的,也就是不存在与Internet上,所以页面将出现404状态。
另外,如果WebView上指向NativeView的不是一个超链接,通过javascript方式也可以实现这个功能。只要通过JS把页面跳转到之前提到过的约定格式的URL就可以了。通过JS的方式,还可以实现WebView到NativeView的自动跳转。
—— Jul. 4, 2011 ——
附送把URL拆解的代码一份
ExtString.h
ExtString.m
- <span style="padding:0px; margin:0px; color:rgb(51,153,51)">#import "ExtNSString.h"</span>
- @implementation NSString <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span>ExtNSString<span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span>
- <span style="padding:0px; margin:0px; color:rgb(51,153,51)">-</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span>NSDictionary <span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span>paramsFromURL <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- NSString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span>protocolString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self substringToIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"://"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">location</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- NSString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span>tmpString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self substringFromIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"://"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">location</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)">+</span> <span style="padding:0px; margin:0px; color:rgb(0,0,221)">3</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- NSString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span>hostString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> nil<span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">if</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,0,221)">0</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)"><</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"/"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">length</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- hostString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString substringToIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"/"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">location</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">else</span> <span style="padding:0px; margin:0px; color:rgb(177,177,0)">if</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,0,221)">0</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)"><</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"?"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">length</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- hostString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString substringToIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"?"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">location</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">else</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- hostString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> tmpString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- tmpString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self substringFromIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>hostString<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">location</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)">+</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>hostString<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">length</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- NSString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span>uriString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> @<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"/"</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">if</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,0,221)">0</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)"><</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"/"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">length</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">if</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,0,221)">0</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)"><</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"?"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">length</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- uriString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString substringToIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>tmpString rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"?"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">location</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">else</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- uriString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> tmpString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- NSMutableDictionary<span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span> pairs <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>NSMutableDictionary dictionary<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">if</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,0,221)">0</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)"><</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"?"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">length</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- NSString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span>paramString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self substringFromIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>self rangeOfString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"?"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">location</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)">+</span> <span style="padding:0px; margin:0px; color:rgb(0,0,221)">1</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- NSCharacterSet<span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span> delimiterSet <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>NSCharacterSet characterSetWithCharactersInString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"&;"</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- NSScanner<span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span> scanner <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>NSScanner alloc<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span> initWithString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>paramString<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span> autorelease<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">while</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">!</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>scanner isAtEnd<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- NSString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span> pairString <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> nil<span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>scanner scanUpToCharactersFromSet<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>delimiterSet intoString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:&</span>pairString<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>scanner scanCharactersFromSet<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>delimiterSet intoString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>NULL<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- NSArray<span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span> kvPair <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>pairString componentsSeparatedByString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>@<span style="padding:0px; margin:0px; color:rgb(255,0,0)">"="</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">if</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">(</span>kvPair.<span style="padding:0px; margin:0px; color:rgb(32,32,32)">count</span> <span style="padding:0px; margin:0px; color:rgb(51,153,51)">==</span> <span style="padding:0px; margin:0px; color:rgb(0,0,221)">2</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">)</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">{</span>
- NSString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span> key <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>kvPair objectAtIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,0,221)">0</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>
- stringByReplacingPercentEscapesUsingEncoding<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>NSUTF8StringEncoding<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- NSString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">*</span> value <span style="padding:0px; margin:0px; color:rgb(51,153,51)">=</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>kvPair objectAtIndex<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span><span style="padding:0px; margin:0px; color:rgb(0,0,221)">1</span><span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span>
- stringByReplacingPercentEscapesUsingEncoding<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>NSUTF8StringEncoding<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>pairs setObject<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>value forKey<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>key<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- <span style="padding:0px; margin:0px; color:rgb(177,177,0)">return</span> <span style="padding:0px; margin:0px; color:rgb(0,153,0)">[</span>NSDictionary dictionaryWithObjectsAndKeys<span style="padding:0px; margin:0px; color:rgb(51,153,51)">:</span>
- pairs<span style="padding:0px; margin:0px; color:rgb(51,153,51)">,</span> PARAMS<span style="padding:0px; margin:0px; color:rgb(51,153,51)">,</span>
- protocolString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">,</span> PROTOCOL<span style="padding:0px; margin:0px; color:rgb(51,153,51)">,</span>
- hostString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">,</span> HOST<span style="padding:0px; margin:0px; color:rgb(51,153,51)">,</span>
- uriString<span style="padding:0px; margin:0px; color:rgb(51,153,51)">,</span> URI<span style="padding:0px; margin:0px; color:rgb(51,153,51)">,</span> nil<span style="padding:0px; margin:0px; color:rgb(0,153,0)">]</span><span style="padding:0px; margin:0px; color:rgb(51,153,51)">;</span>
- <span style="padding:0px; margin:0px; color:rgb(0,153,0)">}</span>
- @end
- @implementation ExtNSString
- @end