updated for iOS 8 and Swift stuff. use NSURL(string: ...) and enums prop...

...erly