webView:shouldInsertText:replacingDOMRange:givenAction:
もしユーザーがウエブビューにテキストを挿入しようとするならYESを返します
-(BOOL)webView:(WebView *)webView: shouldInsertText:(NSString *)text: replacingDOMRange:(DOMRange *)range: givenAction:(WebViewInsertAction)action:
解説
もしユーザーがウエブビューにテキストを挿入しようとするならYESを返します。
そうでなければNOを返します。
このメソッドはreplaceSelectionWith...のうちのひとつのメッセージをウエブビューに送信する時に起動されます。
返り値
( BOOL )
YES/NO
引数
( WebView * )webView
( NSString * )text
( DOMRange * )range
( WebViewInsertAction )action
クラス
WebEditingDelegate
Instance Methods
使用可能
10.3.9
参照
-webView:shouldInsertNode:replacingDOMRange:givenAction:
-webViewDidChange: