Created
March 28, 2015 17:21
-
-
Save brianmichel/9ec8b8cf31432e387b6c to your computer and use it in GitHub Desktop.
Broken code in optimized build.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func logURLPath(urlString: NSString) { | |
urlString.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding).map { urlString in | |
NSURL(string: urlString).map { path in | |
println("Opening URL: \(path)") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment