我在资源中有一个字体并将其加载到 UIFont
我想知道如何使用这个 UIFont 作为我的 UIWebView 的默认字体
提前致谢...
这可能会帮助你:
如果您使用网页在 WebView 中显示
这是我要做的:
附加所有字符串并从字符串加载 WebView
NSString *bundlepath = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:bundlepath];
[webView loadHTMLString:html baseURL:baseURL];