最終更新:2017-08-26 (土) 19:56:08 (2431d)
UIWebView
Top / UIWebView
メモ
- JITが効かない
WKWebView
- Starting in iOS 8.0 and OS X 10.10, use WKWebView to add web content to your app.
- Do not use UIWebView or WebView.
例
NSURL* url = [NSURL URLWithString:@"http://onakasuita.org"]; NSURLRequest *req = [NSURLRequest requestWithURL:url]; [_webView loadRequest:req];
Tasks
Setting the Delegate
- delegate - プロパティ (UIWebViewDelegate)
Loading Content
- loadData:MIMEType:textEncodingName:baseURL?
- loadHTMLString:baseURL?
- loadRequest
- request - プロパティ (NSURLRequest)
- loading? - プロパティ (BOOL)
- stopLoading?
- reload
Moving Back and Forward
Setting Web Content Properties
- scalesPageToFit? - プロパティ (BOOL)
- scrollView? - プロパティ (UIScrollView)
- suppressesIncrementalRendering? - プロパティ (BOOL)
- keyboardDisplayRequiresUserAction? - プロパティ (BOOL)
- detectsPhoneNumbers? - プロパティ (BOOL) Deprecated in iOS 3.0?
Running JavaScript
- stringByEvaluatingJavaScriptFromString?
Detecting Types of Data
Managing Media Playback
- allowsInlineMediaPlayback - プロパティ (BOOL)
- mediaPlaybackRequiresUserAction? - プロパティ (BOOL)
- mediaPlaybackAllowsAirPlay? - プロパティ (BOOL)