0

So I made a UIWebView and I had it read a local help.html file. This is for my app's help screen.

Now my question is two-fold:

  1. if I say have a link in there to go to either my website or something then people click that link and it's within the uiwebview! How would I go about launching safari instead? target='_blank' doesn't seem to work.

  2. If I want a link to the paid version of my app in there would it launch some kind of other program? I don't want my help screen to turn into a web browser (!)

RedBlueThing
  • 42,006
  • 17
  • 96
  • 122
Shai UI
  • 50,568
  • 73
  • 204
  • 309

1 Answers1

1
  1. This post answers your first question. I.e. use

    -(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType

  2. You could choose to open that link with a Safari, like your question 1, or somehow intercept the link and do something you like use the same method mentioned above.

Community
  • 1
  • 1
William Niu
  • 15,798
  • 7
  • 53
  • 93