UIWebView でテキストをズームインおよびズームアウトしようとしています。UITextView のズームに使用した関数があります。
- (IBAction)ZoomOutFunction{
@try {
UIFont *font = self.detailTextView.font;
if(self.detailTextView.font == [font fontWithSize:13])
self.detailTextView.font = [font fontWithSize:13];
else
self.detailTextView.font = [font fontWithSize:font.pointSize-1];
}@catch (NSException *err) {
NSLog(@"Error handler : %@", err);
}
}
ボタンをクリックするたびにフォント(1つのサイズ)を追加/削除したい 2つのボタン(1つはズームイン用、もう1つはズームアウト用)があります。
上記の関数は UIWebView では動作しないので、UIWebView で動作するようにこの関数で何を調整しますか。
ありがとうございました、