mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-03-18 07:24:14 +01:00
Update for Xcode 6.1 and Swift 1.1
This commit is contained in:
@@ -213,12 +213,13 @@ extension ViewController {
|
||||
}
|
||||
|
||||
@IBAction func openUrbanApps(AnyObject) {
|
||||
let url = NSURL(string: "http://urbanapps.com")
|
||||
if let url = NSURL(string: "http://urbanapps.com") {
|
||||
#if os(iOS)
|
||||
UIApplication.sharedApplication().openURL(url)
|
||||
UIApplication.sharedApplication().openURL(url)
|
||||
#elseif os(OSX)
|
||||
NSWorkspace.sharedWorkspace().openURL(url)
|
||||
NSWorkspace.sharedWorkspace().openURL(url)
|
||||
#else
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user