I am showing a html page that is dynamically generated in code. I am inserting navigation points like
<div class="columnbreak"><a name="section01"/></div>.
I then show this html in a UIWebView. I have a CSS rule for column break
div.columnbreak { -webkit-column-break-after : always; }
when I try to navigate using javascript
NSString *js = [NSString stringWithFormat:@"window.location.hash='#%@';", section];
[webview stringByEvaluatingJavaScriptFromString:js];
it doesn't navigate to the anchor.
if I put the tags in html
<div class="columnbreak" ></div><a name="section01"/>
then I can navigate with javascript but the column does not break properly.
Can anyone give me a hint what is going on ?