setUserStyleSheetEnabled:
ユーザースタイルシートが有効かをセットします
-(void)setUserStyleSheetEnabled:(BOOL)flag:
解説
ユーザースタイルシートが有効かをセットします。
返り値
( void )
なし
引数
( BOOL )flag
クラス
WebPreferences
Instance Methods
使用可能
10.2
参照
-userStyleSheetEnabled
例文
- (IBAction)myAction:(id)sender { WebPreferences *webPref = [theWebView preferences]; [webPref setUserStyleSheetEnabled:YES]; ([webPref userStyleSheetEnabled]) ? NSLog(@"YES") : NSLog(@"NO") ; }