Question about UIWebView for use in my help screen
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:
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.
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 (!)
This post answers your first question. I.e. use
-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType
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.
精彩评论