I am using a UIWebView
for creating a rich text editor. This web view is placed inside a custom cell of a UITableView
I need to change cell size when typing inside the webview. I want to get webview height when I am typing. There is no scrolling inside the webview.
This is the webview initial content,
NSString* plainContent = @"Edit here.....";
NSString* htmlContentString = [NSString stringWithFormat:
@"<html>"
"<body>"
"<div id=\"content\" contenteditable=\"true\" style=\"font-family: Arial\">"
"%@"
"</div>"
"</body></html>", plainContent];
[_webView loadHTMLString:htmlContentString baseURL:nil];
How do I change the UIWebView
height when typing?