I am developing an iOS app. How can I know the current section that is being displayed in the UIWebview and change the title of the navigation bar accordingly? The title will be the section which the user is reading. The sections in the html file displayed in the UIWebView are separated by <h2>
tags.
If anyone is looking for an answer to this, this might help. Its basically done using javascript functions.