tags:

views:

503

answers:

2

I want to restrict the users from using the links in a UIWebView. Hence, showing only single a HTML page with no navigation.

I know I can do that using the "User Interaction" option of UIWebView but I can't use that since it disables scrolling as well, and the user cannot view the complete page.

Any ideas?

+3  A: 

If you don't mind them seeing the links, you could use a UIWebViewDelegate to detect when a page begins loading and cancel it.

If you don't want them to see the links at all, you could modify the HTML before rendering it. Using libxml is pretty easy's and it's htmlparser.h can probably do what you need. If you don't like that, HTML tidy works well too.

Gordon Wilson
A: 

It worked. I implemented the UIWebViewDelegate methods and restricted the access. Thanks.

Mustafa