I have some source code to get the file name of an url
for example:
http://www.google.com/a.pdf
I hope to get a.pdf
because the way to join 2 NSS
Swift 3
Let's say that your url is http://www.google.com/a.pdf
let filename = url.lastPathComponent \\filename = "a.pdf"