---
title: "Increase Font size in UIWebView in iOS"  
description: "Increase Font size in UIWebView in iOS"  
author: "Anonymous User"  
published: 2015-11-15  
updated: 2015-11-17  
canonical: https://www.mindstick.com/forum/33596/increase-font-size-in-uiwebview-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# Increase Font size in UIWebView in iOS

I have created an app using UIWebView, it works perfectly.

But [now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now) I have a [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) to [increase](https://www.mindstick.com/articles/12959/are-you-struggling-to-increase-the-profit-of-your-liquor-store) [Font size](https://www.mindstick.com/forum/158654/what-is-the-css-property-used-to-specify-the-font-size-of-an-element) in UIWebView.\
Can [anyone](https://www.mindstick.com/articles/23207/how-to-find-the-best-fit-job-for-anyone) help tell me, how can I do this?

## Replies

### Reply by Tarun Kumar

You can use this code:

```
NSString*myString = @"Hello...";int textFontSize=5;NSString*myStr = [NSString stringWithFormat:@"<html><body><script>var str='%@';                  document.write(str.fontsize(%d).fontcolor('green'));                  </script></body></html>",myString,textFontSize];                  [myWebView loadHTMLString:myHTML baseURL:nil];
```

I hope this code is helpful for you.


---

Original Source: https://www.mindstick.com/forum/33596/increase-font-size-in-uiwebview-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
