02How to get last string component from URL NSURL in Swift
suggest changeSwift 3.0
let url = URL(string: "http://google.com/lastPath")
let lastPath = url?.lastPathComponent
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents