registerURLScheme(asLocal:)
Adds the specified URL scheme to the list of local schemes.
Declaration
class func registerURLScheme(asLocal scheme: String!)Parameters
- scheme:
The scheme to add to the list.
Discussion
You need to register a scheme as local to access resources with file URLs and to have the same security checks as a local file.