在《iOS WebCore的wak目录》中证实了iOS的WebKit是想尽可能复用Mac上的代码,所以WebView在iOS和Mac上差不多。
Mac WebView的参考文档:
当然,官方文档不会描述WebView在iOS上的作用,因为用class-dump导出头文件的关系,所以有些成为了私有API的函数还是值得说说,例如设置UA。
- + (BOOL)canShowMIMEType:(NSString *)MIMEType
- + (void)_setTileCacheLayerPoolCapacity:(unsigned int)arg1;
- + (void)_setHTTPPipeliningEnabled:(BOOL)arg1;
- + (void)_removeUserStyleSheetsFromGroup:(id)arg1 world:(id)arg2;
- + (void)_removeUserScriptsFromGroup:(id)arg1 world:(id)arg2;
- + (void)_removeUserStyleSheetFromGroup:(id)arg1 world:(id)arg2 url:(id)arg3;
- + (void)_removeUserScriptFromGroup:(id)arg1 world:(id)arg2 url:(id)arg3;
- + (void)_addUserStyleSheetToGroup:(id)arg1 world:(id)arg2 source:(id)arg3 url:(id)arg4 whitelist:(id)arg5 blacklist:(id)arg6 injectedFrames:(int)arg7;
- + (void)_addUserStyleSheetToGroup:(id)arg1 world:(id)arg2 source:(id)arg3 url:(id)arg4 whitelist:(id)arg5 blacklist:(id)arg6;
- + (void)_addUserScriptToGroup:(id)arg1 world:(id)arg2 source:(id)arg3 url:(id)arg4 whitelist:(id)arg5 blacklist:(id)arg6 injectionTime:(int)arg7 injectedFrames:(int)arg8;
- + (void)_addUserScriptToGroup:(id)arg1 world:(id)arg2 source:(id)arg3 url:(id)arg4 whitelist:(id)arg5 blacklist:(id)arg6 injectionTime:(int)arg7;
- + (void)_setMaximumImageSizeBeforeSubsampling:(unsigned int)arg1;
- + (BOOL)_canHandleRequest:(NSURLRequest*)arg1;
- + (BOOL)_canHandleRequest:(NSURLRequest*)arg1 forMainFrame:(BOOL)arg2;
- + (void)_disableRemoteInspector;
- + (void)_enableRemoteInspector;
- + (BOOL)_allowCookies;
- + (void)_setAllowCookies:(BOOL)arg1;
- - (void)_setCookieEnabled:(BOOL)arg1;
- - (BOOL)_cookieEnabled;
- + (BOOL)_acceleratedImageDecoding;
- + (void)_setAcceleratedImageDecoding:(BOOL)arg1;
- + (void)_setCacheModel:(unsigned int)arg1;
- + (void)_setPDFViewClass:(Class)arg1;
- + (Class)_getPDFViewClass;
- + (void)_setPDFRepresentationClass:(Class)arg1;
- + (Class)_getPDFRepresentationClass;
- - (double)estimatedProgress;
- - (id)elementAtPoint:(struct CGPoint)arg1;
- - (id)_elementAtWindowPoint:(struct CGPoint)arg1;
- - (id)customUserAgent;
- - (void)setCustomUserAgent:(id)arg1;
- - (void)_setWebGLEnabled:(BOOL)arg1;
- - (BOOL)_webGLEnabled;
- - (void)setUsesPageCache:(BOOL)arg1;
- - (BOOL)usesPageCache;
- - (id)_touchEventRegions;
- - (id)_formDelegateForSelector:(SEL)arg1;
- - (id)_formDelegateForwarder;
- - (id)_formDelegate;
- - (void)_setFormDelegate:(id)arg1;
表单处理的委托。可实现自动填充功能