• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using an anchor in NSURL file url
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using an anchor in NSURL file url


  • Subject: Using an anchor in NSURL file url
  • From: Jeff Evans <email@hidden>
  • Date: Thu, 21 Jan 2016 17:17:11 -0800

Colleagues,

	In OSX I'm using an NSURLRequest to load a file url in WKWebView. Works fine unless I try to add an anchor to the path, for example,

[path]/filename.html#anchorname

The problem appears to be that the # gets escaped to #.

I tried [NSURL URLWithString: anchorname relativeToURL: baseURL] but this produces a url with the form

#anchorname--[path]/filename.html

and that doesn't work (opens the file, but ignores the anchor).

Is there any way to use an anchor in a file url for WKWebView?

Thanks, Jeff



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Using an anchor in NSURL file url
      • From: Ken Thomases <email@hidden>
    • Re: Using an anchor in NSURL file url
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: 32-bit / 64-bit roadmap
  • Next by Date: Re: Using an anchor in NSURL file url
  • Previous by thread: Subview Resizes with Superview
  • Next by thread: Re: Using an anchor in NSURL file url
  • Index(es):
    • Date
    • Thread