PUNEET GARG
PUNEET GARG

Reputation: 81

Links are not working on UIWebview

In my application, I am using UIWebview to display some url say "Google". The problem is that, it is displaying the web page correctly but the links present on that page are not working.

Say if on Google page I click on map or gmail, then nothing happens. I know, I am missing some minor things, still need help from you.

Upvotes: 2

Views: 7016

Answers (3)

DavidTw
DavidTw

Reputation: 81

You also want to make sure that "User interactions Enabled" (in the View section of the attributes tab) is checked.

Upvotes: 2

Maksim
Maksim

Reputation: 2052

Check in Interface Builder your .xib with UIWebView, in Attributes Inspector (4th tab of the right panel) in section Web View Detection Links checkbox. It must be checked on in order to make links work.

Upvotes: 11

Mundi
Mundi

Reputation: 80265

Make sure your link is constructed exactly like this:

<a href="http://www.google.com">Google</a>

It should just "work".

Upvotes: -2

Related Questions